喷泉的模拟控制
一、实验目的
用PLC构成喷泉控制系统
二、实验内容
L5L6L7L8L4L3L2L1L9L10L11L121.控制要求
隔灯闪烁:L1亮0.5秒后灭,接着L2亮0.5秒后灭, 接着L3亮0.5秒后灭,接后灭,接着L6、L10亮0.5秒后灭,接着L7、L11亮0.5秒后灭,接着L8、L12亮0.5秒
着L4亮0.5秒后灭,接着L5、L9亮0.5秒 后灭,L1亮0.5秒后灭,如此循环下去。 图1-1 喷泉控制示意图 2.I/O分配
输入 输出
起动按钮:I0.0 L1:Q0.0 L5、L9: Q0.4 停止按钮:I0.1 L2:Q0.1 L6、L10:Q0.5
L3:Q0.2 L7、L11:Q0.6 L4:Q0.3 L8、L12:Q0.7
3.按图所示的梯形图输入程序。 4.调试并运行程序。
三、喷泉控制语句表
0 1 2 3 4 5 6 7 8 9 10 11 12 13
LD O AN A = LD LD O = LD O A = I0.0 M1.0 T37 I0.1 M1.0 M1.0 T37 M11.0 M10.0 I0.0 M0.1 I0.1 M0.1 14 15 16 17 18 19 20 21 22 23 24 25 26 LD AN TON LD = LD SHRB LD = LD = LD = M0.1 M0.0 T38,+5 T38 M0.0 M0.0 M10.0,M10.1,+8 M10.1 Q0.0 M10.2 Q0.1 M10.3 Q0.2 27 28 29 30 31 32 33 34 35 36 37 38 LD = LD = LD = LD = LD = LDN R M10.4 Q0.3 M10.5 Q0.4 M10.6 Q0.5 M10.7 Q0.6 M11.0 Q0.7 I0.1 M10.1,8 TON T37,+5 四、喷泉控制梯形图
I0.0M1.0M1.0T37M11.0I0.0M0.1M0.1T38M0.0M10.1M10.2M10.3M10.4M10.5M10.6M10.7M11.0I0.1 I0.1M1.0 T37INTON +5PT M10.0 I0.1M0.1 T38M0.0 INTON +5PT M0.0 SHRBENO EN DATAM10.0M10.1S_BIT N+8Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7 M10.1 RT37
8图1-2 喷泉梯形图