Validity: Rule, Task
This variable contains the mask of axes that are in motion.
Syntax |
I32 ax_in_mov2 |
---|---|
Attributes |
Bit-accessible. Read only |
The axis is in motion if the corresponding bit is in 1.
NOTE: To determine if the axis is in motion, RTE checks that at least one of its ideal velocity (iv) and its ideal acceleration (ia) is different from zero.
Example
; if ax_in_mov2 is equal to 0 (its negate is equal to 1) ; it means that all axes are stationary ; with velocity and acceleration ; both equal to zero, and in sr(1) ; "all axes are stationary with zero acceleration" ; will be stored _if(NOT ax_in_mov2) sr(1) = "all axes are stationary with zero acceleration" |
Example
; if bit 0 of the variable ax_in_mov2 is equal to 1 ; it means that axis 1 is moving if(ax_in_mov2.0) ; then in the string variable sr(1) ; the string "axis 1 is moving" will be stored sr(1) = "axis 1 is moving" ; otherwise in the string variable sr(1) ; the string "axis 1 is stationary" will be stored. else sr(1) = "axis 1 is stationary" endif |