FUNCTION_BLOCK MC_SetPosition
This function block is designed for shifting the coordinate system of an axis. Therefor the function block will manipulate both the set position as well as the actual position of the axis by the same value without any movement caused. This recalibration can be used for instance for a reference situation. The function block can be called during motion without changing the commanded position, which will then be located within the shifted coordinate system.
Important
RELATIVE means that the value of parameter Position will be added to the current value.
ABSOLUTE means that the current value will be set to the value specified in the parameter Position.
InOut:
Scope |
Name |
Type |
Initial |
Comment |
Inout |
Axis |
Reference to axis |
||
Input |
Execute |
BOOL |
Rising edge: Starts the execution of the function block. |
|
Position |
LREAL |
Position unit [u] (means ‘Distance’ if Mode = RELATIVE) |
||
Mode |
BOOL |
TRUE = RELATIVE, FALSE = ABSOLUTE |
||
Output |
Done |
BOOL |
TRUE: Position has been assigned to new value. |
|
Busy |
BOOL |
FALSE |
TRUE: Execution of function block has not been finished yet. |
|
Error |
BOOL |
TRUE: Error has occurred within the function block. |
||
ErrorID |
SMC_ERROR |
Error identification |