
3. EXECUTION MACRO
B–61803E–1/10
PROGRAMMING
36
Example) If a T code macro call is specified as in
G91 X10.0 T1234;
a call instruction is executed with T1234, with all other
codes being passed as arguments.
– Argument specification II (I, J, K, I, J, K, ...) is not available.
– Arguments may be only those addresses that can be specified by the
NC. The number of significant digits is the same as that of NC
instructions.
Example) Examples: G100 X12345678. M1.23;
→ Valid. (#24 = 12345678.0, #13 = 1.23)
X12345678. T1234;
→ Too many digits specified.
M1.23 T1234;
→ Invalid decimal point
– A call instruction block is handled as follows:
If bit 6 (NOPB) of compile parameter No. 6004 is
0: An empty block is generated and after execution, a
P–CODE program is called.
If the bit is 1: No empty block is generated and a call is made
immediately.
(4) Subprogram call with a special/M/T code
– The call code need not appear at the beginning of the block.
– Any specified instructions other than that with the call code are
executed first, then a P–CODE program is called.
– A call block containing an independent instruction with a call code
only is handled as follows:
If bit 6 (NOPB) of compile parameter No. 6004 is
0: An empty block is generated and after execution, a
P–CODE program is called.
If the bit is 1: No empty block is generated and a call is made
immediately.