
Ed. Date Design Description
Date Jan.07.’04 Design. Apprv.
page
-
8/64
FANUC Series 30i-MODEL A
Real time custom macro
A-79350EN
Title
Draw
No.
Priority of commands
If a modal RTM command and one-shot RTM command are specified at the same
time, the modal RTM command is executed first.
If multiple modal RTM commands are specified at the same time, the commands are
executed in ascending order of ID values.
No priority is applicable to one-shot RTM commands.
The order of execution is as follows:
Modal RTM command with ID value being 1
Modal RTM command with ID value being 2
:
:
Modal RTM command with ID value being 10
One-shot RTM command
:
One-shot RTM command
Example 1) Priority of modal RTM commands
O0001 ;
//1 #RV[0]=1 ;
//3 #RV[0]=3 ;
//2 #RV[0]=2 ;
M02 ;
When the program above is executed, the RTM commands are executed in the
following order:
#RV[0]=1
#RV[0]=2
#RV[0]=3
So, the value of #RV[0] is 3.
Example 2) Priority of modal RTM commands and a one-shot RTM command
O0001 ;
//3 #RV[0]=3 ;
//1 #RV[0]=1 ;
// #RV[0]=10 ;
//5 #RV[0]=5 ;
M02 ;
When the program above is executed, the RTM commands are executed in the
following order:
//1 #RV[0]=1
High
Low