MC_ReadActualPosition
At its ‘position’ output, the MC_ReadActualPosition returns the current position of an axis. It is assigned to the group of administrative FBs.
Block diagram
Parameters of the FB
VAR_IN_OUT | |||
| Axis | AXIS_REF | Axis reference |
VAR_INPUT | |||
| Enable | BOOL | Get the values of the parameters continuously while enabled. |
VAR_OUTPUT | |||
| Valid | BOOL | The current position is present at the FB output ‘position’. |
| Error | BOOL | Indicates if an error has occurred. |
| ErrorID | WORD | Error identification. |
| Position | LREAL | Actual position of the axis. Default unit [0,1 µm] |
Behavior of the FB
- If ‘Enable’ is FALSE, the value 0.0 is output at the position output.
- If ‘Done’ is TRUE, the position of the axis at the output is updated.