MC_Power (FB)

FUNCTION_BLOCK MC_Power

This function block controls the power stage (on or off).

../../../../../../_images/plcopen.png

If this function block is called with Enable = TRUE and axis Disabled, it will either lead to StandStill when no error inside the axis or ErrorStop if an error exists. An error indicates that there is a hardware problem with the power stage.

  • If power fails (also during operation) block will generate a transition to the state ErrorStop.

  • When MC_Power is called with Enable = FALSE the axis goes to state Disabled for every state including ErrorStop.

  • It is possible to set an error variable when the Command is TRUE for a while and the Status remains FALSE with a Timer Function Block and an AND Function (with inverted Status input). It indicates that there is a hardware problem with the power stage

Note

Error “NO_FIELD_ACCCESS” can get generated at the output ErrorID even when function block is disabled.

InOut:

Scope

Name

Type

Initial

Comment

Input

Enable

BOOL

Enable continuously on “TRUE”

EnablePositive

BOOL

TRUE

Enable positive movement direction, FALSE will hold the axis without ramp, an ongoing movement is aborted

EnableNegative

BOOL

TRUE

Enable negative movement direction, FALSE will hold the axis without stop, an ongoing movement is aborted

Output

Status

BOOL

Axis is ready for operation

Error

BOOL

Signals that error has occurred within function block

ErrorID

ERROR_ID

Error identification. For error details refer to Enumeration ERROR_ID

Inout

Axis

Axis_Ref

Reference to axis