Output DescriptionΒΆ

../_images/c001af6649c7a2420a331390001b7ced

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.

CW (control word)

Data type: WORD

Input CW is written to the DRIVE_DATA variable as Control Word as long as USE_CW=TRUE.

Function Call in ST

ACS_Drives_Ctrl_Standard_Gen\ (EN\ := xACS_Drives_Ctrl_Standard_Gen_EN,

 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ START\ \ \ \ \ \ \ \ \ \ \ :=  xACS_Drives_Ctrl_Standard_Gen_START,
 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ STOP_EMCY_COAST\ := xACS_Drives_Ctrl_Standard_Gen_STOP_EMCY_COAST,
 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ STOP_EMCY_RAMP\ \ := xACS_Drives_Ctrl_Standard_Gen_STOP_EMCY_RAMP,
 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ STOP_COAST\ \ \ \ \ \ := xACS_Drives_Ctrl_Standard_Gen_STOP_COAST,
 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ RESET\ \ \ \ \ \ \ \ \ \ \ := xACS_Drives_Ctrl_Standard_Gen_RESET,
 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ EXT_CTRL_LOC\ \ \ \ := xACS_Drives_Ctrl_Standard_Gen_EXT_CTRL_LOC,
 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ SW\ \ \ \ \ \ \ \ \ \ \ \ \ \ := wACS_Drives_Ctrl_Standard_Gen_SW);

xACS_Drives_Ctrl_Standard_Gen_DONE\ \ \ \ \ \ \ \ \ \ \ \ \ := ACS_Drives_Ctrl_Standard_Gen.DONE;
xACS_Drives_Ctrl_Standard_Gen_ERR\ \ \ \ \ \ \ \ \ \ \ \ \ \ := ACS_Drives_Ctrl_Standard_Gen.ERR;
wACS_Drives_Ctrl_Standard_Gen_ERNO\ \ \ \ \ \ \ \ \ \ \ \ \ := ACS_Drives_Ctrl_Standard_Gen.ERNO;
xACS_Drives_Ctrl_Standard_Gen_READY\ \ \ \ \ \ \ \ \ \ \ \ := ACS_Drives_Ctrl_Standard_Gen.READY;
xACS_Drives_Ctrl_Standard_Gen_OPERATING\ \ \ \ \ \ \ \ := ACS_Drives_Ctrl_Standard_Gen.OPERATING;
xACS_Drives_Ctrl_Standard_Gen_TRIPPED\ \ \ \ \ \ \ \ \ \ := ACS_Drives_Ctrl_Standard_Gen.FAULT;
xACS_Drives_Ctrl_Standard_Gen_ALARM\ \ \ \ \ \ \ \ \ \ \ \ := ACS_Drives_Ctrl_Standard_Gen.WARN;
xACS_Drives_Ctrl_Standard_Gen_EXT_RUN_ENABLE\ \ \ := ACS_Drives_Ctrl_Standard_Gen.EXT_RUN_ENABLE;
xACS_Drives_Ctrl_Standard_Gen_LOCAL_CTRL \ \ \ \ \ \ := ACS_Drives_Ctrl_Standard_Gen.LOCAL_CTRL;
xACS_Drives_Ctrl_Standard_Gen_EXT_CTRL_LOC_ACT\ := ACS_Drives_Ctrl_Standard_Gen.EXT_CTRL_ACT;
wACS_Drives_Ctrl_Standard_Gen_CW\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ := ACS_Drives_Ctrl_Standard_Gen.CW;