Validity: Rule, Task
This variable contains the mask of axes that are in motion.
Syntax |
I32 ax_in_mov |
---|---|
Attributes |
Bit-accessible. Read only |
The axis is in motion if the corresponding bit is in 1.
NOTE: To determine if the axis is moving, RTE checks if its ideal velocity (iv) is different from 0.
Example
; if ax_in_mov is equal to 0 (its negate is equal to 1) ; it means that all axes are stationary ; and therefore in the string register sr(1) ; "All axes are stationary" will be stored _if (NOT ax_in_mov) sr(1) = "All axes are stationary" |
Example
; If bit 0 of the variable ax_in_mov is equal to 1 ; it means that axis 1 is moving if(ax_in_mov.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 |