Output Description

../_images/8af5ce3549a2b6ba0a3313900002ce44

DONE (done)

Data type: BOOL

Output DONE indicates the state of the job processing. After completing or aborting the processing (due to an error), DONE is set to TRUE for one cycle. For that reason, the output always has to be considered together with output ERR. If ERR is TRUE, an error occurred. In this case, the error number can be read at output ERNO.

ERR (error)

Data type: BOOL

Output ERR indicates whether an error occurred during block processing. This output always has to be considered together with output DONE. If DONE = TRUE and ERR = TRUE, an error occurred. In this case, the error number can be read at output ERNO.

ERNO (error number)

Data type: WORD

Output ERNO provides an error identifier, if an invalid value was applied to an input or if an error occurred during request processing. ERNO always has to be considered together with the outputs DONE and ERR. The value output at ERNO is only valid, if DONE is TRUE and ERR is TRUE.

The encoding of the error messages output at ERNO is explained in the chapter Error Messages: Error Messages of the Function Block Libraries

READY (ready)

Data type: BOOL

Output READY=TRUE indicates that the drive is ready to switch on (Bit 0 in the status word from the drive).

OPERATING (operating)

Data type: BOOL

Output OPERATING=TRUE indicates that the drive is controlled by this Function Block. The drive is enabled and running (Status Word of drive bits: RDY_ON = TRUE, RDY_RUN = TRUE, RDY_REF = TRUE).

If the drive is controlled from another control place, e.g. local panel, output OPERATING is reset to FALSE, even if the drive might be enabled and running.

To get a control place independent indication, evaluate if the following bits of input SW are set: SW.0 AND SW.1 AND SW.2

TRIPPED (tripped)

Data type: BOOL

Output TRIPPED=TRUE indicates that the drive is tripped (Bit 3 in the Status Word from the drive).

ALARM (alarm)

Data type: BOOL

Output ALARM=TRUE indicates that the drive has an alarm (Bit 7 in the Status Word from the drive).

EXT_RUN_ENABLE (external run enable)

Data type: BOOL

Output EXT_RUN_ENABLE is bit 12 of actual Status Word from the drive. Output EXT_RUN_ENABLE=TRUE indicates that the drive received External Run Enable signal. For normal control of the drive from the PLC EXT_RUN_ENABLE must be set to TRUE.

LOCAL_CTRL (local control)

Data type: BOOL

Output LOCAL_CTRL = TRUE indicates that the drive is not controlled from remote control e.g. PLC (LOCAL_CTRL = inverted bit 9 in the Status Word from the drive - REMOTE). LOCAL_CTRL might be set to TRUE due to no connection to the drive or the drive was set to local control via the drive panel or a drive configuration tool from PC.

EXT_CTRL_LOC_ACT (external control location active)

Data type: BOOL

Output EXT_CTRL_LOC_ACT is bit 11 of actual Status Word from the drive. Output EXT_CTRL_LOC_ACT = TRUE indicates that the drive is controlled from the control place EXT2 (Bit 11 in Status Word from the drive). EXT_CTRL_LOC_ACT might be set to TRUE due to the input EXT_CTRL_LOC = TRUE.

ACT_SPEED (actual speed)

Data type: INT, Range: -20000 .. +20000

Output ACT_SPEED returns the actual speed value from the drive. The scaling depends on the drive settings.

Drive Fieldbus Parameter Settings Scaling
ACS3XX / ACX550 MODBUS RTU 53.10=101 Actual speed [rpm] 1 = 1 rpm
ACS3XX / ACX550 MODBUS RTU 53.10=103 Absolute frequency 10 = 1 Hz

ACT_VALUE2 (actual value 2)

Data type: INT

Output ACT_VALUE2 is the Actual Value 2 from the drive.

ACT_SW (actual status word)

Data type: WORD

Output ACT_SW is the actual Status Word from the drive.

USED_CW (used control word)

Data type: WORD

Output USED_CW shows the used Control Word which is written to the DRIVE_DATA variable.

E.g. the packed word from the input bits OFF1 .. CW_BIT15 if USE_CW=FALSE.

Function Call in ST

ACS_Drives_Ctrl_Standard (EN               := xACS_Drives_Ctrl_Standard_EN,
                          START            := xACS_Drives_Ctrl_Standard_START,
                          STOP_EMCY_COAST  := xACS_Drives_Ctrl_Standard_STOP_EMCY_COAST,
                          STOP_EMCY_RAMP   := xACS_Drives_Ctrl_Standard_STOP_EMCY_RAMP,
                          STOP_COAST       := xACS_Drives_Ctrl_Standard_STOP_COAST,
                          RESET            := xACS_Drives_Ctrl_Standard_RESET,
                          EXT_CTRL_LOC     := xACS_Drives_Ctrl_Standard_EXT_CTRL_LOC,
                          SPEED_REF        := iACS_Drives_Ctrl_Standard_SPEED_REF,
                          REF_VALUE2       := iACS_Drives_Ctrl_Standard_REF_VALUE2,
                          DRIVE_DATA       := tsDRIVE_DATA);


xACS_Drives_Ctrl_Standard_DONE             := ACS_Drives_Ctrl_Standard.DONE;
xACS_Drives_Ctrl_Standard_ERR              := ACS_Drives_Ctrl_Standard.ERR;
wACS_Drives_Ctrl_Standard_ERNO             := ACS_Drives_Ctrl_Standard.ERNO;
xACS_Drives_Ctrl_Standard_READY            := ACS_Drives_Ctrl_Standard.READY;
xACS_Drives_Ctrl_Standard_OPERATING        := ACS_Drives_Ctrl_Standard.OPERATING;
xACS_Drives_Ctrl_Standard_TRIPPED          := ACS_Drives_Ctrl_Standard.FAULT;
xACS_Drives_Ctrl_Standard_ALARM            := ACS_Drives_Ctrl_Standard.WARN;
xACS_Drives_Ctrl_Standard_EXT_RUN_ENABLE   := ACS_Drives_Ctrl_Standard.EXT_RUN_ENABLE;
xACS_Drives_Ctrl_Standard_LOCAL_CTRL       := ACS_Drives_Ctrl_Standard.LOCAL_CTRL;
xACS_Drives_Ctrl_Standard_EXT_CTRL_LOC_ACT := ACS_Drives_Ctrl_Standard.EXT_CTRL_ACT;
iACS_Drives_Ctrl_Standard_ACT_SPEED        := ACS_Drives_Ctrl_Standard.ACT_SPEED;
iACS_Drives_Ctrl_Standard_ACT_VALUE2       := ACS_Drives_Ctrl_Standard.ACT_VALUE2;
wACS_Drives_Ctrl_Standard_ACT_SW           := ACS_Drives_Ctrl_Standard.ACT_SW;
wACS_Drives_Ctrl_Standard_USED_CW          := ACS_Drives_Ctrl_Standard.USED_CW;