智能交通灯设计
图3-14 梯形图
图3-15 梯形图
图3-16 梯形图
- 22 -
智能交通灯设计
图3-17 梯形图
图3-18 梯形图
图3-19 梯形图
- 23 -
智能交通灯设计
图3-20 梯形图
运行程序语句表: 0 LD X000 1 OR M100 2 ANI X005 3 OUT M100 4 LD M100 5 ANI T1
6 OUT T0 K300 9 LD T0
10 OUT T1 K300 13 LD M100 14 ANI T0
15 OUT T2 K250 18 LD T2
19 OUT T3 K30 22 LD T3 23 OUT T4 K20 26 LD T0
27 OUT T5 K250 30 LD T5
- 24 -
智能交通灯设计
31 OUT T6 K30 34 LD T6
35 OUT T7 K30 38 LD M100 39 ANI T5 40 OUT Y001 41 LD M100 42 ANI T1 43 OUT Y001 44 LD T1 45 CALL P10 48 LD T1
49 CMP D5 D6 M10 56 MPS
57 LD M10 58 OR M11 59 ANB
60 OUT M1 61 MPP
62 AND M12 63 OUT M2 64 LD M1 65 OR Y001 66 ANI T5 67 OUT Y001 68 LD M1 69 OR Y006 70 ANI T1 71 OUT Y006
- 25 -
智能交通灯设计
72 LD T5 73 CALL P10 76 LD T5
77 CMP D5 D6 M20 84 MPS
85 LD M20 86 OR M21 87 ANB
88 OUT M3 89 MPP
90 AND M22 91 OUT M4 92 LD M3 93 ORI Y001 94 ANI T5 95 OUT Y001 96 LD M3 97 OR Y006 98 ANI T1 99 OUT Y006 100 LD T5 101 ANI T3 102 AND T10 103 OUT Y001 104 LD T3 105 ANI T4 106 OUT Y002 107 LD T4 108 OR Y003
- 26 -