www zlcool com 1 LD O ON I

  • Slides: 51
Download presentation

www. zlcool. com 可编程控制器原理及应用 网络 1 LD O ON = I 0. 0 I

www. zlcool. com 可编程控制器原理及应用 网络 1 LD O ON = I 0. 0 I 0. 1 M 0. 0 Q 0. 0 网络 2 LDN A O AN O = Q 0. 0 0. 2 M 0. 1 I 0. 3 M 0. 2 M 0. 1 BUCT

www. zlcool. com 可编程控制器原理及应用 LD I 0. 0 LD I 0. 1 LD I

www. zlcool. com 可编程控制器原理及应用 LD I 0. 0 LD I 0. 1 LD I 0. 3 CTUD C 50, +4 LD C 50 = Q 0. 0 BUCT

www. zlcool. com 可编程控制器原理及应用 图 5. 4 LPS,LRD,LPP指令的操作过程 逻辑推入栈 前 iv 0 iv 1

www. zlcool. com 可编程控制器原理及应用 图 5. 4 LPS,LRD,LPP指令的操作过程 逻辑推入栈 前 iv 0 iv 1 iv 2 iv 3 iv 4 iv 5 iv 6 iv 7 iv 8 后 iv 0 iv 1 iv 2 iv 3 iv 4 iv 5 iv 6 iv 7 逻辑读栈 前 iv 0 iv 1 iv 2 iv 3 iv 4 iv 5 iv 6 iv 7 iv 8 逻辑弹出栈 后 iv 1 iv 2 iv 3 iv 4 iv 5 iv 6 iv 7 iv 8 前 iv 0 iv 1 iv 2 iv 3 iv 4 iv 5 iv 6 iv 7 iv 8 后 iv 1 iv 2 iv 3 iv 4 iv 5 iv 6 iv 7 iv 8 X BUCT

可编程控制器原理及应用 I 0. 0 I 0. 1 I 0. 2 Q 0. 0 Q

可编程控制器原理及应用 I 0. 0 I 0. 1 I 0. 2 Q 0. 0 Q 0. 1 I 0. 3 I 0. 4 I 0. 5 Q 0. 2 Q 0. 3 使用LPP指令 I 0. 6 I 0. 7 Q 0. 4 I 1. 0 Q 0. 5 I 1. 1 Q 0. 6 I 1. 2 Q 0. 7 例1:一层堆栈 指令表 1 LD I 0. 0 2 A I 0. 1 3 LPS 4 A I 0. 2 5 = Q 0. 0 6 LPP 7 = 出栈 Q 0. 1 BUCT

可编程控制器原理及应用 I 0. 0 I 0. 1 I 0. 2 例1:一层堆栈 Q 0. 0

可编程控制器原理及应用 I 0. 0 I 0. 1 I 0. 2 例1:一层堆栈 Q 0. 0 指令表 Q 0. 1 LPS I 0. 3 I 0. 4 Q 0. 2 I 0. 5 Q 0. 3 I 0. 6 I 0. 7 Q 0. 4 LPP I 1. 0 Q 0. 5 I 1. 1 Q 0. 6 I 1. 2 Q 0. 7 1 LD I 0. 0 2 A I 0. 1 3 LPS 4 A I 0. 2 5 = Q 0. 0 6 LPP 7 = Q 0. 1 8 LD I 0. 3 9 LPS 10 A 13 A I 0. 5 14 = Q 0. 3 I 0. 4 11 = Q 0. 2 12 LPP BUCT

可编程控制器原理及应用 I 0. 0 I 0. 1 I 0. 2 例1:一层堆栈 Q 0. 0

可编程控制器原理及应用 I 0. 0 I 0. 1 I 0. 2 例1:一层堆栈 Q 0. 0 指令表 Q 0. 1 I 0. 3 I 0. 4 I 0. 5 LPS I 0. 6 I 0. 7 Q 0. 2 Q 0. 3 Q 0. 4 I 1. 0 Q 0. 5 I 1. 1 Q 0. 6 I 1. 2 Q 0. 7 13 A I 0. 5 Q 0. 3 1 LD I 0. 0 14 = 2 A I 0. 1 15 LD 3 LPS 16 LPS 4 A I 0. 2 17 A I 0. 7 5 = Q 0. 0 18 = Q 0. 4 6 LPP 7 = Q 0. 1 8 LD I 0. 3 9 LPS 10 A I 0. 4 11 = 12 LPP Q 0. 2 I 0. 6 BUCT

