You are on page 1of 166

B-63084EN/01

Fanuc 21i / 210i - TA

2.14
:
2.14.1
2.14.2
2.14.3
2.14.4 ,
(G10)
2.14.5 (G36, G37)

177

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.1

(, ).

Offset amount on X axis


Standard tool
Actual tool

. 14.1
G , .

12.4.1.1
:
.

.

Point on the program


Imaginary tool
Actual tool
X axis geometry offset value
X axis wear offset value

. 14.1.1

178

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.1.2
, 14.1.2() 14.1.2(b).


14.1.2()

2


xy
x
y

xxyy
xx
yy


0 (LD1)
5002 1,

.
0 (LD1)
5002 0,


.

1 LGN
5002
0,




.



14.1.2(b)

2


xy
x

y
Txxyy
xx

yy


0 (LD1)
5002 1,

.
0 (LD1)
5002 0,


.

1 LGN
5002
0,




.

2.14.1.3

. .
.

2.14.1.4
.

. 0 00
.

179

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.1.5
:


X, Y, Z
.
.

Tool path after offset


This block contains the offset command with T code
Programmed path
Compensation by offset X, Z , Z ( )

. 14.1.5() (1)

14.1.5() X, Y, Z .


0 00. ,
0.
N1 X50.0 Z100.0 T0202; . 02.
N2 X200.0;
N3 X100.0 Z250.0 T0200;

Tool path after offset


Programmed path

