MCA_MoveByExtRefRelative (FB)
FUNCTION_BLOCK MCA_MoveByExtRefRelative
This function block gives a reference position to the axis which is directly passed to the position control loop.
The positioning is relative, starting with a rising edge at Execute.
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
- InOut:
Scope
Name
Type
Comment
Input
ExecuteBOOLStarts the function block at rising edge
DistanceLREAL- [u] Reference position, as relative position. New values are accepted in a running system without a new rising edge of Execute. The movement is relative from the 1. rising edge.
Distance is not allowed to exceed +/-0x7FFFFFFF. The value will be limited accordingly.
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