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.
If the power stage is not enabled within a timeout of 3000 ms, an error is detected. In such a case, remove the cause of the error and trigger MC_Power. You can use the functions FC_SetPowerEnableTimeout and FC_GetPowerEnableTimeout of the SercosMaster library to modify the default timeout value of 3000 ms and to read the timeout value.
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.
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.
|
Output |
Data type |
Description |
---|---|---|
Status |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
Error |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
ErrorID |
This enumeration provides diagnostics information. |