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 with bRegulatorOn=FALSE sets the axis state to PowerOff (disabled).

  • A call of MC_Power_SML with bRegulatorOn``=``TRUE on a disabled axis sets the axis state to Standstill, if there is no error on the axis. If an error is detected, the state of the axis is set to ErrorStop.

  • If the inputs Enable, bRegulatorOn and bDriveStart are ``TRUE but the output Status remains in FALSE 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

Axis_REF_SML

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

SML_ERROR

Error number