可编程控制器原理及应用 例1:一层堆栈 I 0. 0 I 0. 1 I 0. 2 Q 0. 0

可编程控制器原理及应用 例1:一层堆栈 I 0. 0 I 0. 1 I 0. 2 Q 0. 0 Q 0. 1 I 0. 3 I 0. 4 I 0. 5 LPS I 0. 6 I 0. 7 I 1. 0 I 1. 1 I 1. 2 LPP Q 0. 2 Q 0. 3 Q 0. 4 LRD Q 0. 5 Q 0. 6 LRD Q 0. 7 指令表 13 A I 0. 5 Q 0. 3 1 LD I 0. 0 14 = 2 A I 0. 1 15 LD 3 LPS 16 LPS 4 A I 0. 2 17 A I 0. 7 5 = Q 0. 0 18 = Q 0. 4 6 LPP 7 = Q 0. 1 8 LD I 0. 3 9 LPS 10 A I 0. 4 11 = 12 LPP Q 0. 2 I 0. 6 19 LRD 读栈 20 A I 1. 0 21 = Q 0. 5 22 LRD 读栈 23 A Q 1. 1 24 = Q 0. 6 25 LPP 26 A I 1. 2 27 = Q 0. 7 BUCT

可编程控制器原理及应用 例2:一层堆栈(并用ALD、OLD指令) ALDI 0. 0 I 0. 1 Q 0. 0 I 0. 2

可编程控制器原理及应用 例2:一层堆栈(并用ALD、OLD指令) ALDI 0. 0 I 0. 1 Q 0. 0 I 0. 2 LPS 指令表 I 0. 3 I 0. 4 Q 0. 1 I 0. 5 I 0. 6 电路块 I 0. 7 1 LD I 0. 0 2 LPS 3 LD I 0. 1 4 O I 0. 2 5 ALD 6 = Q 0. 0 Q 0. 2 I 1. 0 Q 0. 3 I 1. 1 BUCT

可编程控制器原理及应用 例2:一层堆栈(并用ALD、OLD指令) I 0. 0 LRD I 0. 1 指令表 Q 0. 0 I

可编程控制器原理及应用 例2:一层堆栈(并用ALD、OLD指令) I 0. 0 LRD I 0. 1 指令表 Q 0. 0 I 0. 2 I 0. 3 I 0. 4 Q 0. 1 I 0. 5 I 0. 6 I 0. 7 1 LD I 0. 0 2 LPS 3 LD I 0. 1 4 O I 0. 2 5 ALD 6 = Q 0. 0 Q 0. 2 I 1. 0 Q 0. 3 I 1. 1 BUCT

可编程控制器原理及应用 例2:一层堆栈(并用ALD、OLD指令) I 0. 0 LRD I 0. 1 Q 0. 0 I 0.

可编程控制器原理及应用 例2:一层堆栈(并用ALD、OLD指令) I 0. 0 LRD I 0. 1 Q 0. 0 I 0. 2 I 0. 3 I 0. 4 Q 0. 1 I 0. 5 I 0. 6 I 0. 7 为并联 电路块 指令表 Q 0. 2 I 1. 0 OLD I 1. 1 Q 0. 3 1 LD 2 LPS 3 LD I 0. 1 4 O I 0. 2 5 ALD 6 = 7 LRD 8 LD I 0. 3 9 A I 0. 4 10 LD I 0. 0 Q 0. 0 I 0. 5 11 A I 0. 6 12 OLD BUCT

可编程控制器原理及应用 例2:一层堆栈(并用ALD、OLD指令) I 0. 0 I 0. 1 Q 0. 0 I 0. 2

可编程控制器原理及应用 例2:一层堆栈(并用ALD、OLD指令) I 0. 0 I 0. 1 Q 0. 0 I 0. 2 I 0. 3 I 0. 4 ALD I 0. 5 I 0. 6 I 0. 7 并联电 路块 Q 0. 1 Q 0. 2 I 1. 0 I 1. 1 Q 0. 3 指令表 1 LD 2 LPS 3 LD I 0. 1 4 A I 0. 2 5 ALD 6 = 7 LRD 8 LD I 0. 3 9 A I 0. 4 10 LD I 0. 0 Q 0. 0 I 0. 5 11 A I 0. 6 12 OLD BUCT

可编程控制器原理及应用 例2:一层堆栈(并用ALD、OLD指令) I 0. 0 I 0. 1 I 0. 2 I 0. 3

