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.
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
ExecuteBOOLStarts the function block at rising edge
PositionLREAL[u] Reference position. New values are accepted in a running system without a new rising edge of Execute
BufferModeNot supported, default mcABORTING used
Output
DoneBOOLShows the status of the function block. This output not used in current version
BusyBOOLThe function block is not finished
ActiveBOOLIndicates that the function block has control on the axis
CommandAbortedBOOLCommand is aborted by another command from other PLCopen function block
ErrorBOOLSignals that error has occurred within function block
ErrorIDError identification. For error details refer to Enumeration ERROR_ID
Inout
AxisReference to axis