Y_AX_Reverse_MC_Direction
This function block was designed for use with the
Y_AX_Home_LS_Pulse
function block in the Axis Toolbox. It changes the enumerated type
MC_Direction#positive_direction to
MC_Direction#negative_direction or vice versa so that the function can move the motor one direction into a limit switch with MC_StepRefLimit, and the other direction when searching for the Index Pulse with
MC_StepRefPulse.
Parameters:
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_INPUT | ||||
| B | Enable | BOOL | Enables the function. | FALSE |
| V | LimitDirection | INT | 0 = positive_direction, 2 = negative_direction | 0 |
| V | BackOffDistance | LREAL | Distance in the opposite direction | INT#0 |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | TRUE if the function is running normally | |
| V | PulseDirection | INT | 0 = positive_direction , 1 = negative_direction | |
| V | BackOffDirection | LREAL | Distance to back off | |
Error Description
No Errors will result, but if there is a problem with an input, then Valid will be FALSE.