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

 

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

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     65      66      67      68     ..

 

 

 

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

 

 

16.CUSTOM MACRO

 PROGRAMMING 

B-63944EN/03

 

 

- 492 - 

Variable 

number 

Variable name

Controlled axis 

Workpiece 

coordinate system

#100501 
#100502 

#100550 

[#_WZG57[1]] 
[#_WZG57[2]] 

[#_WZG57[50]] 

1st axis workpiece origin offset 
2nd axis workpiece origin offset 

50th axis workpiece origin offset 

G57 

#100551 
#100552 

#100600 

[#_WZG58[1]] 
[#_WZG58[2]] 

[#_WZG58[50]] 

1st axis workpiece origin offset 
2nd axis workpiece origin offset 

50th axis workpiece origin offset 

G58 

#100601 
#100602 

#100650 

[#_WZG59[1]] 
[#_WZG59[2]] 

[#_WZG59[50]] 

1st axis workpiece origin offset 
2nd axis workpiece origin offset 

50th axis workpiece origin offset 

G59 

 

M

 

The following variables can also be used when bit 5 (D15) of 
parameter No. 6004 is set to 0: 

 

Axis Function 

Variable 

number 

1st axis   

External workpiece origin offset value   

#2500 

 

G54 workpiece origin offset value   

#2501 

 

G55 workpiece origin offset value   

#2502 

 

G56 workpiece origin offset value   

#2503 

 

G57 workpiece origin offset value   

#2504 

 

G58 workpiece origin offset value   

#2505 

 

G59 workpiece origin offset value 

#2506 

2nd axis 

External workpiece origin offset value   

#2600 

 

G54 workpiece origin offset value   

#2601 

 

G55 workpiece origin offset value   

#2602 

 

G56 workpiece origin offset value   

#2603 

 

G57 workpiece origin offset value   

#2604 

 

G58 workpiece origin offset value   

#2605 

 

G59 workpiece origin offset value 

#2606 

3rd axis 

External workpiece origin offset value   

#2700 

 

G54 workpiece origin offset value   

#2701 

 

G55 workpiece origin offset value   

#2702 

 

G56 workpiece origin offset value   

#2703 

 

G57 workpiece origin offset value   

#2704 

 

G58 workpiece origin offset value   

#2705 

 

G59 workpiece origin offset value 

#2706 

4th axis 

External workpiece origin offset value   

#2800 

 

G54 workpiece origin offset value   

#2801 

 

G55 workpiece origin offset value   

#2802 

 

G56 workpiece origin offset value   

#2803 

 

G57 workpiece origin offset value   

#2804 

 

G58 workpiece origin offset value   

#2805 

 

G59 workpiece origin offset value 

#2806 

B-63944EN/03

 PROGRAMMING 

16.CUSTOM MACRO

 

 

- 493 - 

T

 

The following variables can be used to maintain compatibility with 
conventional models. 

Axis Function 

Variable 

number 

1st axis   

External workpiece origin offset value   

#2550 

 

G54 workpiece origin offset value   

#2551 

 

G55 workpiece origin offset value   

#2552 

 

G56 workpiece origin offset value   

#2553 

 

G57 workpiece origin offset value   

#2554 

 

G58 workpiece origin offset value   

#2555 

 

G59 workpiece origin offset value 

#2556 

2nd axis 

External workpiece origin offset value   

#2650 

 

G54 workpiece origin offset value   

#2651 

 

G55 workpiece origin offset value   

#2652 

 

G56 workpiece origin offset value   

#2653 

 

G57 workpiece origin offset value   

#2654 

 

G58 workpiece origin offset value   

#2655 

 

G59 workpiece origin offset value 

#2656 

3rd axis 

External workpiece origin offset value   

#2750 

 

G54 workpiece origin offset value   

#2751 

 

G55 workpiece origin offset value   

#2752 

 

G56 workpiece origin offset value   

#2753 

 

G57 workpiece origin offset value   

#2754 

 

G58 workpiece origin offset value   

#2755 

 

G59 workpiece origin offset value 

#2756 

4th axis 

External workpiece origin offset value   

#2850 

 

G54 workpiece origin offset value   

#2851 

 

G55 workpiece origin offset value   

#2852 

 

G56 workpiece origin offset value   

#2853 

 

G57 workpiece origin offset value   

#2854 

 

G58 workpiece origin offset value   

#2855 

 

G59 workpiece origin offset value 

#2856 

 

NOTE 

1  When variables exceeding the number of control 

axes are specified, the alarm PS0115, “VARIABLE 
NO. OUT OF RANGE” occurs. 

2  The workpiece origin offset value for 20th or earlier 

axis can be used with #5201 to #5340. 

 

M

 

NOTE 

 

To use variables #2500 to #2806, #5201 to #5340, 
and #100301 to #100650, optional variables for the 
workpiece coordinate systems are necessary. 

 

16.CUSTOM MACRO

 PROGRAMMING 

B-63944EN/03

 

 

- 494 - 

T

 

NOTE 

 

To use variables #2550 to #2856, #5201 to #5340, 
and #100301 to #100650, optional variables for the 
workpiece coordinate systems are necessary. 

 

  - Workpiece origin offset value of the additional workpiece coordinate system   

 

#7001-#7960, #101001-#116000 (Attribute:  R/W) 

 

M

 

#14001-#20000 (Attribute:  R/W)

 

 

 

The workpiece origin offset value of the additional workpiece 
coordinate system can be obtained by reading system variables #7001 
to #7960, #14001 to #20000, #101001 to #116000.    The offset value 
can also be changed by assigning values to the system variables. 
 

Variable 

number 

Variable name

Controlled axis 

Additional 
workpiece 

system number

#7001 
#7002 

#7020 

[#_WZP1[1]] 
[#_WZP1[2]] 

[#_WZP1[20]] 

1st axis workpiece origin offset value 
2nd axis workpiece origin offset value 

20th axis workpiece origin offset value 

(G54.1 P1) 

#7021 
#7022 

#7040 

[#_WZP2[1]] 
[#_WZP2[2]] 

[#_WZP2[20]] 

1st axis workpiece origin offset value 
2nd axis workpiece origin offset value 

20th axis workpiece origin offset value 

(G54.1 P2) 

#7041 
#7042 

#7060 

[#_WZP3[1]] 
[#_WZP3[2]] 

[#_WZP3[20]] 

1st axis workpiece origin offset value 
2nd axis workpiece origin offset value 

20th axis workpiece origin offset value 

(G54.1 P3) 

: : 

#7941 
#7942 

#7960 

[#_WZP48[1]] 
[#_WZP48[2]] 

[#_WZP48[20]]

1st axis workpiece origin offset value 
2nd axis workpiece origin offset value 

20th axis workpiece origin offset value 

48 

(G54.1 P48) 

 
System variable number = 7000 + (Coordinate system number -1) 

×

 

20 + Axis number 
Coordinate number:  1 to 48 
Axis number: 

1 to 20 

 

B-63944EN/03

 PROGRAMMING 

16.CUSTOM MACRO

 

 

- 495 - 

M

 

Variable 

number 

Variable name

Controlled axis 

Additional 
workpiece 

system number

#14001 
#14002 

#14020 

[#_WZP1[1]] 
[#_WZP1[2]] 

[#_WZP1[20]] 

1st axis workpiece origin offset value 
2nd axis workpiece origin offset value 

20th axis workpiece origin offset value 

(G54.1 P1) 

#14021 
#14022 

#14040 

[#_WZP2[1]] 
[#_WZP2[2]] 

[#_WZP2[20]] 

1st axis workpiece origin offset value 
2nd axis workpiece origin offset value 

20th axis workpiece origin offset value 

(G54.1 P2) 

#14041 
#14042 

#14060 

[#_WZP3[1]] 
[#_WZP3[2]] 

[#_WZP3[20]] 

1st axis workpiece origin offset value 
2nd axis workpiece origin offset value 

20th axis workpiece origin offset value 

(G54.1 P3) 

: : : 

#19981 
#19982 

#20000 

[#_WZP300[1]]
[#_WZP300[2]]

[#_WZP300[20]]

1st axis workpiece origin offset value 
2nd axis workpiece origin offset value 

20th axis workpiece origin offset value 

300 

(G54.1 P300)

 
System variable number = 14000 + (Coordinate system number -1) 

×

 

20 + Axis number 
Coordinate number:  1 to 300 
Axis number: 

1 to 20 

 

 

Variable 

number 

Variable name

Controlled axis 

Additional 
workpiece 

system number

#101001 
#101002 

#101050 

[#_WZP1[1]] 
[#_WZP1[2]] 

[#_WZP1[50]] 

1st axis workpiece origin offset value 
2nd axis workpiece origin offset value 

50th axis workpiece origin offset value 

(G54.1 P1) 

#101051 
#101052 

#101100 

[#_WZP2[1]] 
[#_WZP2[2]] 

[#_WZP2[50]] 

1st axis workpiece origin offset value 
2nd axis workpiece origin offset value 

50th axis workpiece origin offset value 

(G54.1 P2) 

#101101 
#101102 

#101150 

[#_WZP3[1]] 
[#_WZP3[2]] 

[#_WZP3[50]] 

1st axis workpiece origin offset value 
2nd axis workpiece origin offset value 

50th axis workpiece origin offset value 

(G54.1 P3) 

: : : 

#115951 
#115952 

#116000 

[#_WZP300[1]]
[#_WZP300[2]]

[#_WZP300[50]]

1st axis workpiece origin offset value 
2nd axis workpiece origin offset value 

50th axis workpiece origin offset value 

300 

(G54.1 P300)

 
System variable number = 101000 + (Coordinate system number -1) 

×

 

50 + Axis number 
Coordinate number:  1 to 300 
Axis number: 

1 to 50 

16.CUSTOM MACRO

 PROGRAMMING 

B-63944EN/03

 

 

- 496 - 

M

 

NOTE 

1  When variables exceeding the number of control 

axes are specified, the alarm PS0115, “VARIABLE 
NO. OUT OF RANGE” occurs. 

2  The workpiece origin offset of additional workpiece 

coordinate system for 20th or earlier axis can be 
used with #7001 to #7960 or #14001 to #20000. 

3  Optional variables for 48 additional workpiece 

coordinate systems are #7001 to #7960 (G54.1 P1 
to G54.1 P48).    Optional variables for 300 
additional workpiece coordinate systems are 
#14001 to #20000, and #101001 to #116000 
(G54.1 P1 to G54.1 P300).    With these variables, 
#7001 to #7960 can also be used. 

 

T

 

NOTE 

1  When variables exceeding the number of control 

axes are specified, the alarm PS0115, “VARIABLE 
NO. OUT OF RANGE” occurs. 

2  Optional variables for 48 additional workpiece 

coordinate systems are #7001 to #7960 (G54.1 P1 
to G54.1 P48). 

3  Optional variables for 300 additional workpiece 

coordinate systems are #101001 to #116000 
(G54.1 P1 to G54.1 P300).    With these variables, 
#7001 to #7960 can also be used. 

 

 

  - Skip position (detection unit)   #5421-#5440, #100701-#100750 (Attribute:  R) 

The skip position with the detection unit can be obtained by reading 
system variables #5421 to #5440 or #100701 to #100750.  The 
values of these variables are integers, and values in the workpiece 
coordinate system. 

Variable 

number 

Variable name

Position information 

Read operation 

during 

movement 

#5421 
#5422 

#5440 

[#_SKPDTC[1]]
[#_SKPDTC[2]]

[#_SKPDTC[20]]

1st axis skip position (detection unit) 
2nd axis skip position (detection unit) 

20th axis skip position (detection unit) 

#100151 
#100152 

#100200 

[#_SKPDTC[1]]
[#_SKPDTC[2]]

[#_SKPDTC[50]]

1st axis skip position (detection unit) 
2nd axis skip position (detection unit) 

50th axis skip position (detection unit) 

Disabled 

 

B-63944EN/03

 PROGRAMMING 

16.CUSTOM MACRO

 

 

- 497 - 

NOTE 

1  When variables exceeding the number of control 

axes are specified, the alarm PS0115, “VARIABLE 
NO. OUT OF RANGE” occurs. 

2  The skip position (detection unit) for 20th or earlier 

axis can be used with #5421 to #5440. 

3  To specify these variables, set bit 2 (DSK) of 

parameter No. 6210 to 1. (If an attempt is made to 
specify them when DSK is 0, alarm PS0115 is 
issued.) 

 

  - Reference fixture offset number being selected #5500 (Attribute:    R) 

 

M

 

The reference fixture offset number being selected can be read by 
reading system variables #5500. 
 

Variable 

number 

Variable name

Description 

#5500 [#_FOFSP] 

Reference 

fixture offset number being selected 

 

  - Reference fixture offset value being selected #5501-#5520, #117001-#117050 

(Attribute:  R) 

 

M

 

The reference fixture offset being selected can be read by reading 
system variables #5501 to #5520 or #117001# to 117050. 
 

Variable 

number 

Variable name

Description 

#5501 
#5502 

#5520 

[#_FOFSVAL[1]]
[#_FOFSVAL[2]]

[#_FOFSVAL[20]]

1st axis reference fixture offset value being selected

2nd axis reference fixture offset value being selected

20th axis reference fixture offset value being selected

#117001 
#117002 

#117050 

[#_FOFSVAL[1]]
[#_FOFSVAL[2]]

[#_FOFSVAL[50]]

1st axis reference fixture offset value being selected

2nd axis reference fixture offset value being selected

50th axis reference fixture offset value being selected

 

NOTE 

1  When variables exceeding the number of control 

axes are specified, the alarm PS0115, “VARIABLE 
NO. OUT OF RANGE” occurs. 

2  The reference fixture offset for 20th or earlier axis 

can be used with #5501 to #5520. 

 

 

 

16.CUSTOM MACRO

 PROGRAMMING 

B-63944EN/03

 

 

- 498 - 

  - Reference fixture offset value #5521-#5680, #117051-#117450 (Attribute:    R/W) 

 

M

 

The reference fixture offset values in the rotary table dynamic fixture 
offset function can be obtained by reading system variables #5521 to 
#5680 or #117051 to #117450.  The reference fixture offset values 
can also be changed by assigning values to the system values. 
 

Variable 

number 

Variable 

name 

Controlled axis 

Fixture offset 

number 

#5521 
#5522 

#5540 

[#_FOFS1[1]]
[#_FOFS1[2]]

[#_FOFS1[20]]

1st axis reference fixture offset value being selected 
2nd axis reference fixture offset value being selected 

20th axis reference fixture offset value being selected 

(G54.2 P1) 

#5541 
#5542 

#5560 

[#_FOFS2[1]]
[#_FOFS2[2]]

[#_FOFS2[20]]

1st axis reference fixture offset value being selected 
2nd axis reference fixture offset value being selected 

20th axis reference fixture offset value being selected 

(G54.2 P2) 

: : 

#5661 
#5662 

#5680 

[#_FOFS8[1]]
[#_FOFS8[2]]

[#_FOFS8[20]]

1st axis reference fixture offset value being selected 
2nd axis reference fixture offset value being selected 

20th axis reference fixture offset value being selected 

(G54.2 P8) 

#117051 
#117052 

#117100 

[#_FOFS1[1]]
[#_FOFS1[2]]

[#_FOFS1[50]]

1st axis reference fixture offset value being selected 
2nd axis reference fixture offset value being selected 

50th axis reference fixture offset value being selected 

(G54.2 P1) 

#117101 
#117102 

#117150 

[#_FOFS2[1]]
[#_FOFS2[2]]

[#_FOFS2[50]]

1st axis reference fixture offset value being selected 
2nd axis reference fixture offset value being selected 

50th axis reference fixture offset value being selected 

(G54.2 P2) 

: : 

#117401 
#117402 

#117450 

[#_FOFS8[1]]
[#_FOFS8[2]]

[#_FOFS8[50]]

1st axis reference fixture offset value being selected 
2nd axis reference fixture offset value being selected 

50th axis reference fixture offset value being selected 

(G54.2 P8) 

 

NOTE 

1  When variables exceeding the number of control 

axes are specified, the alarm PS0115, “VARIABLE 
NO. OUT OF RANGE” occurs. 

2  The reference fixture offset values for 20th or 

earlier axis can be used with #5521 to #5580. 

 

B-63944EN/03

 PROGRAMMING 

16.CUSTOM MACRO

 

 

- 499 - 

  - Second geometry tool offset value #5801-#5896, #27001-#29999 (Attribute:    R/W) 

T

 

By reading the values of system variables #5801 to #5896 and #27001 
to #29999, it is possible to determine the second geometry tool offset 
value, and by assigning values to the system variables, it is possible to 
change the second geometry tool offset value. 

 

For compensation numbers up to 32 

Compensation 

number 

Variable 

number 

Variable name 

Attribute

Description 

1 #5801 

[#_OFSX2G[1]] 

R/W 

: :  : : 

32 #5832 

[#_OFSX2G[32]] 

R/W 

Second geometry tool offset X-axis 
compensation value 

1 #5833 

[#_OFSZ2G[1]] 

R/W 

: :  : : 

32 #5864 

[#_OFSZ2G[32]] 

R/W 

Second geometry tool offset Z-axis 
compensation value 

1 #5865 

[#_OFSY2G[1]] 

R/W 

: :  : : 

32 #5896 

[#_OFSY2G[32]] 

R/W 

Second geometry tool offset Y-axis 
compensation value 

 

 

For compensation numbers greater than 32 (Compensation values 
with compensation numbers of up to 32 can also be used in 
variables #5801 to #5896.) 

Compensation 

number 

Variable 

number 

Variable name 

Attribute

Description 

1 #27001 

[#_OFSX2G[1]] 

R/W 

: :  : : 

999 #27999 

[#_OFSX2G[999]]

R/W 

Second geometry tool offset X-axis 
compensation value 

1 #28001 

[#_OFSZ2G[1]] 

R/W 

: :  : : 

999 #28999 

[#_OFSZ2G[999]]

R/W 

Second geometry tool offset Z-axis 
compensation value 

1 #29001 

[#_OFSY2G[1]] 

R/W 

: :  : : 

999 #29999 

[#_OFSY2G[999]]

R/W 

Second geometry tool offset Y-axis 
compensation value 

 
 

 

 

 

 

 

 

 

Content      ..     65      66      67      68     ..