可编程控制器原理及应用 例2:一层堆栈(并用ALD、OLD指令) I 0. 0 I 0. 1 I 0. 2 I 0. 3 I 0. 4 ALD Q 0. 1 I 0. 5 I 0. 6 I 0. 7 并联电 路块 指令表 Q 0. 0 Q 0. 2 I 1. 0 I 1. 1 Q 0. 3 1 LD 2 LPS 3 LD I 0. 1 4 A I 0. 2 5 ALD 6 = 7 LRD 8 LD I 0. 3 9 A Q 0. 4 10 LD I 0. 0 13 ALD 14 = Q 0. 1 Q 0. 0 Q 0. 5 11 A Q 0. 6 12 OLD BUCT

可编程控制器原理及应用 例2:一层堆栈(并用ALD、OLD指令) I 0. 0 I 0. 1 Q 0. 0 I 0. 2

可编程控制器原理及应用 例2:一层堆栈(并用ALD、OLD指令) I 0. 0 I 0. 1 Q 0. 0 I 0. 2 I 0. 3 I 0. 4 并联电 I 0. 5 I 0. 6 路块 ALD I 0. 7 I 1. 0 LPP I 1. 1 Q 0. 2 Q 0. 3 指令表 1 LD 2 LPS 3 LD I 0. 1 15 LPP 4 O I 0. 2 16 A I 0. 7 5 ALD 17 = Q 0. 2 6 = 18 LD I 1. 0 7 LRD 19 O I 1. 1 8 LD I 0. 3 20 ALD 9 A I 0. 4 21 = I 0. 5 22 MEND 10 LD I 0. 0 13 ALD 14 = Q 0. 0 Q 0. 1 连 续 输 出 形 式 Q 0. 3 11 A I 0. 6 12 OLD BUCT

可编程控制器原理及应用 例3:二层堆栈 LPS I 0. 1 I 0. 2 I 0. 3 Q 0.

可编程控制器原理及应用 例3:二层堆栈 LPS I 0. 1 I 0. 2 I 0. 3 Q 0. 0 M 1. 0 Q 0. 1 LPS Q 0. 2 M 1. 1 M 1. 2 LPP I 0. 4 LPP Q 0. 3 指令表 1 LD I 0. 1 2 LPS 3 A 4 LPS 5 A I 0. 3 6 = Q 0. 0 7 LPP 8 AN M 1. 0 9 = Q 0. 1 I 0. 2 13 A M 1. 2 14 = Q 0. 2 第二层出栈 15 LPP 16 A I 0. 4 17 = Q 0. 3 18 MEND 第一层出栈 10 LPP 11 A 第二层入栈 12 LPS M 1. 1 BUCT

可编程控制器原理及应用 例3:二层堆栈 I 0. 1 I 0. 2 I 0. 3 M 1. 0

可编程控制器原理及应用 例3:二层堆栈 I 0. 1 I 0. 2 I 0. 3 M 1. 0 M 1. 1 M 1. 2 I 0. 4 Q 0. 0 Q 0. 1 Q 0. 2 Q 0. 3 指令表 1 LD I 0. 1 2 LPS 3 A 4 LPS 5 A I 0. 3 6 = Q 0. 0 7 LPP 8 AN M 1. 0 9 = Q 0. 1 I 0. 2 12 LPS 13 A M 1. 2 14 = Q 0. 2 15 LPP 16 A I 0. 4 17 = Q 0. 3 18 MEND 10 LPP 11 A M 1. 1 BUCT

可编程控制器原理及应用 例4:四层堆栈 LPS I 0. 0 I 0. 1 I 0. 2 I 0.

可编程控制器原理及应用 例4:四层堆栈 LPS I 0. 0 I 0. 1 I 0. 2 I 0. 3 I 0. 4 Q 0. 0 LPS M 1. 0 Q 0. 1 LPS M 1. 1 Q 0. 2 M 1. 2 Q 0. 3 M 1. 3 Q 0. 4 指令表 1 LD I 0. 0 2 LPS 3 A 4 LPS 5 A 6 LPS 7 A 8 LPS 9 A I 0. 4 10 = Q 0. 0 I 0. 1 I 0. 2 I 0. 3 BUCT

可编程控制器原理及应用 例4:四层堆栈 I 0. 0 I 0. 1 I 0. 2 I 0. 3

