fanuc LADDER2梯形图
发布时间:2024-11-10
发布时间:2024-11-10
加工中心PMC实例讲解
[FANUC 0i
Mate MC+MT PMC急停按钮输入信号
] Ladder DiagramCPU:。 *)G0008.4 *ESP
RAM
CPU 1 ROM
N00001 A 1
X0008.4 EMG
R0966.0
(*
处理急停信号 NCB
PMCG0071.1 *ESPA
NC串行主轴急停信号
PMC准备结束信号 NC PMC伺服准备就绪信号 PMC NC急停信号.急停信号为负逻辑信号,通常状态为1,急停时为0.
N00002 C 5
F0001.7 MA
F0000.6 SA
G0008.4 *ESP
Y0001.1
PMC MT CNC就绪 LED
A触点 B触点(*。
P21
打开抱闸,并通知操作者机床准备就绪 D
F1.7 F0.6 1 0Y0001.0 K0000.4 K0001.0
PMCY0003.4
MT控制抱闸释放
PMC NC存储行程限位转换信号G0007.6 EXLM
。
N00003 E 10
。F54/F55 NC PMC用于用户宏程序输出信号 UO000---UO015刀库信号确认,X4.2/4.4/4.6和X9.4的切换确
NCN00004 F 14 F0045.7 ORARA
PMC串行主轴定向结束信号F0054.0 UO000
*)
R0797.0
圆盘刀库信号切换,=1时,X4.4/4.2/4.6输入无效(圆)N00005 G 17 K0000.6 X0004.4 K.ARM75 X0004.2 X0004.6 K0000.7 Y0001.0
X4.4/4.2/4.6 K.ARMZRN ARMSTA
X9.4
MT PMC刀套下/刀库进行程开关X0009.4 H K0000.7
保持型继电器,刀库类型选择=1为圆盘刀库
PMC保持型继电器,刀库类型选择=1为圆盘刀库
/ LINKPMCG0008.0
FANUCNC全轴互锁信号
I/O
K0000.4 I
MT PMC刀套下/刀库进行程开关 MT PMC刀套下/刀库出行程开关N00006 J 27 X0009.4 X0009.5 K0000.7
保持型继电器,刀库类型选择=1为圆盘刀库K0001.0 K
*IT
*IT:所有轴互锁信号。该信号为0时,立即禁止所有轴的移动。如轴正在移动,则进行减速停止。是手动运转、自动运转通用的信号。参数3003#0(ITL) 0:使用所有轴互锁信号(*IT)。 1:不使用所有轴互锁信号
MT PMC松刀限位输入信号 MT PMC刀套下/刀库出行程开关X0008.7 L K.SONG'D AO Y0001.0 M K0000.7 X0009.5
保持型继电器,刀库类型选择=1为圆盘刀库
换刀互锁K0001.0 N
是否使用刀库K0000.4 O
加工中心PMC实例讲解
[FANUC 0i Mate MC+ ヴ ]Ladder Diagram
2
加工中心PMC实例讲解
[FANUC 0i Mate MC+ ヴ ]Ladder Diagram
圆盘刀库M45译码 R
N00016
A82
R0901.6
R0904.5M45
X0004.6K0000.7
3
保持型继电器,刀库类型选择
=1为圆盘刀库
R0700.1
圆盘刀库M46译码 R
R0902.0
B
M46R0904.6
圆盘刀库M47译码 R
R0902.1
C
R0904.7M47
刀库正转 R
R0900.2
刀库反转 R
R0900.3F0001.1RST
567 Ё &1& 。 (63 (36 55: 0', 30& g30& Ё 567 Ё h PV
K0000.7
R0900.5
N00017D93
R0700.0R0900.0
保持型继电器,刀库类
型选择 =1为圆盘刀库
Y0005.3
N00018E100
R0900.5F0096.2R0792.0R0901.6K0000.7
Y0005.3
F
X0004.6N00019G109
SUB1END1
第一级程序结束。第一级程序扫描周期8ms。顺序程序中必须给出,即使没有第一级程序也要在第二级程序开头加上。
R0450.0
N00020H110
X0001.7A0005.0
N00021I113
X0002.1A0005.0R0450.1
N00022J116
X0002.3R0450.2
R9091.0
R9091.0OFF
RST
SUB27CODB
0001
R0451.0
N00023K118
R9091.1
L
ACT
0008
M
系统计时器,常1信号
R0450
NG0043
O
0000030060000300033000050000100004-00123
0000000005
|MD4|MD2 |MD1 |DNCI|ZRN | 方式 | 0 | 1 | 1 | - | - |编辑 | 0 | 0 | 1 | 0 | - |存储器运转 | 0 | 0 | 1 | 1 | - |远程运转 | 0 | 0 | 0 | - | - |手动数据输入 | 1 | 0 | 0 | - | - |手轮进给 | 1 | 0 | 1 | - | 0 |手动连续进给 | 1 | 0 | 1 | - | 1 |手动回参考点
加工中心PMC实例讲解
A134
X0011.6
B
K0000.1G0046.5
K0000.0
C
G0046.6
PMC ( / )
N00025D143
R0966.2G0046.4
; ;
N00026E145
X0003.0(* 。 乎 。 5 *)
G0114.0
K0000.2
F
N00027G148
X0003.1K0000.2
H
G114/G116 G114/G116 乏 #506 + #507 -
G0116.0
N00028I151
X0003.2G0114.1
K0000.2
J
N00029K154
X0003.3G0116.1
K0000.2
L
N00030M157
X0003.4G0114.2
K0000.2
N
O
加工中心PMC实例讲解
K0000.2
B
N00032C163
X0011.7R0200.1R0200.0SBKP
N00033D166
X0011.7R0200.1SBKR
N00034E168
R0200.0G0046.1SBK
G0046.1
SBK
R0200.0
F
G0046.1SBK
Y0006.5
N00035G175
X0011.0R0200.3R0200.2BDTP
N00036H178
X0011.0R0200.3N00037I180
R0200.2G0044.0BDT
G0044.0
BDT
R0200.2
J
G0044.0BDT
Y0007.0
N00038K187
X0010.3R0211.1
R0211.0
选择停按键
R0211.1
选择停 R
N00039L190
X0010.3N00040M192
R0211.0Y0006.6
0
PMC MT选择停LED
Y0006.6
LED
R0211.0
N
Y0006.6
N00041O198
X0011.1R0211.7R0211.6
加工中心PMC实例讲解
N00043B203
R0211.6Y0000.1Y0000.1
LED
R0211.6
C
Y0000.1
N00044D209
Y0000.1R0966.0ACT
SUB24TMRB
0015
R0966.1
E0000010000
N00045F215
Y0000.1R0966.1Y0002.6
G0008.4
G
X0002.6K0000.2
N00046H222
X0010.7R0201.1R0201.0N00047I225
X0010.7R0201.1SRNR
N00048J227
R0201.0G0006.0SRN
G0006.0
SRN
R0201.0
K
G0006.0SRN
Y0006.7
LED
N00049L234
X0011.4R0201.3R0201.2MLKP
机床锁住按键
N00050M237
X0011.4N00050和N00051行,按下X0011.4使G0044.1接通并自保持,再按一下X0011.4断开G0044.1
机床锁住按键R
R0201.3MLK 0DFKLQH /RFN 326
0 6 7 $)/
N00051N239
R0201.2G0044.1MLK
G0044.1MLK
机床锁住按键灯
R0201.2
O
MLKG0044.1
Y0007.1
加工中心PMC实例讲解
N00052A246
N00053B249
N00054C251
D
N00055E258
N00056F262
N00057G265
H
I
N00058J274
K
N00059L279
M
N
O
加工中心PMC实例讲解
[FANUC 0i Mate MC+ ヴ ]Ladder Diagram 8
N00060A285
R0202.2G0019.5
(R202.2=1*10)(R202.3=1*1)
MP2
R0202.3
B
F0003.1
C
MH
X0003.7N00061D291
F0003.1MH
R0203.7
N00062E293
X0008.1R0203.7R0203.3
X8.1=1X X8.3=1Z
1
X0008.3
F
N00063G297
X0008.2R0203.7R0203.4
X8.2=1Y X8.3=1Z
AXIS2
X0008.3
H
N00064I301
F0070.0F0004.5R0092.0
=1,X , A0.1=0
R0092.0
J
N00065K305
F0070.0K0000.2R0092.0A0000.1
L
M
N
O
加工中心PMC实例讲解
[FANUC 0i Mate MC+ ヴ ]Ladder Diagram
NC PMC手动连续选择确认信号
MT PMC手动X轴正方向按键KEY_+X
N00066A309
F0003.2MJ
X0000.4A0000.1
9
G0100.0
+X
+J1
F0003.0
B
G100正方向,G102负方向
F0094.0ZP1
K0010.0
F0004.5X0000.4
C
G0100.0
D
+J1
X0000.4
E
±Jx : 手动进给信号 。把该信号置1后,即以参数1423上设定的速度乘以手动进给 倍率信号(*JV0~*JV15)所得的速度驱动进给轴移动。 因为CNC内部是检测前沿,所以选定手动方式(JOG)后输入该信号。同时输入轴的+和-两个方向的信号时,轴将不移动。 参数 1002#0(JAX)
0: 手动进给同时控制轴数为1轴。
1: 手动进给同时控制轴数最多为3轴。
G0102.0
G100+J5+J4+J3+J2+J1#5
#4#3#2#1
G102-J4-J3-J2-J1#5
#4
#3#2#2
N00067F321
F0003.2MJ
X0001.0-X
-J1
F0003.0
G
X0001.0
H
F0094.0ZP1
K0010.0F0004.5G0102.0
I
-J1
X0001.0
J
N00068K332
F0070.1F0004.5R0092.1
=1,Y , A0.2=0
R0092.1
L
N00069M336
F0070.1K0000.2R0092.1A0000.2
N
O
加工中心PMC实例讲解
[FANUC 0i Mate MC+ ヴ ]Ladder Diagram 10
N00070A340
F0003.2MJ
X0000.0A0000.2G0100.1
+Y
+J2
F0003.0
B
X0000.0
C
F0094.1ZP2
K0010.1F0004.5G0100.1
D
+J2
X0000.0
E
N00071F352
F0003.2MJ
X0001.2G0102.1
-Y
-J2
F0003.0
G
X0001.2
H
F0094.1ZP2
K0010.1F0004.5G0102.1
I
-J2
X0001.2
J
N00072K363
F0070.2F0004.5R0092.2
=1,Z , A0.3=0
R0092.2
L
N00073M367
F0070.2K0000.2R0092.2A0000.3
N
O
加工中心PMC实例讲解
[FANUC 0i Mate MC+ ヴ ]Ladder Diagram
MT PMC刀套下/刀库出行程开
11
N00074A371
F0003.2MJ
X0001.4X0009.5A0000.3G0100.2
+Z
+J3
F0003.0
B
X0001.4
C
F0094.2ZP3
K0010.2F0004.5G0100.2
D
+J3
X0001.4
E
MT PMC刀套下/刀库出行程开关
N00075F384
F0003.2MJ
X0000.2X0009.5
G0102.2
-Z
-J3
F0003.0
G
X0000.2
H
F0094.2ZP3
K0010.2F0004.5G0102.2
I
-J3
X0000.2
J
N00076K396
F0003.2MJ
X0004.0X0005.2G0100.3+J4
F0003.0
L
X0004.0
M
F0094.3ZP4
K0010.3F0004.5G0100.3
N
+J4
O
加工中心PMC实例讲解
[FANUC 0i Mate MC+ ヴ ]Ladder Diagram 12
N00077
A
407
F0003.2MJ
X0004.1X0005.2G0102.3-J4
F0003.0
B
=
F0094.3ZP4
K0010.3
F0004.5X0004.1
C
G0102.3
D
-J4
X0004.1
E
N00078F419
R9091.6F0094.3ZP4
F0004.5Y0005.2
REF , ,
=
F0094.3
G
ZP4
NO7100 G18.0~G18.3 G18.4~G18.7 G19.0~G19.3
G0100.3
H
+J4
F0003.1MH
G0018.0
N00079I425
R0203.31
1
N00080J428
R0203.42
F0003.1MH
G0018.1
2
N00081K431
F0003.1MH
X0009.3G0018.2
3
;
F0004.5X轴正方向按键灯
N00082L434
R9091.6F0094.0ZP1
Y0004.0
REF , ,
F0094.0
M
ZP1
) *
G0100.0
N
+J1
1 1 ; < = 回零 , ,
O
加工中心PMC实例讲解
<
N00083A440
R9091.6
F0094.1ZP2
F0004.5Y0004.3
Y轴正方向按键灯
REF , ,
F0094.1
B
ZP2
G0100.1
C
+J2
=
F0094.2ZP3
F0004.5Y0004.2
Z轴正方向按键灯
N00084D446
R9091.6
REF , ,
F0094.2
E
ZP3
G0100.2
F
+J3
X轴负方向按键灯
Y0005.4
N00085G452
G0102.0-J1
Y轴负方向按键灯
Y0004.6
N00086H454
G0102.1-J2
Z轴负方向按键灯
Y0004.5
N00087I456
G0102.2-J3
N00088J458
F0094.0ZP1
F0094.1ZP2
F0094.2ZP3
R0780.3
R0780.3
K
K0000.2
L
X轴参考点提示
N00089M464
R9091.6
Y0000.6
X ,
;
F0120.0
N
O
F120 ZRFx
加工中心PMC实例讲解
N00090
A467
B
N00091C470
D
N00092E473
F
N00093G478
N00094H480
N00095I482
N00096J484
N00097K486
L
M
N
O
加工中心PMC实例讲解
A
N00098B517
C
D
E
F
G
N00099H547
I
J
#7#6#5#4#3#2#1#0
G0010*JV6*JV5*JV4*JV3*JV2*JV1*JV0
K
G0011*JV14*JV13*JV12*JV11*JV10*JV9*JV8
11111111111111110.00%11111111111111100.01%
::
1101100011101111100%
::
0000000000000001655.34%00000000000000000.00%
L
M
N00100N577
25%)(R7.7=150%)
O
ROV1 ROV1 倍率 G014.0 G014.1
0 0 100% 0 1 50% 1 0 25% 1 1 F
加工中心PMC实例讲解
[FANUC 0i
Mate MC+
] Ladder Diagram
16
N00101 A 580
R0007.6
G0014.1 (R7.6=1 25%)(R7.5=1 100%) ROV2
R0007.5 B
N00102 C 583
X000
7.0 KEY_F0
X0007.1 KEY_100
X0007.2 KEY_25
X0007.3 KEY_50
Y0006.0
Y0006.0 D
N00103 E 589
X0007.2 KEY_25
X0007.1 KEY_100
X0007.3 KEY_50
X0007.0 KEY_F0
R0007.6
R0007.6 F
Y0006.3
N00104 G 596
X0007.3 KEY_50
X0007.1 KEY_100
X0007.2 KEY_25
X0007.0 KEY_F0
R0007.7
R0007.7 H
Y0006.1
N00105 I 603
X0007.1 KEY_100
X0007.0 KEY_F0
X0007.3 KEY_50
X0007.2 KEY_25
R0007.5
R0007.5 J
Y0006.2
NCN00106 K 610 F0007.0 MF
PMC M辅助功能选通信号F0001.3 DEN ACT SUB25 DECB 0001
L
#7#6#5#4#3#2#1#0 R0010|DM10|DM09|DM08|DM07|DM06|DM05|DM04|DM03|M
F0010 M CODE
0000000003
N
R0010
O