This function block enables or disables the power stage of the drive.
TRUE at the input Enable enables the power stage. Once the power stage is enabled, the output Status is set.
FALSE at the input Enable disables the power stage. Once the power stage is disabled, the output Status is reset.
If errors are detected during execution, the output Error is set.
Whenever the function block is called, the input Enable is compared to the output Status. If these values are different, a new command is executed, either to enable the power stage (Enable = TRUE and Status = FALSE) or to disable the power stage (Enable = FALSE and Status = TRUE). The function must be called as long as the requested state of the power stage is reached or until an error is detected. If a function block error (for example, time-out) is detected, the Error output is set. The output is reset with the next call of the function block if the cause of the detected error has been removed and acknowledged with MC_Reset.
Call this function block cyclically, for example, in order to detect errors of the axis.
Use only a single instance of this function block per axis.
Library name: PLCopen MC part 1
Namespace: PLCO
Input |
Data type |
Description |
---|---|---|
Axis |
Axis_Ref |
Reference to the axis for which the function block is to be executed. |
Enable |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. The input Enable starts or terminates execution of a function block. oFALSE: Execution of the function block is terminated. The outputs Valid, Busy, and Error are set to FALSE. oTRUE: The function block is being executed. The function block continues executing as long as the input Enable is set to TRUE. |
Output |
Data type |
Description |
---|---|---|
Status |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. oFALSE: Power stage is disabled. oTRUE: Power stage is enabled. |
Error |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. oFALSE: Function block is being executed, no error has been detected during execution. oTRUE: An error has been detected in the execution of the function block. |
ErrorID |
ET_Result |
This enumeration provides diagnostics information. |
ErrorId |
Cause |
Corrective |
---|---|---|
AxisInvalid |
No axis is specified for the input Axis or specified axis does not support the required function. For MC_Touchprobe and MC_AbortTrigger: Specified axis does not support capture. |
Connect the axis for which the function block is to be executed to the input Axis. For MC_Touchprobe and MC_AbortTrigger: Use an axis that supports capture. |
IfMotionCommandNotSupported |
The connected axis does not support all of the required functions. |
Verify that the connected axis implements the IF_MotionCommand interface of the MotionInterface library. |
Ok |
Status message |
- |
UnexpectedReturnValue |
Indeterminable return value from system. |
Contact your Schneider Electric representative. |