可编程控制器原理及应用 例4:四层堆栈 I 0. 0 I 0. 1 I 0. 2 I 0. 3 I 0. 4 LPP M 1. 0 M 1. 1 LPP M 1. 2 M 1. 3 LPP Q 0. 0 Q 0. 1 Q 0. 2 Q 0. 3 Q 0. 4 1 指令表 11 LPP LD 12 AN M 1. 0 13 = 14 LPP Q 0. 1 15 A M 1. 1 16 = 17 LPP Q 0. 2 18 A M 1. 2 19 = Q 0. 3 2 LPS 3 A 4 LPS 5 A 6 LPS 7 A 8 LPS 9 A 10 = I 0. 0 I 0. 1 I 0. 2 I 0. 3 20 LPP I 0. 4 21 A M 1. 3 Q 0. 0 22 = Q 0. 4 BUCT

可编程控制器原理及应用 例4:四层堆栈 11 LPP 指令表 I 0. 0 I 0. 1 I 0. 2

可编程控制器原理及应用 例4:四层堆栈 11 LPP 指令表 I 0. 0 I 0. 1 I 0. 2 I 0. 3 I 0. 4 Q 0. 0 M 1. 0 Q 0. 1 M 1. 2 M 1. 3 Q 0. 2 Q 0. 3 Q 0. 4 1 LD 2 LPS 3 A 4 LPS 5 A 6 LPS 7 A 8 LPS 9 A 10 = 12 AN M 1. 0 13 = 14 LPP Q 0. 1 I 0. 1 15 A M 1. 1 Q 0. 2 I 0. 2 16 = 17 LPP 18 A M 1. 2 19 = Q 0. 3 I 0. 0 I 0. 3 20 LPP I 0. 4 21 A M 1. 3 Q 0. 0 22 = Q 0. 4 BUCT

可编程控制器原理及应用 例5:练习 接线图 SB 1 SB 2 KM 1 SB 3 KM 2 SB

可编程控制器原理及应用 例5:练习 接线图 SB 1 SB 2 KM 1 SB 3 KM 2 SB 4 SB 1 SB 2 SB 3 SB 4 KM 3 M KM 1 I 0. 0 I 0. 1 I 0. 2 I 0. 3 PLC KM 2 L 1 Q 0. 0 Q 0. 1 Q 0. 2 FU KM 1 KM 2 KM 3 ~ 220 V KM 1 KM 2 KM 3 BUCT

可编程控制器原理及应用 例5:练习 LPS SB 1 LPS LRD LPP I 0. 0 梯形图 I 0.

可编程控制器原理及应用 例5:练习 LPS SB 1 LPS LRD LPP I 0. 0 梯形图 I 0. 1 Q 0. 0 SB 2 KM 1 SB 3 KM 2 SB 4 I 0. 2 Q 0. 0 Q 0. 1 KM 3 Q 0. 1 KM 2 LRD I 0. 3 Q 0. 1 Q 0. 2 KM 1 KM 2 KM 3 LPP BUCT

可编程控制器原理及应用 例5:练习 梯形图 LPS I 0. 0 梯形图 I 0. 1 1 LD Q

可编程控制器原理及应用 例5:练习 梯形图 LPS I 0. 0 梯形图 I 0. 1 1 LD Q 0. 0 I 0. 2 Q 0. 0 Q 0. 1 I 0. 3 Q 0. 1 Q 0. 2 LPP 12 = Q 0. 1 13 LPP 2 LPS 3 LD I 0. 1 14 LD I 0. 2 4 O Q 0. 0 15 O Q 0. 2 16 ALD 5 ALD 6 = LRD I 0. 0 Q 0. 0 7 LRD 8 LD I 0. 2 9 O Q 0. 1 17 A Q 0. 1 18 = Q 0. 2 19 MEND 10 ALD 11 A Q 0. 0 BUCT

网络 1 电动机Y-△启动控制程序 I 0. 0 I 0. 1 M 0. 0 I 0.

网络 1 电动机Y-△启动控制程序 I 0. 0 I 0. 1 M 0. 0 I 0. 2 ( ) M 0. 0 网络 2 M 0. 0 LD O AN A = 电动机Y-△启动控制程 序 I 0. 0 M 0. 0 I 0. 1 I 0. 2 M 0. 0 网络 2 T 40 Q 0. 2 LD Q 0. 3 ( ( Q 0. 2 LPS Q 0. 1 ) Q 0. 1 T 40 Q 0. 3 60 Q 0. 2 Q 0. 3 ( IN TON PT 100 ms ) ) AN AN = LRD LD O ALD = LPP LPS AN TON LPP AN = M 0. 0 T 40 Q 0. 3 Q 0. 2 Q 0. 1 Q 0. 3 T 40, 60 Q 0. 2 Q 0. 3

BUCT

BUCT