MC_Power_SML (FB)ΒΆ
FUNCTION_BLOCK FINAL MC_Power_SML
Controls the power stage of an axis and can be used to issue a quick stop.
Note
The inputs are only processed if
Enableis set.A call of
MC_Power_SMLwithbRegulatorOn=FALSEsets the axis state toPowerOff(disabled).A call of
MC_Power_SMLwithbRegulatorOn``=``TRUEon a disabled axis sets the axis state toStandstill, if there is no error on the axis. If an error is detected, the state of the axis is set toErrorStop.If the inputs
Enable,bRegulatorOnandbDriveStart are ``TRUEbut the outputStatusremains inFALSEfor a long time, there may be a problem with the power stage, or an external halt may be set.If power fails (also during operation), the axis state is set to
ErrorStop.
- InOut:
Scope
Name
Type
Comment
Inout
AxisReference to the axis
Input
EnableBOOLEnables the function block
bRegulatorOnBOOLEnables the power stage
bDriveStartBOOLDisables the quickstop mechanism
Output
StatusBOOLAxis ready for motion
bRegulatorRealStateBOOLEffective state of the power stage
bDriveStartRealStateBOOLEffective state of the quickstop mechanism
BusyBOOLFunction block is executing
ErrorBOOLSignals that an error has occured
ErrorIDError number