. 14.1.5(b) (2)
MDI
, .
LVK (5003#6)
.
180

B-63084EN/01

Fanuc 21i / 210i - TA


,
. G00.
.

G50 X_ Z_ T_;, .
, X,
Z.
.

X, Y, Z.

.

Absolute command
Tool path after offset
Programmed path before work coordinate system shift
Programmed path after work coordinate system shift
Offset amount by tool geometry offset in X, Z X, Z

. 14.1.5(c)

,
LGT (5002#4)
.

0, 00 0000.

5 (LGC) 5002 0, 0 00
.

181

B-63084EN/01

Fanuc 21i / 210i - TA

1.
( 1 LGN 5002 0).
N1 X50.0 Z100.0 T0202; . 02.
N2 X200.0;
N3 X100.0 Z250.0 T0200;

Tool path after offset


Programmed path after work coordinate system shift
Absolute command
Offset cancel

5 (LGC) 5002 0, 0 00
.
2. 0 ( 5002#1).
N1 X50.0 Z100.0 T0202;
N2 X200.0;
N3 X100.0 Z250.0 T0200;

182

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.1.6 G53, G28, G30, G0.1



.

(G28) G53
G28 G53
.
4 (LGT) 5002.
LGT = 0 ( )




G53


(
)
.

.

.

LGT = 1 ( )




G53


(
)
.

6 (DAL) 3104 0 (
.

183

B-63084EN/01

Fanuc 21i / 210i - TA



.
4 (LGT) 5002.
LGT = 0 ( )


(
)
.

.

.

LGT = 1 ( )


(
)
.

6 (DAL) 3104 0 (
.

184

B-63084EN/01

Fanuc 21i / 210i - TA

00
00 ,
.
/ .
LGN=0
LGN (5002#1)
:
0:
1: .
LGT=0

LGT (5002#4)

0:

1:

LGT=0

LGT=1

LGC (5002#5)

LGC=0
LGC=1
LWM (5002#6)
. :
0:
1:
LWM=0
LWM=1

1. LGT=0, LWM
2. LGT=1, LWM LGN = 0.
LGN=1
LGN (5002#1)
:
0:
1: .
LGT=0

LGT (5002#4)

0:

1:

LGT=0

LGT=1

LGC (5002#5)

LGC
LWM (5002#6)
. :
0:
1:
LWM=0
LWM=1

1. LGT=0, LWM
2. LGT=1, LWM LGN = 0.
/
LGN (5002#1)
:
0:
1: .
LGT=

LGT (5002#4)

0:

1:

LGT=

LGC (5002#5)
:
0: 00
1: 00
LGC
LWM (5002#6)
. :
0:
1:
LWM=0
LWM=1

185

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.2


.
:

Workpiece
Isufficient depth of cutting
Tool path without compensation
Tool path with compensation c
Shape processed without tool nose compensation

. 14.2

2.14.2.1
.


.
,
.

:

When programmed using tool nose center


When programmed using imaginary center

. 14.2.1 ()

186

B-63084EN/01

Fanuc 21i / 210i - TA

,
.

.


. ,
.

Tool offset in X axis


Setting the distance to the tool nose center
Setting the distance to the imaginary tool nose

The start position is placed over the tool nose center
The start position is placed over the imaginary tool nose

. 14.2.1 (b)
,

.

,
.

. 14.2.1() .

187

B-63084EN/01
,
,
.

Fanuc 21i / 210i - TA


,
.

. 14.2.1(d)

188

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.2.2

.

. 14.2.2.2.
.
.

. 14.2.2
0 9
. OFT
.

189

B-63084EN/01

Fanuc 21i / 210i - TA

7 (WNP) 5002

.

0 9.

G18
(Z-Z) . 0 9 G17
G19.

2.14.2.3

Tool nose radius compensation value

MDI .
,
:
14.2.3()

01
02
..
98
99

OFX (
)

OFX (
)

0.040
0.060
..
0.050
0.030

0.020
0.030
..
0.015
0.025

OFR

0.20
0.25
..
0.12
0.24

OFT .

1
2
..
6
3

OFY
Y
0.030
0.040
..
0.025
0.035

,
:
14.2.3.(b)

G01
G02
G03
G04
G05
..

OFGX


10.040
20.060
0
..
..
..

OFGZ

Y
50.020
30.030
0
..
..
..

OFGR


0
0
0.20
..
..
..

190

OFT .

1
2
6
..
..
..

OFGY

Y
70.020
90.030
0
..
..
..

B-63084EN/01

Fanuc 21i / 210i - TA

14.2.3.(c)

W01
W02
W03
W04
W05
..

OFGX


0.040
0.060
0
..
..
..

OFGZ

Y
0.020
0.030
0
..
..
..

OFGR

0
0
0.20
..
..
..

OFT .

1
2
6
..
..
..

OFGY

Y
0.020
0.030
0
..
..
..



. OFR = OFGR + OFWR


, . .

,
. . 2.14.1.2.


LGT (5002#1)
,
.
:
T0102
OFR=RFGR01+OFWR02
OFT=OFT01

:


IS-B
0 - +-999.999
IS-C
0 - +-999.9999


0 - +-99.9999
0 - +-99.99999

. 0
.

191

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.2.4
, .
G
G40
G41

G42

Workpiece
The imaginary tool nose is on the programmed path

Imaginary tool nose number 1 to 8 1 8

192

B-63084EN/01

Fanuc 21i / 210i - TA

Workpiece
G41
G42

: ,
.
G40, G41, G42 . G41 ,
. , .
G42.

, .

193

B-63084EN/01

Fanuc 21i / 210i - TA

,
.
.
, .

G41, G42, G40 .


.
,
.


G40,
.
. :

194

B-63084EN/01

Fanuc 21i / 210i - TA

G41/G42 G41/G42
G41/G42,
.

G41/G42,
.

G40
(U) Z(W)
,
:
G40 X(U)_ Z(W)_ I_ K_;

Moving direction of tool -

I . I /
G40, I .
G40 X_ Z_ I_ K_;
G40 G02 X_ Z_ I_ K_;

G40 G01 X_ Z_;


G40 G02 X_ Z_ I_ K_;
(I )
I .

195

B-63084EN/01

Fanuc 21i / 210i - TA

G40
1. G42 G00 X60.0;
2. G01 X120.0 W-150.0 F10;
3. G40 G00 X300.0 W150.0 I40.0 K-30.0;

196

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.2.5


1. 05;
2. S210;
3. G04 X1000;

4. G01 U0;

5. G98;
G
6. G10 P01 X10.0 Z20.0 R0.5 Q2;

,
.
,
.

Programmed path
Tool nose center path

G90 G94
G90 ( /
) G94 ( ) :
1. .
,
.

Programmed path
Tool nose center path

197

B-63084EN/01

Fanuc 21i / 210i - TA

2.
G41/G42.

G71 G76 G78


,
. .
G71 ( )
G72 ( )
G73 ( )
G74 ( )
G75 ( / )
G76 ( )
G78 ( )

:

Programmed path

198

B-63084EN/01

Fanuc 21i / 210i - TA

Programmed path

MDI

199

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.3


. :
2.14.3.1
2.14.3.2.
2.14.3.3
2.14.3.4
2.14.3.5
2.14.3.6
2.14.3.7
2.14.3.8 MDI
2.14.3.9
2.14.3.10 G53, G28, G30 G30.1

2.14.3.1
,
.
.
( )

.
.
.
.
.
G40, G41, G42
G40, G41, G42 .
G00, G01, G02, G03 G33 ().
G40
G41
G42
G41 G42 G40.

,
02 30 (
, ). ,

. .
,
.


, .
.
G41 G42
. .
00.
Z
.

200

B-63084EN/01

Fanuc 21i / 210i - TA

(G02 G03) .
, 34. .

. 2 ,
.
,
.

180 ,
. 0 180 ,
.

Programmed path
Inner side
Outer side
Workpiece -


:
- S
- SS
- SSS
- L
-
- r
-
r.
- .

201

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.3.2
,
.

(180 )

Programmed path
Workpiece
Tool nose radius center path


(90 180)

202

B-63084EN/01

Fanuc 21i / 210i - TA


( < 90)

1
( < 1)

. 2.14.3.3.

203

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.3.3
:

(180 )

Programmed path
Workpiece
Tool nose radius center path
Intersection -

204

B-63084EN/01

Fanuc 21i / 210i - TA

205

B-63084EN/01

Fanuc 21i / 210i - TA


(90 180)

206

B-63084EN/01

Fanuc 21i / 210i - TA


( < 90)

207

B-63084EN/01

Fanuc 21i / 210i - TA




,

.
.
.

Programmed path
Workpiece
Tool nose radius center path
Imaginary circle
Center of the arc
End the arc
Leading of the arc

208

B-63084EN/01

Fanuc 21i / 210i - TA


,
.

. 33
.
. ,
.

Programmed path
Center of the arc


, 38,
.

Tool nose radius center path


Programmed path

209

B-63084EN/01

Fanuc 21i / 210i - TA


G G41 G42
:

G
G41
G42


, .
.

210

B-63084EN/01

Fanuc 21i / 210i - TA

Tool nose radius center path


Programmed path

211

B-63084EN/01

Fanuc 21i / 210i - TA


G41 G42,
,
.

Tool nose radius center path


Programmed path
An arc whose end position is not on the arc

212

B-63084EN/01

Fanuc 21i / 210i - TA


,
.
2.14.3.2 2.14.3.4.
G28
G28 ,
. ,

.

G

,
G41 G42 .
, .
G41,
G42, . 14.3.3.

213

B-63084EN/01

Fanuc 21i / 210i - TA


, G50,
, .
, ,
. ,
, .
G50

G90, G92, G94 G71 G76


. 2.14.1 2.14.2.
.

214

B-63084EN/01

Fanuc 21i / 210i - TA


.
.
1. M05;

2. S21;
S
3. G04 X10.0;

4. G10 P01 X10 Z20 R10.0;



5. (G17) Z200.0;

6. G98;
G
7. X0;


,
.
.

, , ,
,
.

215

B-63084EN/01

Fanuc 21i / 210i - TA


,
.
,
.

Vx Vlimit Vy Vlimit, . Vlimit


50101.
, .

N7, N7. N7 G00,


. G01, G02, G03,
G01.


3.3.5.

216

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.3.4

(180 )

Programmed path
Workpiece
Tool nose radius center path
Intersection -


(90 180)

217

B-63084EN/01

Fanuc 21i / 210i - TA


( < 90)

1
( < 1)


,
,
,
.

218

B-63084EN/01

Fanuc 21i / 210i - TA

G40, I, J, K
G41 G42
G41 G42 G40 I, J, K,

(I, J0, (I, K), (J, K).
.

N1 .
N2 .
, ,
.

,
.

219

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.3.5

. ()
.
.


1)
( 90 270 ).

Tool nose radius center path


Programmed path
Directions of two paths are different

220

B-63084EN/01

Fanuc 21i / 210i - TA

2. 1,

180 .

Tool nose radius center path


Programmed path

1: r1 = 200.0
2: r2 = 600.0
, N6 .
, .

221

B-63084EN/01

Fanuc 21i / 210i - TA


1)
, V1,
V2, V3 V4 , V5, V6, V7 ,
. , .
-
, .
V4 V5
V4 V5 .
V3 V6
V3 V6 .
V2 V7
V2 V7 .
V1 V8
V1 V8 .
,
. ,
.
1. V1 V8

222

B-63084EN/01

Fanuc 21i / 210i - TA

2. V1, V2, V7 V8

1,
.
1
, 41,
.
, .

V2 V5 - ,
V1 V6. , .

223

B-63084EN/01

Fanuc 21i / 210i - TA

1)

,

. , 041.
2)

224

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.3.6

, ..
, .
..
.



, .
.

225

B-63084EN/01

Fanuc 21i / 210i - TA



, .
.
.
, . ,
,
.

226

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.3.7
,
.
, ,
, 39 .
,
,
39.


1 ,
52, 54.

Programmed path with chamfering

, ,
.
0 l1 l2 < r * tan 22.5 (r )

227

B-63084EN/01

Fanuc 21i / 210i - TA

2, 1
( L).
3 .
52 55 :

Limit of programmed path with chamfering


The alarm is displayed at this path
Programmed path
Tool nose radius center path
Tool nose radius center path with chamfering
Tool nose radius center path without chamfering

,
. 1
2 , .
2 .
, 52.

228

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.3.8 MDI
MDI.
,
, ,
MDI , .
:

. ,
:

, ,

MDI. VB1 VB2 VB1 VB2
VC1 VC2 - -PD.
, VB2 ,
.

229

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.3.9

,
. ,
.

Calculated from offset value in block N6 N6

N6 N7,
N6.

, G41
G42 .
.
,
. 1 ,
, 2.

, ,
.
, .

230

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.3.10 G53, G28, G30 G30.1

G53 ,
,
.
FS16 2 (CCN) 5003 0,
FS15 1.
G28, G30 G30.1
,

,
.
FS16 2 (CCN) 5003 0, FS15 1.

G53
G53 ,
,
.
G53,
. ,
.
2 (CCN) 5003.
G53
2 (CCN) 5003 0.

2 (CCN) 5003 1.

231

B-63084EN/01

Fanuc 21i / 210i - TA

G53
2 (CCN) 5003 0.

2 (CCN) 5003 1.

G53
2 (CCN) 5003 0.

2 (CCN) 5003 1.

232

B-63084EN/01

Fanuc 21i / 210i - TA

1 G53
, ,
, . 2 5003
0 , .
1.
2 (CCN) 5003 0

2.
2 (CCN) 5003 1

3.
2 (CCN) 5003 1

233

B-63084EN/01

Fanuc 21i / 210i - TA

G53 ,
. 2
5003 1.

2 (CCN) 5003 0

234

B-63084EN/01

Fanuc 21i / 210i - TA

1.
G53,
.
.

2 (CCN) 5003 0

2. G53 ,
. 2 5003 1,
.

2 (CCN) 5003 0

G28, G30, G30.1


G28, G30, G30.1 ,
FS15 2 5003
1.
.
.
.

235

B-63084EN/01

Fanuc 21i / 210i - TA

G28, G30, G30.1 (


)
2 (CCN) 5003 0.

Intermediate position
Reference position or floating reference position

2 (CCN) 5003 1.

G28, G30, G30.1 (


)
2 (CCN) 5003 0.

2 (CCN) 5003 1.

236

B-63084EN/01

Fanuc 21i / 210i - TA

G28, G30, G30.1 (


)
2 (CCN) 5003 0.

2 (CCN) 5003 1.

G28, G30, G30.1 ( )


2 (CCN) 5003 0.

2 (CCN) 5003 1.

237

B-63084EN/01

Fanuc 21i / 210i - TA

1 G28, G30 G30.1


,
. ,
. 2 5003 0
, .
1.
2 (CCN) 5003 0

2.
2 (CCN) 5003 0

2. G28, G30 G30.1


, .
2 (CCN) 5003 1.

238

B-63084EN/01

Fanuc 21i / 210i - TA

1.
G28, G30, G30.1,
.
.

2 (CCN) 5003 0

2. G28, G30, G30.1


. .
.

2 (CCN) 5003 0

239

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.4 ,
(G10)


.
.

Point of the program


Imaginary tool

. 14.4
MDI
.
.

. . 2.14.1.2.

240

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.4.1
14.4.1 .
14.4.1


IS-B
0 - +-999.999
IS-C
0 - +-999.9999


0 - +-99.9999
0 - +-99.99999


/
7. , IS-B 7 IS-C
. :
14.4.1 (b)


IS-B
0 - +-9999.999
IS-C
0 - +-9999.9999
(0 - +-4000.0000)


0 - +-999.9999
0 - +-999.99999
(0 - +-160.00000)

1.
/ ( 0
5006 1).
2.
.

16, 32, 64 99 .

,
.

241

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.4.2
( G10)
:

G10 P_ X_ Y_ Z_ R_ Q_;

G10 P_ U_ V_ W_ C_ Q_;
:

0:

1-64:
10000+(1-64):
(1-64):
X:
( )
Y:
Y ( )
Z:
Z ( )
U:
( )
V:
Y ( )
W:
Z ( )
R:
( )
:
( )
Q:

, X, Y, Z, R
.
, U, V, W, C
.

1. X, Y, Z, U, V, W .
2. .
MDI
.

242

B-63084EN/01

Fanuc 21i / 210i - TA

2.14.5 (G36, G37)


,

.
, .
. .


,
.


MDI MEM:
G36Xxa; G37 Zza;
, a za. ( ).

,
. ,
, .


( )
Xa Za G36Xxa G37 Zza.
= + ( xa)
z = + ( za)
xa:
za: Z
MDI.

243

B-63084EN/01

Fanuc 21i / 210i - TA


,
.
6241 ,
D.
, . V,
V 080.

Predicted measurement position


FR:
FP:

. 14.5 ()
G
3 (G36) 3405 1, G37.1 G37.2 G
Z.

244

B-63084EN/01

Fanuc 21i / 210i - TA

Programmed zero point


Measurement position
Offset value before measurement
Offset value after measurement

G50 X760.0 Z1100.0;


S01 M03 T0101;
G36 X200.0;
G00 X204.0;
G37 Z800.0;
T0101;



1, 1,

198.0,
200, = -2.0

Z
Z804.0,
Z800, = 4.0
.
.

245

B-63084EN/01

Fanuc 21i / 210i - TA

1. Fp, 6241, 6251, 6254


. > .
2. G36, G37 .
3. ,
.
4.
,
R.
.
: .

Tool nose radius value


Measurement position
Actual value
Movement coinsidering tool nose value

,

.

1. G36 G37 , 81.


2. G36, G37, 82.

246

B-63084EN/01

Fanuc 21i / 210i - TA

2.15
,
,
.
, .

247

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.1
G
, G100 X100.0.

.
,
MDI.
#1=#2=100;
G01 X#1 F0.3;


, (#) .
,
.
: #1
. ,
.
: #[#1+#2-12]

.
15.1

#0
#1 - #33

#100 - #149
(#199)
#500 - #531
(#999)

#1000 -

. .

. ,
. ,
.

. , #100 - #149
. 500 531
. , 150 199 532 999
. , ,
8.5.

, .

#150 #199 #532 #999 .



0
:
-1047 10-29
0
+10-29 +1047
, 111.

248

B-63084EN/01

Fanuc 21i / 210i - TA


,
.
:
#1=123, 123.00.

,
. ,
.
: G01X[#1+#2]F#3;

.
:
G00X#1; 1/1000 #1 12.3456,
G00X12.346;
, (-) #.
: G00X-#1;
, .
:
#1 0, #2
null (), G00X#1Z#2 G00X0;

, null.
, .
()
, .
#1 = <>
G90 X100 Y#1

G90 X100

#1 = 0
G90 X100 Y#1

G90 X100 Y0

(b)
<> 0, <>
#1 = <>
#2 = #1

#2 = <>
#2 = #1*5

#2 = 0
#2 = #1+#1

#2 = 0

#1 = 0
#2 = #1

#2 = 0
#2 = #1*5

#2 = 0
#2 = #1+#1

#2 = 0

249

B-63084EN/01

Fanuc 21i / 210i - TA

(c)
<> 0 EQ NE
#1 = <>
#1 = 0
#1 EQ #0
#1 EQ #0


#1 NE 0
#1 NE 0


#1 GE #0
#1 GE #0

#1 GT 0
#1 GT 0





( )

. 6036 6037
.

, null.
******** ,
99999999 0.0000001.

,
.
:
#1;
/#2G00X100.0;
N#3Z200.0;

250

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.2

, . ,
.
.


()
.
15.2 () .

#1000-#1015 16- .
#1035
1000 1015 .
1032 16 .
#1100-#1115 16- .
#1132
1100 1115 .
1132 16 .
#1133
1133 32
.
, 99999999
+99999999.
B-63003EN-1.


,
.
15.2 (b)

.
1
..
49
..
64

.
#2001
#2701
..
..
..
#2749
..
#2064

.
Z

.
#2101
#2801
..
..
..
#2849
..
#2164

.
#2201
#2901
..
..
..
#2949
..
#2264

#2301
..
..
..
#2364

.
Y

.
#2401
#2451
..
..
.#2449
#2499

15.2 (c) 99

.
1
..
99

.
#10001
#15001
..
..
#10099
#15099

.
Z

.
#11001
#12001
..
..
#11099
#12099

.
#12001
#17001
..
..
#12099
#17099

#13001
..
#13099

.
Y

.
#14001
#19001
..
..
#14099
#19099

#2001 - #2964
Y Z 1 49
1 64.

251

B-63084EN/01

Fanuc 21i / 210i - TA


15.2 (d)

0 200 #3000,
#3000

. ,
26 . 3000
#3000.

:
#3000=1(TOOL NOT FOUND);
3001 TOOL NOT FOUND.

.
15.2 ()

1 . ,
#3001
#3002
#3011
#3012

0. 2147483648 ,
0.
1 . ,
0. 9544.371767 ,
0.
(//).
// .
, 28 , 1993 19930328.

(//). //
. , 15 , 34 56
153456.


.
15.2 (f) #3003
#3003

0.
,
.
(M, S )
,
. , DIN .

252

B-63084EN/01

Fanuc 21i / 210i - TA

15.2(g) #3004
#3004

0.
:
1) ,
. ,
#3003.
2) ,
, ;
.
, 100%.
,
,
.

.
.
#15

#14

#13

#7

#6

#5
SEQ

#3005
#13
#11

#10

#9 FCV:
#5 SEQ:
#2 INI:
#1 ISO:
#0 TVC:

#4

#3

#2
INI

#9
FCV
#1
ISO

#8
#0
TVC

FS15


EIA ISO
TV



.
(. 3.4.7).
.

#7
8

#6
7

#5
6

#3007
#4
#3
5 4

#2
3

#1
2

#0
1

0 , 1 .
: #3007 3,
.

253

B-63084EN/01

Fanuc 21i / 210i - TA


,
OR ( ) .

, #3007.
#3007 .
, 116 WRITE PROTECT
VARIABLE.


.
15.2 (h)


#3901
#3902

.

.
15.2 (i)

01
G00, G01, G02, G03, G33, G34
#4001
02
G96, G97
#4002
03
..
#4003
04
G68, G69
#4004
05
G98, G99
#4005
06
G20, G21
#4006
07
G40, G41, G42
#4007
08
G25, G26
#4008
09
G22, G23
#4009
10
G80 G89
#4010
11
..
#4011
12
G66, G67
#4012
13
G54-G59
#4014
14
..
#4015
15
G17 G19
#4016
16
..
..
22
#4022
F
#4109

#4113

#4114

#4115
S
#4119

#4120
:
#1=#4001 , #1 0, 1, 2, 3 33.

254

B-63084EN/01

Fanuc 21i / 210i - TA

G
, .

, .
15.2 (j)

#5001-#5008
#5021-#5028
#5041-#5048
#5061-#5068
#5081, #5082
#5101-#5108

( 1 8) .
#5081
- #5088
G31
#5061 - #5068. G31,
.
,
.


15.2 ()


5201
..
..

5208
G54
5221
..
..
G54
5228
G55
5241
..
..
G55
5248
G56
5261
..
..
G56
5268
G57
5281
..
..
G57
5288
G58
5301
..
..
G58
5308
G59
5321
..
..
G59
5328

#5201 5328,
.
255

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.3
15.3().
/
. #j #k
. .
15.3()

#i=#j
#i=#j + #k

#i=#j - #k

#i=#j * #k

#i=#j / #k

#i = SIN[#k];
. 90

#i = ASIN[#k];
30

#i = COS[#k];
90.5 .

#i = ACOS[#k];

#i = TAN[#j];

#i = ATAN[#j]/[#k];
#i = SQRT[#k];

#i = ABS[#k];

#i = ROUND[#k];

#i = FIX[#k];

#i = FUP[#k];

#i = LN[#k];

#i = EXP[#k];

#i=#j OR #k


#i=#j XOR #k
.

#i=#j AND #k
BCD BIN
#i=BIN[#k];

BIN BCD
#i= BCD[#k];


SIN, COS, TAN, ASIN, ACOS, ATAN
.
ARCSIN #i = ASIN[#j];
:
NAT ( 0 6004) 0: 270 90
NAT ( 0 6004) 1: -90 90
#j -1 - +1, 111.
#j .
ARCCOS #i = ACOS[#j];
180 0 :
#j -1 - +1, 111.
#j .

256

B-63084EN/01

Fanuc 21i / 210i - TA

ARCTAN #i = ATAN[#j]/[#k];
/.
:
NAT ( 0 6004) 0: 0 360
NAT ( 0 6004) 1: -180 180
#j .
#i = LN[#j];
, 10-8 .
0 , 111.
#j .
#i = EXP[#j];
, 10-8 .
3.65 1047,
111.
#j .
ROUND
ROUND , IF,
WHILE, .
:
#1=ROUND[#2] #2 1.2345, #1 1.0.

ROUND ,
.


,
.
, .
.
:
#1 = 1.2 #2=-1.2
#3=FUP[#1], 2.0
#3=FIX[#1], 1.0
#3=FUP[#2], -2.0
#3=FIX[#2], -1.0

. (. 3.9.7).
:
ROUND RO
FOX FI

1.
2. (*, /, AND, MOD)
3. (+, -, OR, XOR)
: #1=#2+#3*SIN[#4];
:
SIN[#4];
#3*
#2+

257

B-63084EN/01

Fanuc 21i / 210i - TA


.
5. ,
118.

([,]) . ,
.

.
15.3 (b)

a=b*c
a=b/c
a= b
a=b+c
a=b-c
a=SIN[b]
a=COS[b]
a=ATAN[b]/[c] (*4)

1.55 x 10-10
4.66 x 10-10
-9
1.24 x 10
2.33 x 10-10

4.66 x 10-10
1.88 x 10-9
3.73 x 10-9
5.32 x 10-10

5.0 x 10-9

1.0 x 10-8

1.8 x 10-6

3.6 x 10-6


*1

*2
*3

1.
2. .
3. .
4. SIN/COS.

#1 #2:
#1 = 9876543210123.456
#2 = 9876543277777.777
:
#1=9876543200000.000
#1=9876543200000.000
, #3=#2-#1 #3=100000.000.
, : EQ, NE, GE, GT, LE, LT.

IF [#1 EQ #2] #1, #2,


. ,
, IF[ABS[#1-#2]LT0.001].

( 0.001).
, .

#2=#1*1000; #1=0.002,
2.0, 1.99999997. .

0 90 , 112.

258

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.4
:
(=)
( GOTO, DO, END)
.
.


, . ,
5 6000 1.

(. 2.15.7).
,
,
O, N, P, L, .
99 O, N, P, L,
.

2.15.5

IF GOTO. :
GOTO:

IF:

WHILE:

2.15.5.1 (GOTO)
n. 1
99999, 128. .
GOTO n;
GOTO#10;

259

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.5.2 (IF)
IF , .
, .
IF [#1 GT 10] GOTO 2;
#! 10, 2.
IF[<>]THEN
, .
.
IF [#1 EQ #2] THEN #3=0; #1 = #2 #3 .

15.5.2

EQ

NE

GT

GE

LT

LE


9500
#1=0;
#2=1;
N1 IF[#2 GT 10] GOTO 2;
10
#1=#1+#2;
#2=#2+1;
GOTO 1;
N2 M30;


#2 10, N2

N1

260

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.5.3 (WHILE)
WHILE ,
DO END. ,
END.
WHILE [] DO m;
..
..
END m;
..

, DO END .
, END.
IF. DO END
.
1, 2 3. 1, 2, 3,
126.

1 3 DO END ,
. , ,
124.
1. .

2. DO

261

B-63084EN/01

Fanuc 21i / 210i - TA

3.

4.

5.


DO m WHILE, DO END.

() GOTO, .
, .
WHILE .

EQ NE, null
. , null
.

O0001;
#1=0;
#2=1;
WHILE[#2 LE 10] DO
1;
#1=#1+#2;
#2=#2+1;
END 1;
M30;

262

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.6
:
G65
G67
G
M

G65 98 :
G65 . 98 .
98 ,
. G65 .
98 ,
. G65 .
G65 . 98
.

263

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.6.1 (G65)
G65, .
() .

G65 P p L l <->;
P
l


(1 )

G65 .
, L
1 9999. L , l = 1.
,
.

. 1
G, L, O, N, P . 2 A, B, C
, I, J, K .
.
1

A
B
C
D
E
F
H

#1
#2
#3
#7
#8
#9
#11

I
J
K
M
Q
R
S

#4
#5
#6
#13
#17
#18
#19

T
U
V
W
X
Y
Z

#20
#21
#22
#23
#24
#25
#26

G, L, N, O, P .
, .
null.

264

B-63084EN/01

Fanuc 21i / 210i - TA

2
2 , I, J, K .
2 .

A
B
C
I1
J1
K1
I2
J2
K2
I3
J3

#1
#2
#3
#4
#5
#6
#7
#8
#9
#10
#11

K3
I4
J4
K4
I5
J5
K5
I6
J6
K6
I7

#12
#13
#14
#15
#16
#17
#18
#19
#19
#20
#22

J7
K7
I8
J8
K8
I9
J9
K9
I10
J10
K10

#23
#24
#25
#26
#27
#28
#29
#30
#31
#32
#33

I, J, K
.

G56 .
1 2
1 2.
1 2, .

.
.

.

.

G65
G66. 98.

265

B-63084EN/01

Fanuc 21i / 210i - TA


0 4.
0.
G65 G66,
.
.
99 ,
. , .
.

( )
X, Z. Z W
, , F .

Cutting
Rapid traverse


G65 P9100 (Zz Ww) Kk Ff;
Z: ( )
U: ( )
:
F:

266

B-63084EN/01

Fanuc 21i / 210i - TA


O0002;
G50 X100.0 Z200.0;
G00 X0 Z102.0 S1000 M03;
G65 P9100 Z50.0 K20.0 F0.3;
G00 X100.0 Z200.0 M05;
M30;

O9100;
#1=0;

#2=0;

IF [#23 NE #0] GOTO 1;
N1
IF [#26 EQ #0] GOTO 8;
Z, W,
#23=#502-#26

N1 #1=#1+#6;

IF [#1 LE #23] GOTO 2;

#1=#23;

N2 G00 W-#2;

G01 W-[#1-#2] F#9;



G00 W#1;

IF [#1 GE #23] GOTO 9;

#2=#1;

GOTO 1;
N9 M99;
N8 #3000=1 (NOT Z OR U COMMANT);

267

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.6.2
G66 .
G66.

G67.

G66 P p L l <->;
P
l


(1 )

G66 .
, L
1 9999. L , l = 1.
G65, .
, .

G67, .

G65
G66. 98.

G66
.

G66 .
G66

.
() G66. ,
.

268

B-63084EN/01

Fanuc 21i / 210i - TA


G66 P9110 Uu Fu;
U
( )
F


O0003;
G50 X100.0 Z200.0;
S1000 M03;
G66 P9110 U5.0 F0.5;
G00 X60.0 Z80.0;
Z50.0;
Z30.0;
G67;
G00 X00.0 Z200.0 M05;
M30;

O9110;
G01 U-#21 F#9;
G00 U#21;
M99;

269

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.6.3 G
G ,
.

G 1 9999 (9010 9019)


(6050 6069),
, G65. , ,
9010 G81,
.

O9010
O9011
O9012
O9013
O9014
O9015
O9016
O9017
O9018
O9019

6050
6051
6052
6053
6054
6055
6056
6057
6058
6059

, L 1
9999.

, .
.

G
G , G .
G G .
, G
.

270

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.6.4 M
,
.

1 9999 (9020 9029)


(6080 6089),
, G65.

O9020
O9021
O9022
O9023
O9024
O9025
O9026
O9027
O9028
O9029

6080
6081
6082
6083
6084
6085
6086
6087
6088
6089

, L 1
9999.

, .
.

.
G , ,
.
.

271

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.6.5 M
,
, 98.

1 99999999 (9001
9006) (6071 6076),
, 98.

O9000
O9001
O9002
O9003
O9004
O9005
O9006
O9007
O9008
O9009

6070
6071
6072
6073
6074
6075
6076
6077
6078
6079

, L 1 9999.



, .

G , ,
.
.

272

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.6.6
( )
,
.

5 6001 1, 9000
.
#149.

G , ,
.
.

273

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.6.7

.

1
5. 6 .

:
#501
1
#502
2
#503
3
#504
4
#505
5

03
05. #3002
.
,
.



3 6071, 05 6072.

0 #501 #505.

O0001;
T0100 M06;
M03;
..
M05;
T0200 M06;
M03;
..
M05;
T0300 M06;
M03;
..
M05;
T0400 M06;
M03;
..
M05;
T0500 M06;
M03;
..
M05;
M30;

#501

#502

#503

#504

#505

274

B-63084EN/01


O9001(M03)
M01;
IF[FIX[$4120/100] EQ 0] GOTO 9;
IF[FIX[$4120/100] GT 5] GOTO 9;
#3003=0;
N9 M03;
M99;

Fanuc 21i / 210i - TA

O9002(M05);

M01;
IF[FIX[$4120/100] EQ 0] GOTO 9;
IF[FIX[$4120/100] GT 5] GOTO 9;
#[500+FIX[#4120/100]]=#3002+#[500+FIX[#4120/100]];
N9 M05;

M99;

275

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.7

. .
G41, G42,
.

. 00, 01, 02 30,
(3411
3420) G31 .

( , G32 ..)

NC statement execution
Macro statement execution -
(
)

N1 , (N4) .
N2, N3 N1 N4 N1.

276

B-63084EN/01

Fanuc 21i / 210i - TA

(G41, G42)

N1 , ( N5).
N2, N4 N1 N5 N1.

(G41, G42)

N1 , ( N5).
N5 , .
( N7) . N2,
N4 N6 N1 N1 N1.

277

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.8
.
.

, .

278

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.9
MDI
MDI. ,
MDI .

.

,
( ,
, ).
(G65, G66, G67)
.
5 6000
1.
. ,

,
.

/,
.
.
EDIT
0 3202 4 3202 1,

8000 8999 9000 9999.
.
( RESET DELETE
), .

#100 - #149
null. CLV
CCV ( 7 6 6001). #1000 - #1133 .
PROGRAM RESTART
98, .
.

,
.
.
, <>
+0.0000001 - +99999999
-99999999 - -0.0000001
.
003.

279

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.10
,
.
- BPRNT
- DPRNT
- POPEN
- PCLOS

.

:
: POPEN

,

/.
: BPRNT DPRNT
.
: PCLOS
, PCLOS
/.
POPEN
POPEN /.
. DC2.
BPRNT
BPRNT [a #b [c] ]

#b

[c]

BPRNT .
(i) ISO
. :
- (A Z)
-
- (*, /, +, - ..)
(ii) .
. (32 ),
.
.
(iii) . EOB
ISO.
(iv) null, 0.

280

B-63084EN/01

Fanuc 21i / 210i - TA

DPRNT
DPRNT [a #b [c d] ]

#b

[c]

[d]

DPRNT
ISO.
(i) . (i) (iii) BPRNT.
(ii) , # ,
.
,
. ISO.
ISO.
8 .
, 1
6001 1.
,
. ,
. 1 6001 0,
+,
.

281

B-63084EN/01

Fanuc 21i / 210i - TA

PCLOS
PCLOS /.
. DC4.

282

B-63084EN/01

Fanuc 21i / 210i - TA


020.
, (,
.
I/O 0: 101, 102 103
I/O 1: 111, 112 113
I/O 2: 121, 122 123
Fanuc .
DPRNT ,
( 1 6001 1 0).
ISO , LF ( 3 NCR 0103 0)
LF CR (NCR 1).

1. POPEN BPRNT, DPRNT


PCLOS . POPEN ,
.
2. , .
. ,
.
3. ,
. ,
30 ,
30 .
4. [ ] . ,
,
.
5. [ ]. , ,
, .

283

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.11
,
(UINT).
. :
96 ;
97;


.
.
1) , .
2)
.
3)
.

. 15.11
96,
UINT
.
UINT 97,
.

284

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.11.1

:
- MDI
- STL ( )
-

, 96 97
.
96,
96 97. 97 ,
UINT. UINT
96.

96.

, . .

285

B-63084EN/01

Fanuc 21i / 210i - TA

2.15.11.2

: .
5 6003.
)
. ,
. .
b)
. ,
.
.
, .
.

, 96 97. ,
.
4 6003
.
, 6033 6034
.
6033 , 6034
.
,
96 97.

286

B-63084EN/01

Fanuc 21i / 210i - TA

,
, . 2 MIN
6003
, .
1 ( )

(i) UINT ,
.
(ii)
, .
,
.
(iii) ,
99,
.

Execution in progress
Interrupted by macro interrupt
CNC command restart

287

B-63084EN/01

Fanuc 21i / 210i - TA

2 ( )

(i)
, :
UINT, .
.
(ii) ,
:
, .
.

Execution in progress
Interrupt

288

B-63084EN/01

Fanuc 21i / 210i - TA


96.
97.
,
.
.


1
,
. ,
. ,
,
.
2
,
. , .

289

B-63084EN/01

Fanuc 21i / 210i - TA

UINT
UINT:
. ,
.
, .
3 6003. ,
UINT .
.
, UINT
, .

, .
, .
.

Status triggered scheme


Edge-triggered scheme

,
.

290

B-63084EN/01

Fanuc 21i / 210i - TA


, 99.
,
.
.
, 99. 99 ,
. ,
, . ,
96 97 .

, . 99
.
O01234. , 1234 . 5678
96 97, .

99 O, N, P, L M,
. ,
. 1 (1) (2) . (
G 99).
(1) Gxx Xxxx;
M99;
(2) Gxx Xxxx M99;

291

B-63084EN/01

Fanuc 21i / 210i - TA


.
UINT. ,
. ,
,
.
99 ,
.
.
.
,
- .
:
1)
.
2) ,
.
99

.

99
.

#4001 - #4120.
, ,
4001 4120 .

292

B-63084EN/01

Fanuc 21i / 210i - TA

( )

#5001
A

B
#5021 #5041 .

Tool nose center path


Offset vector
Programmed tool path
Interrupt generated


UINT ,
. , G66 ,
.
. 99,
.

,

. 2
.

293

B-63084EN/01

Fanuc 21i / 210i - TA

2.16 (G10)

.


.

294

B-63084EN/01

G10L50;
N_R_;
N_P_R_;
..
..
G11;

Fanuc 21i / 210i - TA


N_;
(4 ) (0 1023) +10,000 (5 )
R_;
(
P_;
1 8 ( )

(R_)
R_.
R_.
P_
_ 1 8 .
.
, 2 .

1. .
.
2. .
.

1. 2 3404.
G10L50;
N3404 R00000100;
G11;
2. Z, C 1322 (
)
G10L50;
N1322P3R4500;
N1322P4R12000;
G11;

295

B-63084EN/01

Fanuc 21i / 210i - TA

2.17 Series 10/11


Series 10/11
1 0001.
Series 10/11
:
-
-
-
-
-

296

B-63084EN/01

Fanuc 21i / 210i - TA

2.17.1 Series 10/11


, ,
Series 10/11. Series 10/11
, . 2.17.2 2.17.5. ,
.

297

B-63084EN/01

Fanuc 21i / 210i - TA

2.17.2

G32IP_F_Q_;

G32IP_E_Q;
IP

F

E

Q
( )

Series 15 ,
Series 15 F . Q
. ,
.


0.0001 500.0000



0.0001 500.0000
0.01 500.00


0.000001
9.999999
0.000001
9.999999
0.0001
9.9999

IS-B
F

IS-C


0.01 500 /
1 24000 /
1 100000 /


0.0001 9.9999 /
0.01 9600.00 /
0.01 9600.00 /

298

B-63084EN/01

Fanuc 21i / 210i - TA

2.17.3

M98PxxxxLxxxx;
P

L

L ,
Series 15.

1 9999.
4 , .

1 9999. ,
1.

299

B-63084EN/01

Fanuc 21i / 210i - TA

2.17.4


G90X_Z_F_;

G90X_Z_I_F_;
I: ()

G92X_Z_F_Q_;
F:
Q: ()

G92X_Z_I_F_;
I: ()

G94X_Z_F_;
G94X_Z_K_F_;
: Z

I K
, Series 15. Q Series
15, .

, 2.17.2.

300

B-63084EN/01

Fanuc 21i / 210i - TA

2.17.5


G71P_Q_U_W_I_K_D_F_S_T_;
I: ()
: Z ()
D:

G72P_Q_U_W_I_K_D_F_S_T_;
I: ()
: Z ()
D:

G73P_Q_U_W_I_K_D_F_S_T_;
I:
: Z
D:
()
G74X_Z_I_K_F_D_;

G74U_W_I_K_F_D_;
I:
: Z
D:

G75X_Z_I_K_F_D_;

G75U_W_I_K_F_D_;
I:
: Z
D:

G76X_Z_I_K_F_D_A_P_Q_;
I:
: Z
D:
A:
:

301

B-63084EN/01

Fanuc 21i / 210i - TA


Series 15,
.
I (G71)
I
G76 1
. 0 120
, 062.
D 99999999 999999999
0 3401. D
, 007.
2.17.2.

302

B-63084EN/01

Fanuc 21i / 210i - TA

2.17.6

G81X_C_Z_F_L_; G82X_C_Z_R_F_L_;
R R

F
L

G81X_C_Z_R_Q_P_F_L_;
R R
Q

F
L

G83X_C_Z_R_Q_P_F_L_;
R R
Q

F
L

G84X_C_Z_R_P_F_L_;
R R

F
L

G84.2X_C_Z_R_P_F_L_S_;
R R

F
L
S

G84.2X_C_Z_R_F_L_; G89X_C_Z_R_P_F_L_;
R R

F
L

G80;

,
. Series 15 L.

303

B-63084EN/01

Fanuc 21i / 210i - TA

G
G Series 15.
G 10.
G Series 15
G Series 16/18/160/180

G81, G82, G83.1, G84.2


G87, G88


,
G .
Series 15,
G17/G19.
(Z, X) .
G


G17
XY
Z
G19
YZ
X
1 (FXY) 5101 Z.

:
Gxx X C Z R Q P F L ;

Gxx

XC

ZRQPF

L;

Gxx
X/U (Z/W)
C/H
Z/W (X/U)
R

Q
P
F
L


R


.
6 5102 G .



304

B-63084EN/01

Fanuc 21i / 210i - TA

R
.
Series 15, G
.
6 5102 0, .
1, G . G
, . , G90
, G91.
Series 15
6 5102 = 1
G

,
G90

6 = 0

Series 16/18/
160/180

G91


G Series 15 .
1. G81 ( ) G83 (G87) P0 <Q >

2. G82 ( ) G83 (G87) P <Q >

3. G83 ( ) G83 (G87) P < >
, .
4. G83.1 ( ) G83 (G87) P < >
, .
, 2 5101.
5. G84 ( ) G84 (G88) I
,
R.
6. G84.2 ( ) 29 S_ G84 (G88)
,
R.
7. G85 () G85 (G89) P0
.
8. G89 () G85 (G89) P_
.
d G83
5114 d G83 G83.1.
G83 G83.1
Series 15-T, G83 G83.1 .
Series 15,
.
G84 G84.2
Series 15-T, G84 G84.2
. Series 15,
R .

305

B-63084EN/01

Fanuc 21i / 210i - TA


Series 15
:

G84.2 X_Z_R_S****;
S****;
G84.2X_Z_R_;
M29 S****;
G84X_Z_R_;
M29 S**** G84X_Z_R_;
G84X_Z_R_S****;
S****
G84X_Z_R_;

(F10/F11) = 1
* Series 16
G84 G .
0 (G84) 5200 = 1
* Series 16


7 5102 1 R
Series 15.
Series 15
3 5102 Series 15.
. ,
L.

3 5102 1 6 7 5102,
0.


. G18
28.

Series 15 .

306

B-63084EN/01

Fanuc 21i / 210i - TA

2.18

307

B-63084EN/01

Fanuc 21i / 210i - TA

2.18.1
,
.
() .


DNC .
,
.
(B-61802E-1).

308

B-63084EN/01

Fanuc 21i / 210i - TA

2.18.2 (G05)
G05,
.
, .

: G05
:
:

Data sequence
High-order byte
First axis
Second axis
Low-order byte
Check byte

(2 )
, N-,
( [2 x N +1] ).
.

309

B-63084EN/01

Fanuc 21i / 210i - TA


4, 5 6 (IT0, IT1 IT2)
7501.


( ).

IS-B
0.001
0.0001

IS-C
0.0001
0.00001

310

B-63084EN/01

Fanuc 21i / 210i - TA

.
.

: 700 , ( , IS-B).


[2 x N] , ,
, .

[2 x N + 1] (N )
. ,
,
:
(2 x N + 1) x 11/T x 1000
(T: )

G05 ,
178.

.

G05.
/
,
/ ( 1622).


, .

, ,
.
. .

.

311

B-63084EN/01

Fanuc 21i / 210i - TA

2.18.3
,
.
, 000 179 (
7 7501).
.



, G05.

,
:

000
PLEASE TURN OFF ,
.
POWER
:
179
PARAM. (NO. 7510) ( 133)
SETTING ERROR

( 7150)
( 0
7510).

312

B-63084EN/01

Fanuc 21i / 210i - TA

2.19

313

B-63084EN/01

Fanuc 21i / 210i - TA

2.19.1

.

Workpiece
Tool -

.19.1()
,
.
Z
.
.

. 19.1(b)

G51.2 (G251)
P_Q_;
P, Q: Y
: 1 9 Q.
Q , Y
, .

.
Y. Y G51.2 ,
.
: Y 1:2, Y
.
G51.2P1Q2;
G51.2, , Y
P:Q
. Y , Y P:Q.

(G50.2 ). Y .
Q .
Y :
G50.2 (G250);

314

B-63084EN/01

Fanuc 21i / 210i - TA

G50.2, Y , Y

:
1)
2)
3)
4)
5 217 221.

G00 X100.0 Z20.0 S1000.0 M03;


G51.2 P1 Q2;
G01 X80.0 F10.0;
G04 X2;
G00 X100.0;
G50.2;
M05;

100 /
(2000 /)


( )


:
, a b.
XY .
, (, 0)
, Pto(A-B, 0).

, Pt t 1:

Xt=Acost-Bcos(-)t
( 1)
Yt=Asint+Bsin()t
315

B-63084EN/01

Fanuc 21i / 210i - TA

1:2, =2, 1 :
Xt=Acost-Bcost=(A-B)cost
2
Xt=Asint+Bsint=(A+B)sint
2
+ -.
:

120 ,
.

316

B-63084EN/01

Fanuc 21i / 210i - TA

1. .
G50.2 .
2. Y
.
:




(interlock)


( , G51.2).

1. Y ,
Y----. Y ,
G51.2,
.
Y (G28V0;)
G50.2.
, .
G28V0; Y .
G28
. Y
, .
, ,
.
.
2. Y
4- . , 7610,
3- . , .
3. Y, Y
0 .
.
4. Y.
5.
Y.
6. Y .

317

B-63084EN/01

Fanuc 21i / 210i - TA

2.19.2
.
0 1008 1.

, .
,
1260 . 1 1008
0, .
2
1008.


360.00 ( 1260 = 360000).
:
C0;
N1 C-150.0; : -150
: 210
N2 C540.0; : -30
: 180
N3 C-620.0; : -80
: 100
N4 H380.0; : +380
: 120
N5 H-840.0; : -840
: 0

Relative coordinate

318

B-63084EN/01

Fanuc 21i / 210i - TA

2.19.3

.
, ,
.
,
X Y.
, Y.


. ,
.
, .
.
Y, Y
.
,
.
.
.
. , .


.
.
.
1. .
2. Yyyyy Y.
3. Xxxxx Yyyyy Y.

.

G28 G30
, Y.
Y ,
.
G28 G30 .

319

B-63084EN/01

Fanuc 21i / 210i - TA



G27, Y.
,
. .
G27 .

,
213.

320

B-63084EN/01

Fanuc 21i / 210i - TA


8311.
.



,
214.
, interlock,
, interlock,
. .


.

(ABS
1). ,
.

.

321

B-63084EN/01

Fanuc 21i / 210i - TA

2.19.4 (G100, G101, G102, G103, G110)


1, Z1, 2 Z2
,
. 2 Z2
.

Tool post


G101-G100;
G102-G100;
G103-G100;
G100;

( (
).
G101, G102, G103 G100
.

, .
O1234;
..

G101;

..

G100;
..
M30;
, G101, G102, G103, G100 .

322

B-63084EN/01

Fanuc 21i / 210i - TA


, 8251 8253 . 8251 , 8253
.
O1234;
..
**;
..
M30;

:
1234;
G50 X100. Z200.;
G101;
G00 B10.;
M03;
G04 P2500;
G81 B20. R15. F500;
G28;
G100;
G00 X80. Z50.;
G01 X45. F1000;
..
G00 X10.;
M**;
G01 Z30. F300;
..
M30;


\
|
>
|
/


.

G110[ ];
.
.


:
1. 1, 2.
2. 1 2.
3. 1 2.
8250 .

323

B-63084EN/01

Fanuc 21i / 210i - TA


13 G , S, T
:

G00
G01
G04
G28
G80
G81
G82
G83
G84
G85
G86
G98
G99
M**
S**

T**
,
G28 ( )
G28, G28
. , .
G28 B99.9;
G80 G86 ( )
FANUC Series 16 Series 18,
G80 G86.
, Series 16, 18, :
1. Y.
2. R .
3. .
4. .
5. , R . (
5036).
6. d G83 8258.
G98, G99 ( , )
2 8241 G G110, G
(G101, G102, G103).
0, G98.
1, G90.

0
G110 B100. F1000.; 1000 /
G110 G99 B100. F1; 1 /

, ,

324

B-63084EN/01

Fanuc 21i / 210i - TA

M, S, T
M, S, T
. M, S, T
.
,
. ,
G84 G86: 03, 04, 05.
** - (** + 9), ** 8257
.
:
50 59 8257 50
1. , S, T
. .
2. ,
.

.
;
M11;
G00 B111;
G01 X999;
G01 B222;
G28 Z777;
G28;
M50;
M50;
G00 X666;
G81 B444 R111 F222;
..
50 ,
FIN . G00 666
G81 B444 R111 F222 .

(, , )
G101, G102, G103, G100.
1.
, .
2. G101, G102, G103, G100
.
3. , 1 2
.

,
.
, ,
.

325

B-63084EN/01

Fanuc 21i / 210i - TA

,
: G , F , , Q, F .
. ,
.
.

G01 X10. F1000;


1
G101 (G102, G103);
2
B10.;
3
G01 B-10. F500;
4
G100;
5
X-10.;
6
..
, 3 G00
1 8241 0, G01 1.
6 F1000, 1.

7 8240
:
1, .
0,
FIN.
(
).

, 40, 41 42
1234;
..
..
40;
41;
42;
40;
41;
..
..
30;
41 40.
42, 40 41 ,
,
.
6
, 5038.
1
1. 2
2.

326

B-63084EN/01

Fanuc 21i / 210i - TA



.
.
.
6 (ABS) 8240
. 1 , 0
.
.

**
.

,
.
8257 .
.
. . .
(single-motion)
G110, .

.
,
.
, .
..
G110 G01 B100. F200;

..
G00 X100. Z20.;
..


, , .
, 65535
. ,
5033. 80 .
(G81 G86) ,
.
.
.
,
.
:
..
G101;
G00 B10.;

G04 P1500;

G81 B20. T50. F600;

G28;

M15;

G100;
..

327

B-63084EN/01

Fanuc 21i / 210i - TA

MDI
, , ,
.
. . .

.
. .


1. G110 .
G110 G00 B100.;
G110 G28;
;
G110 G81 B100. R150.0 F100; ; 5034
2. (G81 G86)
G110.
3. G110 .
G110 ,
.

1 8241 1 2 8241 1
G98 G00 X100. F1000;
1
G110 B200. F2;
2
X200.;
3
G01 X200;
4
2 G01 2 /
3
4 G01 1000 /.
4.
G110 , 504.
.

328

B-63084EN/01

Fanuc 21i / 210i - TA

1 2

, 1 2 .
, 1 1 2
.
+100.
1
G101;
..
G00 B200.; ( )
G100;
..
M30;
G101;
..
G00 B300.; ( )
G100;
..
M30;

329

B-63084EN/01

Fanuc 21i / 210i - TA


:
8257 50
: 50
: 51 59

51 10.0 52 5.0.

330

B-63084EN/01

Fanuc 21i / 210i - TA

2.19.5 /
90 ,
.
Z .
.
,
,
.

Z,
.
:
Xa = Xp / cos
Z ,
:
Za = Zp (1/2) * Xp * tan
:
Fa = Fp / cos
Xa, Za, Fa:
Xp, Zp, Fp:

8211
8212.
(8200#0) .
,
(8210).
AZR (8200#2) .
/ NOZAGC
1, . ,
.
.


.

331

B-63084EN/01

Fanuc 21i / 210i - TA



. /
, .

1. ,
.
2. 2 8200 0,
, .
3.
NOZAGC 1, .
4.
, NOZAGC 1.

1. 0 90 , .
+-20 +-60 .
2. G37,
.

332

B-63084EN/01

Fanuc 21i / 210i - TA

2.20

( )
MDI.
.

( )
, .
BOR1, TAP3, DRL2.
.
.
DEPTH,
RETURN RELIEF, FEED, MATERIAL. .

333

B-63084EN/01

Fanuc 21i / 210i - TA

2.20.1
OFFSET SETTING [MENU] :

HOLE PATTERN:

. 12 .
BOLT HOLE
. 10 .
,
9500.

: C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 C12
C1 C2 - C12: (12 )

G65 H90 Pp Qq Rr Ii Jj Kk
H90
: 1 2 1 2,

q: 3 4 3 4, q = a3103+a4
r: 5 6 5 6, r = a5103+a6
i: 7 8 7 8, i = a7103+a8
j: 9 10 9 10, j = a9103+a10
k: 11 12 11 12, k = a11103+a12
:
HOLE PATTERN :
G65 H90 P072079 Q076069 R032080 I065084 J084069 K082078
HO
LE
_P
AT
TE
RN
. 2.20.3.

334

B-63084EN/01

Fanuc 21i / 210i - TA


: C1 C2 C3 C4 C5 C6 C7 C8 C9 C10
C1 C2 - C10: (10 )

G65 H91 Pn Qq Rr Ii Jj Kk
H90
n: ( 1 10)
q: 3 4 1 2, q = a1103+a2
r: 5 6 3 4, r = a3103+a4
i: 7 8 5 6, i = a5103+a6
j: 9 10 7 8, j = a7103+a8
k: 11 12 9 10, k = a9103+a10
:
1 BOLT HOLE :
G65 H91 1 Q066079 R076084 I032072 J079076 K069032
BO
LT
_H
OL
E_

,
INPUT.
#5900.
(
) #5900.

P, Q, R, I, J K ,
.

335

B-63084EN/01

Fanuc 21i / 210i - TA

336

B-63084EN/01

Fanuc 21i / 210i - TA

2.20.2
.

BOLT HOLE
. 12 .
TOOL
. 10 .
*BOLT HOLE CIRCLE*
. 8 , 12 .
,
9500.

337

B-63084EN/01

Fanuc 21i / 210i - TA


: C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 C12
C1 C2 - C12: (12 )

G65 H92 P Qq Rr Ii Jj Kk
H92
: 1 2 1 2, p = a1103+a2
q: 3 4 3 4, q = a3103+a4
r: 5 6 5 6, r = a5103+a6
i: 7 8 7 8, i = a7103+a8
j: 9 10 9 10, j = a9103+a10
k: 11 12 11 12, k = a11103+a12
:
HOLE PATTERN :
G65 H92 P072079 Q076069 R032080 I065084 J084069 K082078
HO
LE
_P
AT
TE
RN

: C1 C2 C3 C4 C5 C6 C7 C8 C9 C10
C1 C2 - C10: (10 )

G65 H92 Pn Qq Rr Ii Jj Kk
H93
n: ( 1 10)
q: 3 4 1 2, q = a1103+a2
r: 5 6 3 4, r = a3103+a4
i: 7 8 5 6, i = a5103+a6
j: 9 10 7 8, j = a7103+a8
k: 11 12 9 10, k = a9103+a10
:
503 BOLT HOLE :
G65 H91 503 Q066079 R076084 I032072 J079076 K069032
BO
LT
_H
OL
E_

32 #500 - #531,
.

338

B-63084EN/01

Fanuc 21i / 210i - TA


: C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 C12
C1 C2 - C12: (12 )

G65 H94 P Qq Rr Ii Jj Kk
H92
: 1 2 1 2, p = a1103+a2
q: 3 4 3 4, q = a3103+a4
r: 5 6 5 6, r = a5103+a6
i: 7 8 7 8, i = a7103+a8
j: 9 10 9 10, j = a9103+a10
k: 11 12 11 12, k = a11103+a12
8 12 .
.
:
HOLE PATTERN
:
G65 H94 P072079 Q076069 R032080 I065084 J084069 K082078
HO
LE
_P
AT
TE
RN

339

B-63084EN/01

Fanuc 21i / 210i - TA

, .

340

B-63084EN/01

Fanuc 21i / 210i - TA

2.20.3

341

B-63084EN/01

Fanuc 21i / 210i - TA

9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510


1
2
3
4
5
6
7
8
9
10


G 65 H90

G 65 H91

G 65 H92

G 65 H93

G 65 H94

#9500

342