MC_SetPosition
Function block shifts coordinate system of an axis by assigning a given position value to the set-point position and the actual position. No movement of the axis occurs by assigning the new value.
The FB only works if parameter kenngr.set_refpos_mode (P-AXIS-00278) of an axis parameter list is set to the value mentioned below:
kenngr.set_refpos_mode PLC
Block diagram
Parameter of the FB
VAR_IN_OUT | |||
| Axis | AXIS_REF | Axis reference. |
VAR_INPUT | |||
| Execute | BOOL | Write position to an axis at rising. |
| Position | LREAL | Position, the axis takes as new set-point position and actual position if a rising edge at input ‘Execute’ occurs. Range [-2147483648.0, 2147483647.0] |
VAR_OUTPUT | |||
| Done | BOOL | Axis has taken value of input |
| Busy | BOOL | The FB with the |
| Error | BOOL | Indicates if an error has occurred. |
| ErrorID | WORD | Error identification. |