
PROGRAMMING15. CUSTOM MACRO
B–63504EN/01
256
The number (target number) of parts required and the number (completion
number) of machined parts can be read and written.
Table 15.2 (g) System variables for the number of parts required and the
number of machined parts
Variable number
Function
#3901 Number of machined parts (completion number)
#3902 Number of required parts (target number)
NOTE
Do not substitute a negative value.
Modal information specified in blocks up to the immediately preceding
block can be read.
Table 15.2 (h) System variables for modal information
Variable
number
Function
#4001
#4002
#4003
#4004
#4005
#4006
#4007
#4008
#4009
#4010
#4011
#4012
#4014
#4015
#4016
:
#4022
#4109
#4113
#4114
#4115
#4119
#4120
G00, G01, G02, G03, G33, G34 (Group 01)
G96, G97 (Group 02)
(Group 03)
G68, G69 (Group 04)
G98, G99 (Group 05)
G20, G21 (Group 06)
G40, G41, G42 (Group 07)
G25, G26 (Group 08)
G22, G23 (Group 09)
G80 – G89 (Group 10)
(Group 11)
G66, G67 (Group 12)
G54–G59 (Group 14)
(Group 15)
G17 – G19 (Group 16)
::
(Group 22)
F code
M code
Sequence number
Program number
S code
T code
Example:
When #1=#4002; is executed, the resulting value in #1 is 17, 18, or
19.
When a modal information reading system variable corresponding to a G
code group which cannot be used is specified, a P/S alarm is issued.
D Number of machined
parts
D Modal information