
17.REAL-TIME CUSTOM MACRO PROGRAMMING B-63944EN/02
- 518 -
17.6 OTHERS
If an axis control command is followed by a macro command in an
RTM command, the execution of the macro command starts when the
axis control command is completed or deceleration starts.
If deceleration on the X-axis starts upon completion of distribution
according to the axis control command of (1), for example, the macro
command of (2) is executed. If acceleration/deceleration is not
applied on the X-axis, (2) is executed upon completion of distribution
on the X-axis.
// ZDO ;
G91 G00 X30 ; (1) Axis control command of the RTM statement
#RV[0] = 1 ; (2) Macro command of the RTM statement
ZEND ;