Position Input Functions
Position input functions evaluate whether the position of the axis is at certain values.
For these input functions, the axis command mode can be Position, Velocity, or Torque. In Velocity mode and Torque mode, the command position is set equal to the feedback position every cycle, so the feedback position is used to evaluate the condition regardless of the value of the useFeedback option.
Input Function |
Description |
|---|---|
Evaluates to TRUE when the position of the specified axis equals the specified value, and FALSE otherwise. The condition evaluates to TRUE when one of the following is true.
The tolerance is 0.5 user units by default, but can be changed by setting the enableTolerance option to 1 and setting the tolerance parameter to the desired value. The following figure shows the movement of the axis position over several cycles. In the cycles for which the condition evaluates to TRUE, the position is shown as a red dot, and in the cycles for which the condition evaluates to FALSE, the position is shown as a black dot.
Wraparound is considered for Single Turn axes. For example, if the trigger position is 0 and the axis wraps around from position 1 to position Single Turn Encoder Count over one cycle, the condition will still evaluate to TRUE. Parameters are specified with the EqualPos struct. |
|
Evaluates to TRUE when the position of the specified axis is greater than the specified value, and FALSE otherwise. The condition evaluates to TRUE when one of the following is true.
The following figure shows the movement of the axis position over several cycles. In the cycles for which the condition evaluates to TRUE, the position is shown as a red dot, and in the cycles for which the condition evaluates to FALSE, the position is shown as a black dot.
Parameters are specified with the GreaterPos struct. |
|
Evaluates to TRUE when the position of the specified axis is less than the specified value, and FALSE otherwise. The condition evaluates to TRUE when one of the following is true.
The following figure shows the movement of the axis position over several cycles. In the cycles for which the condition evaluates to TRUE, the position is shown as a red dot, and in the cycles for which the condition evaluates to FALSE, the position is shown as a black dot.
Parameters are specified with the LessPos struct. |


