MC_StepDirect (FB)

FUNCTION_BLOCK MC_StepDirect

This function Block performs a static homing by directly forcing an actual position. No physical motion is performed in this mode. This is equivalent to a MC_SetPosition action, but clears the Homing State.

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

Note

This function block modifies actual position and sets to the “SetPosition” input value at the end.

InOut:

Scope

Name

Type

Comment

Input

Execute

BOOL

Starts the function block at rising edge

SetPosition

LREAL

[u] Value of the absolute position to be set when homing is done. Range:
  • Linear Axis: Maximum range is 16#7FFFFFFF in increments, if configured in units, range will be limited to equivalent of 16#7FFFFFFF increments

  • Modulo Axis: Range will be limited by Modulo range defined

BufferMode

MC_BufferMode

not supported, default mcABORTING used

Output

Done

BOOL

Shows the status of the function block. Done = TRUE if the execution is finished

Busy

BOOL

The function block is not finished

Active

BOOL

Indicates that the function block has control on the axis

CommandAborted

BOOL

Command is aborted by another command from other PLCopen function block

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