MCA_MoveByExternalReference (FB)

FUNCTION_BLOCK MCA_MoveByExternalReference

This function block gives a reference position to the axis which is directly passed to the position control loop.

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

The axis will follow the given position without a ramp but immediately. The reference position is evaluated continuously.

To stop the motion, the function block has to be interrupted by another function block issuing a new command

Note

This block has to be called within the REAL-TIME task, same task as CMC_Basic_Kernel, When the function block is used in modulo axis, the Position input to be wrapped and provided as input “Position” to avoid the PLC load to increase with larger position value input.

InOut:

Scope

Name

Type

Comment

Input

Execute

BOOL

Starts the function block at rising edge

Position

LREAL

[u] Reference position. New values are accepted in a running system without a new rising edge of Execute

BufferMode

MC_BufferMode

Not supported, default mcABORTING used

Output

Done

BOOL

Shows the status of the function block. This output not used in current version

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