一、实验目的
用PLC构成数码显示控制系统
二、实验内容
A1.控制要求
A→B→C→D→E→F→G→H→ABCDEF→BC→ABDEGFB→ABCDG→BCFG→ACDFG→ACDEFG→ABC→ABCDEFG→ABCDFG→A→B→C ……循环下去
G2.I/O分配 输入 输出
起动按钮:I0.0 A:Q0.0 E:Q0.4 停止按钮:I0.1 B:Q0.1 F:Q0.5 ECC:Q0.2 G:Q0.6 DD:Q0.3 H:Q0.7 H3.按图所示的梯形图输入程序。 4.调试并运行程序。 图2-1 数码显示控制示意图
三、数码显示控制语句表
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 LD O A = LD AN TON LD = LD TON AN = LD O = LD TON AN = LD SHRB I0.0 M0.1 I0.1 M0.1 M0.1 M0.0 T37,+20 T37 M0.0 M0.1 T38,+30 T38 M1.0 M1.0 M0.2 M10.0 M12.2 T39,+20 T39 M0.2 M0.0 M10.0,31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 O = LD O O O O O O O O = LD O O O O O O O O O M12.2 Q0.0 M10.2 M11.1 M11.2 M11.3 M11.4 M11.5 M12.0 M12.1 M12.2 Q0.1 M10.3 M11.1 M11.2 M11.4 M11.5 M11.6 M11.7 M12.0 M12.1 M12.2 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 = LD O O O O = LD O O O O O O = LD O O O O O O Q0.3 M10.5 M11.1 M11.3 M11.7 M12.1 Q0.4 M10.6 M11.1 M11.5 M11.6 M11.7 M12.1 M12.2 Q0.5 M10.7 M11.3 M11.4 M11.5 M11.6 M11.7 M12.1 M10.1,+18 53 23 24 25 26 27 28 29 30
LD O O O O O O O M10.1 M11.1 M11.3 M11.4 M11.6 M11.7 M12.0 M12.1 54 55 56 57 58 59 60 61 = LD O O O O O O O Q0.2 M10.4 M11.1 M11.3 M11.4 M11.6 M11.7 M12.1 M12.2 84 85 86 87 88 89 O = LD = R M12.2 Q0.6 M11.0 Q0.7 M10.1,18 LDN I0.1 四、数码显示控制梯形图
M10.5M11.1M11.3M11.7M12.1M10.6M11.1M11.5M11.6M11.7M12.1M12.2Q0.4 M10.7M11.3M11.4M11.5M11.6Q0.6 M11.7Q0.5 M12.1 M12.2 M11.0 I0.1 图2-2 (续)Q0.7M10.1R18 I0.0M0.1M0.1M0.0IN +20PTT37I0.1M0.1M10.2Q0.1 T38IN +30PTTONTONM11.1M11.2M11.3M11.4M11.5T37M0.1M0.0 M12.0M12.1M12.2M10.3M11.1T38M1.0M0.2M12.2IN+20PTM1.0M10.0Q0.2T39TON M11.2M11.4M11.5T39M0.0ENM10.0M10.1 +18M10.1M11.1M11.3M11.4M11.6M0.2SHRBENOM11.6M11.7M12.0M12.1M12.2M10.4M11.1M11.3DATAS_BITNQ0.0Q0.3M11.7M12.0M12.1M11.4M11.6M12.2M11.7M12.1M12.2 图2-2 数码显示控制梯形图
因篇幅问题不能全部显示,请点此查看更多更全内容