
B–62073E–2/03
3. EXECUTION MACRO
41
G100 ; Modal call state ON
X10.; Calls O9010 after move.
X10.; Calls O9010 after move.
G90; Does not call O9010.
Y20.; Calls O9010 after move.
G67; Modal call state OFF
P–CODE program
09010;
Z5.;
Z–5.;
M99;
Notes
1 No P–CODE program can be called from a P–CODE
program in the modal call mode.
2 In the modal call state, no P–CODE program can be called
in the macro call or subprogram call mode.
(3) Subprogram call using special codes
By setting character codes (decimal notation of ASCII codes) to the
parameters (No. 8544,8545), the P–CODE program (09004, 09005)
corresponding to the address can be called as a subprogram. The
defined integer will be stored as a parameter to the macro variable
(#146, #147). The actual use of this function is decided by specifying
the appropiate parameter (No.8508 ACL1 ACL2).
When parameter
No. 8508, ACL1=1
No. 8544=66
User program
O0001 ;
:
G00 X123. B100. ;
:
M02 ;
P–CODE program
O9004 ;(#146=100.)
Notes
1 Addresses that can be specified are all the addresses with
the exception of those used by G, O, N, P. L, and the axis.
2 When program calls such as G65, M98, T code are specified
in the same block, G65, etc. has priority.
(4) M code subprogram call specified range M code
Sub program call of the ”9009” P–CODE program can be performed
by specifying the M–CODE of the range specified by parameter No.
8538, 8539. At this time, the commanded M code is stored as an
argument in macro variable #148.
Example