FANUC Series 30i/300i/300is-MODEL A. Machining Center System. User's manual - page 62

 

  Index      Manuals     FANUC Series 30i/300i/300is-MODEL A. Machining Center System. User's manual (B-63944EN/03)

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     60      61      62      63     ..

 

 

 

FANUC Series 30i/300i/300is-MODEL A. Machining Center System. User's manual - page 62

 

 

16.CUSTOM MACRO

 PROGRAMMING 

B-63944EN/03

 

 

- 452 - 

 - Modal information 

 

M

 

System variable 

number 

System 

variable name

Attribute

Description 

#4001-#4030 [#_BUFG[n]] 

Modal 

information on blocks that have been 

specified by last minute (G code) 
Note)  Subscript n represents a G code group 

number. 

#4102 [#_BUFB] 

Modal 

information on blocks that have been 

specified by last minute (B code) 

#4107 [#_BUFD] 

Modal 

information on blocks that have been 

specified by last minute (D code) 

#4108 [#_BUFE] 

Modal 

information on blocks that have been 

specified by last minute (E code) 

#4109 

[#_BUFF] 

Modal information on blocks that have been 
specified by last minute (F code) 

#4111 [#_BUFH] 

Modal 

information on blocks that have been 

specified by last minute (H code) 

#4113 [#_BUFM] 

Modal 

information on blocks that have been 

specified by last minute (M code) 

#4114 [#_BUFN] 

Modal 

information on blocks that have been 

specified by last minute (sequence number) 

#4115 

[#_BUFO] 

Modal information on blocks that have been 
specified by last minute (program number) 

#4119 [#_BUFS] 

Modal 

information on blocks that have been 

specified by last minute (S code) 

#4120 [#_BUFT] R 

Modal 

information on blocks that have been 

specified by last minute (T code) 

#4130 [#_BUFWZP] 

Modal 

information on blocks that have been 

specified by last minute (additional workpiece 
coordinate system number) 

#4201-#4230 [#_ACTG[n]] 

R

 

Modal information on the block currently being 
executed (G code) 
Note)  Subscript n represents a G code group 

number. 

#4302 [#_ACTB] 

Modal 

information on the block currently being 

executed (B code) 

#4307 [#_ACTD] 

Modal 

information on the block currently being 

executed (D code) 

#4308 [#_ACTE] 

Modal 

information on the block currently being 

executed (E code) 

#4309 

[#_ACTF] 

Modal information on the block currently being 
executed (F code) 

#4311 [#_ACTH] 

Modal 

information on the block currently being 

executed (H code) 

#4313 

[#_ACTM] 

Modal information on the block currently being 
executed (M code) 

#4314 [#_ACTN] 

Modal 

information on the block currently being 

executed (sequence number) 

#4315 

[#_ACTO] 

Modal information on the block currently being 
executed (program number) 

#4319 [#_ACTS] 

Modal 

information on the block currently being 

executed (S code) 

B-63944EN/03

 PROGRAMMING 

16.CUSTOM MACRO

 

 

- 453 - 

System variable 

number 

System 

variable name

Attribute

Description 

#4320 

[#_ACTT] 

Modal information on the block currently being 
executed (T code) 

#4330 [#_ACTWZP] 

Modal 

information on the block currently being 

executed (additional workpiece coordinate 
system number) 

#4401-#4430 

[#_INTG[n]] 

Modal information on interrupted blocks (G 
code) 
Note)  Subscript n represents a G code group 

number. 

#4502 

[#_INTB] 

Modal information on interrupted blocks (B 
code) 

#4507 

[#_INTD] 

Modal information on interrupted blocks (D 
code) 

#4508 

[#_INTE] 

Modal information on interrupted blocks (E 
code) 

#4509 [#_INTF] R 

Modal 

information on interrupted blocks (F 

code) 

#4511 

[#_INTH] 

Modal information on interrupted blocks (H 
code) 

#4513 

[#_INTM] 

Modal information on interrupted blocks (M 
code) 

#4514 

[#_INTN] 

Modal information on interrupted blocks 
(sequence number) 

#4515 

[#_INTO] 

Modal information on interrupted blocks 
(program number) 

#4519 

[#_INTS] 

Modal information on interrupted blocks (S 
code) 

#4520 

[#_INTT] 

Modal information on interrupted blocks (T 
code) 

#4530 [#_INTWZP] 

Modal 

information on interrupted blocks 

(additional workpiece coordinate system 
number) 

 

T

 

System variable 

number 

System 

variable name

Attribute

Description 

#4001-#4030 [#_BUFG[n]] 

Modal 

information on blocks that have been 

specified by last minute (G code) 
Note)  Subscript n represents a G code group 

number. 

#4108 [#_BUFE] 

Modal 

information on blocks that have been 

specified by last minute (E code) 

#4109 

[#_BUFF] 

Modal information on blocks that have been 
specified by last minute (F code) 

#4113 [#_BUFM] 

Modal 

information on blocks that have been 

specified by last minute (M code) 

#4114 [#_BUFN] 

Modal 

information on blocks that have been 

specified by last minute (sequence number) 

#4115 

[#_BUFO] 

Modal information on blocks that have been 
specified by last minute (program number) 

#4119 [#_BUFS] 

Modal 

information on blocks that have been 

specified by last minute (S code) 

16.CUSTOM MACRO

 PROGRAMMING 

B-63944EN/03

 

 

- 454 - 

System variable 

number 

System 

variable name

Attribute

Description 

#4120 [#_BUFT] R 

Modal 

information on blocks that have been 

specified by last minute (T code) 

#4130 [#_BUFWZP] 

Modal 

information on blocks that have been 

specified by last minute (additional workpiece 
coordinate system number) 

#4201-#4230 

[#_ACTG[n]] 

Modal information on the block currently being 
executed (G code) 
Note)  Subscript n represents a G code group 

number. 

#4308 [#_ACTE] 

Modal 

information on the block currently being 

executed (E code) 

#4309 

[#_ACTF] 

Modal information on the block currently being 
executed (F code) 

#4313 

[#_ACTM] 

Modal information on the block currently being 
executed (M code) 

#4314 [#_ACTN] 

Modal 

information on the block currently being 

executed (sequence number) 

#4315 

[#_ACTO] 

Modal information on the block currently being 
executed (program number) 

#4319 [#_ACTS] 

Modal 

information on the block currently being 

executed (S code) 

#4320 

[#_ACTT] 

Modal information on the block currently being 
executed (T code) 

#4330 [#_ACTWZP] 

Modal 

information on the block currently being 

executed (additional workpiece coordinate 
system number) 

#4401-#4430 

[#_INTG[n]] 

Modal information on interrupted blocks (G 
code) 
Note)  Subscript n represents a G code group 

number. 

#4508 

[#_INTE] 

Modal information on interrupted blocks (E 
code) 

#4509 [#_INTF] R 

Modal 

information on interrupted blocks (F 

code) 

#4513 

[#_INTM] 

Modal information on interrupted blocks (M 
code) 

#4514 

[#_INTN] 

Modal information on interrupted blocks 
(sequence number) 

#4515 

[#_INTO] 

Modal information on interrupted blocks 
(program number) 

#4519 

[#_INTS] 

Modal information on interrupted blocks (S 
code) 

#4520 

[#_INTT] 

Modal information on interrupted blocks (T 
code) 

#4530 [#_INTWZP] 

Modal 

information on interrupted blocks 

(additional workpiece coordinate system 
number) 

 

 

B-63944EN/03

 PROGRAMMING 

16.CUSTOM MACRO

 

 

- 455 - 

 - Position information 

System variable 

number 

System 

variable name

Attribute

Description 

#5001-#5020 

End point position of the previous block 
(workpiece coordinate system) 
Note)  Subscript n represents an axis number 

(1 to 20) 

#100001-#100050 

[#_ABSIO[n]] R 

The numbers to the left can also be used. 
Note)  Subscript n represents an axis number

(1 to 50). 

#5021-#5040 

Specified current position (machine coordinate 
system) 
Note)  Subscript n represents an axis number 

(1 to 20). 

#100051-#100100 

[#_ABSMT[n]] R 

The numbers to the left can also be used. 
Note)  Subscript n represents an axis number 

(1 to 50). 

#5041-#5060 Specified 

current 

position (workpiece 

coordinate system) 
Note)  Subscript n represents an axis number 

(1 to 20). 

#100101-#100150 

[#_ABSOT[n]] R 

The numbers to the left can also be used. 
Note)  Subscript n represents an axis number 

(1 to 50). 

#5061-#5080 

Skip position (workpiece coordinate system) 
Note)  Subscript n represents an axis number 

(1 to 20). 

#100151-#100200 

[#_ABSKP[n]] R 

The numbers to the left can also be used. 
Note)  Subscript n represents an axis number 

(1 to 50). 

 

  - Tool length compensation value 

 

M

 

System variable 

number 

System 

variable name

Attribute

Description 

#5081-#5100 

Tool length compensation value 
Note)  Subscript n represents an axis number 

(1 to 20). 

#100201-#100250 

[#_TOFS[n]] R 

The numbers to the left can also be used. 
Note)  Subscript n represents an axis number 

(1 to 50). 

 

16.CUSTOM MACRO

 PROGRAMMING 

B-63944EN/03

 

 

- 456 - 

  - Tool offset value 

 

T

 

System variable 

number 

System 

variable name

Attribute

Description 

#5081, #100201 

  [#_TOFSWX] 

X-axis tool offset (wear) 

#5082, #100202 

  [#_TOFSWZ] 

Z-axis tool offset (wear) 

#5083, #100203 

  [#_TOFSWY] 

Y-axis tool offset (wear) 

#5084 - #5100 

Tool offset (wear) for an arbitrary axis 
Note)  Subscript n represents an axis number 

(4 to 20). 

#100204 - 

#100250 

 [#_TOFS[n]] 

Tool offset (wear) for an arbitrary axis 
Note)  Subscript n represents an axis number 

(4 to 50). 

#5121, #100901 

  [#_TOFSGX] 

X-axis tool offset (geometry) 

#5122, #100902 

  [#_TOFSGZ] 

Y-axis tool offset (geometry) 

#5123, #100903 

  [#_TOFSGY] 

Z-axis tool offset (geometry) 

#5124 - #5140 

Tool offset (geometry) for an arbitrary axis 
Note)  Subscript n represents an axis number 

(4 to 20). 

#100904 - 

#100950 

 [#_TOFSG[n]]
   

Tool offset (geometry) for an arbitrary axis 
Note)  Subscript n represents an axis number 

(4 to 50). 

X-axis: X-axis of basic three axes, Z-axis: Z-axis of basic three axes, 
Y-axis: Y-axis of basic three axes 
 
 

 

 

  - Servo position deviation 

System variable 

number 

System 

variable name

Attribute

Description 

#5101-#5120 

Servo positional deviation 
Note)  Subscript n represents an axis number 

(1 to 20). 

#100251-#100300 

[#_SVERR[n]] R 

The numbers to the left can also be used. 
Note)  Subscript n represents an axis number 

(1 to 50). 

 

  - Manual handle interruption 

System variable 

number 

System 

variable name

Attribute

Description 

#5121-#5140 

Manual handle interruption 
Note)  Subscript n represents an axis number 

(1 to 20). 

#100651-#100700 

[#_MIRTP[n]] R 

The numbers to the left can also be used. 
Note)  Subscript n represents an axis number 

(1 to 50). 

 

B-63944EN/03

 PROGRAMMING 

16.CUSTOM MACRO

 

 

- 457 - 

  - Distance to go 

System variable 

number 

System 

variable name

Attribute

Description 

#5181-#5200 

Distance to go 
Note)  Subscript n represents an axis number 

(1 to 20). 

#100801-#100850 

[#_DIST[n]] R 

The numbers to the left can also be used. 
Note)  Subscript n represents an axis number 

(1 to 50). 

 

  - Workpiece origin offset value, extended workpiece origin offset value 

 

M

 

System variable 

number 

System 

variable name

Attribute

Description 

#5201-#5220 

[#_WZCMN[n]] 

R/W 

External workpiece origin offset value 
Note)  Subscript n represents an axis number 

(1 to 20). 

#5221-#5240 [#_WZG54[n]] R/W 

G54 

workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#5241-#5260 [#_WZG55[n]] R/W 

G55 

workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#5261-#5280 [#_WZG56[n]] R/W 

G56 

workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#5281-#5300 [#_WZG57[n]] R/W 

G57 

workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#5301-#5320 [#_WZG58[n]] R/W 

G58 

workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#5321-#5340 [#_WZG59[n]] R/W 

G59 

workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#100301-#100350 [#_WZCMN[n]] 

R/W  External workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

#100351-#100400 [#_WZG54[n]] 

R/W  G54 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

#100401-#100450 [#_WZG55[n]] 

R/W  G55 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

#100451-#100500 [#_WZG56[n]] 

R/W  G56 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

#100501-#100550 [#_WZG57[n]] 

R/W  G57 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

16.CUSTOM MACRO

 PROGRAMMING 

B-63944EN/03

 

 

- 458 - 

System variable 

number 

System 

variable name

Attribute

Description 

#100551-#100600 [#_WZG58[n]] 

R/W  G58 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

#100601-#100650 [#_WZG59[n]] 

R/W  G59 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

Extended workpiece origin offset value 

#7001-#7020 [#_WZP1[n]]  R/W 

G54.1P1 workpiece origin offset value 
Note)  Subscript n represents an axis number 

(1 to 20). 

#7021-#7040 [#_WZP2[n]]  R/W 

G54.1P2 workpiece origin offset value 
Note)  Subscript n represents an axis number 

(1 to 20). 





#7941-#7960 [#_WZP48[n]]  R/W 

G54.1P48 workpiece origin offset value 
Note)  Subscript n represents an axis number 

(1 to 20). 

#14001-#14020 [#_WZP1[n]] 

R/W G54.1P1 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#14021-#14040 [#_WZP2[n]] 

R/W G54.1P2 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 





#19981-#20000 [#_WZP300[n]]

R/W G54.1P300 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#101001-#101050 [#_WZP1[n]] 

R/W  G54.1P1 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

#101051-#101100 [#_WZP2[n]] 

R/W  G54.1P2 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 





#115901-#115950 [#_WZP299[n]]

R/W  G54.1P299 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

#115951-#116000 [#_WZP300[n]]

R/W  G54.1P300 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

 

B-63944EN/03

 PROGRAMMING 

16.CUSTOM MACRO

 

 

- 459 - 

T

 

System variable 

number 

System 

variable name

Attribute

Description 

#5201-#5220 

[#_WZCMN[n]] 

R/W 

External workpiece origin offset value 
Note)  Subscript n represents an axis number 

(1 to 20). 

#5221-#5240 [#_WZG54[n]] R/W 

G54 

workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#5241-#5260 [#_WZG55[n]] R/W 

G55 

workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#5261-#5280 [#_WZG56[n]] R/W 

G56 

workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#5281-#5300 [#_WZG57[n]] R/W 

G57 

workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#5301-#5320 [#_WZG58[n]] R/W 

G58 

workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#5321-#5340 [#_WZG59[n]] R/W 

G59 

workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 20). 

#100301-#100350 [#_WZCMN[n]] 

R/W  External workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

#100351-#100400 [#_WZG54[n]] 

R/W  G54 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

#100401-#100450 [#_WZG55[n]] 

R/W  G55 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

#100451-#100500 [#_WZG56[n]] 

R/W  G56 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

#100501-#100550 [#_WZG57[n]] 

R/W  G57 workpiece origin offset value 

Note) 

(1 to 50). 

#100551-#100600 [#_WZG58[n]] 

R/W  G58 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

#100601-#100650 [#_WZG59[n]] 

R/W  G59 workpiece origin offset value 

Note)  Subscript n represents an axis number 

(1 to 50). 

Extended workpiece origin offset value 

#7001-#7020 [#_WZP1[n]]  R/W 

G54.1P1 workpiece origin offset value 
Note)  Subscript n represents an axis number 

(1 to 20). 

#7021-#7040 [#_WZP2[n]]  R/W 

G54.1P2 workpiece origin offset value 
Note)  Subscript n represents an axis number 

(1 to 20). 





 

 

 

 

 

 

 

Content      ..     60      61      62      63     ..