内容发布更新时间 : 2024/12/22 15:02:47星期一 下面是文章的全部内容请认真阅读。
5.5指令表
Network 1 LD I0.0 AN T38 = M0.0 Network 2 LD M0.0 TON T37, 250 TON T38, 500 TON T39, 10 TON T40, 200 TON T41, 220 TON T42, 260 TON T43, 450 TON T44, 480 Network 3 LD M0.0 AN T37 = Q0.0 Network 4 LD M0.0 A T37 AN T38 = Q0.3 Network 5 LD M0.0 A T39 AN T41 = Q0.7 Network 6 LD M0.0 AN T40 LD M0.0 A T40 A SM0.5 AN T41 OLD
= Q0.5 Network 7 LD M0.0 A T41 AN T37 = Q0.4 Network 8
LD M0.0 A T42 AN T44 = Q0.6 Network 9 LD M0.0 A T37 AN T43 LD M0.0 A T43 AN T44 A SM0.5 OLD
= Q0.2 Network 10 LD M0.0 A T44 AN T38 = Q0.1 Network 11 LD M0.1 AN T60 TON T43, 10 TON T44, 20 TON T45, 30 TON T46, 40 Network 12 LD T46 AN T56 TON T47, 10 TON T48, 20 TON T49, 30 TON T50, 40 TON T51, 50 TON T52, 60 TON T53, 70 TON T54, 80 TON T55, 90 TON T56, 100 Network 13 LD T43 AN T45 LD T46
AN T52 OLD
LD T53 AN T55 OLD
O T56 O I0.1 O I0.2 = Q1.0 Network 14 LD M0.1 AN T50 O T52 O I0.2 O I0.1 = Q1.1 Network 15 LD M0.1 AN T44 LD T46 AN T54 OLD
O T55 O I0.2 O I0.1 = Q1.2 Network 16 LD T43 AN T45 LD T46 AN T49 OLD
LD T50 AN T52 OLD
LD T53 AN T55 OLD
O T56 O I0.2 O I0.1 = Q1.3 Network 17
LD T44 O I0.2 AN T45 O I0.1 LD T46 = Q1.5 AN T47 Network 19 OLD
LD M0.1 LD T48 AN T45 AN T49 LD T47 OLD
AN T49 LD T50 OLD
AN T51 LD T50 OLD
AN T55 LD T54 OLD
AN T55 O I0.2 OLD
O I0.1 O I0.2 = Q1.6 O I0.1 Network 20 = Q1.4 LD M0.1 Network 18 AN T60 LD M0.1 TON T58, 50 AN T43 TON T59, 150 LD T46 TON T60, 250 AN T49 Network 21 OLD
LD M0.1 LD T50 O I0.2 AN T53 O I0.1 OLD
= Q2.1 O T56 Network 22
六、控制系统仿真
6.1交通灯控制系统仿真
(1)南北红灯亮维持25秒,东西绿灯亮维持20秒。
LD T58 O I0.2 O I0.1 = Q2.2 Network 23 LD M0.1 AN T58 O T59 = Q2.4 Network 24 LD M0.1 AN T58 = Q2.6 Network 25 LD T59 O I0.2 O I0.1 = Q2.5 Network 26 LD M0.1 AN T58 O T59 O I0.2 O M0.1 = Q2.0 = Q2.3