
B-63944EN/02 PROGRAMMING 17.REAL-TIME CUSTOM MACRO
- 497 -
ZEND ;
//2 #RV[1]=1 ;
G04 P10 ;
M30 ;
Example 5)
In the RTM command priority, ZEDGE in a modal command
with its ID value being 1 is always a false control code (detailed
later). The RTM command priority of #RV[0]=1 in a modal
command with its ID value being 1 is higher than the priority of
#RV[1]=1 and #RV[2]=1 in a modal command with their ID
values being 2. However, #RV[0]=1 is executed after the
condition of ZEDGE becomes true (that is, at the second time or
later), so that #RV[1]=1 and #RV[2]=1 are executed earlier than
#RV[0]=1.
O0001 ;
//1 ZEDGE [ #IOG[234.0] EQ 1 ] #RV[0]=1 ;
//2 ZDO ;
#RV[1]=1 ;
#RV[2]=1 ;
ZEND ;
G04 P10 ;
M30 ;
- Number of real time macro commands
A program can have multiple RTM commands coded.
Up to six one-shot RTM commands can be specified.
If one-shot RTM commands more than the maximum allowable
number are specified, an alarm is issued.
Up to ten modal RTM commands can be specified. When specifying
modal RTM commands, ensure that there is no duplicate ID.
If there is a duplicate ID, or an incorrect ID is specified, an alarm is
issued.
In all paths, up to 16 RTM commands can be executed
simultaneously.
When an axis control command is included, up to four commands can
be executed simultaneously.
NOTE
1 In a block specifying an RTM statement, no NC
command can be coded.
2 If the maximum specifiable number of commands or
the maximum number of simultaneously executable
commands is exceeded, a P/S alarm is issued.