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
Enable
is set.A call of
MC_Power_SML
withbRegulatorOn=FALSE
sets the axis state toPowerOff
(disabled).A call of
MC_Power_SML
withbRegulatorOn``=``TRUE
on 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
,bRegulatorOn
andbDriveStart are ``TRUE
but the outputStatus
remains inFALSE
for 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
Axis
Reference to the axis
Input
Enable
BOOL
Enables the function block
bRegulatorOn
BOOL
Enables the power stage
bDriveStart
BOOL
Disables the quickstop mechanism
Output
Status
BOOL
Axis ready for motion
bRegulatorRealState
BOOL
Effective state of the power stage
bDriveStartRealState
BOOL
Effective state of the quickstop mechanism
Busy
BOOL
Function block is executing
Error
BOOL
Signals that an error has occured
ErrorID
Error number