步序 |
指 令 |
步序 |
指 令 |
0 |
LD T37 |
13 |
LD T39 |
1 |
TON T38, +5 产生1S脉冲 |
14 |
A T38 |
2 |
LD T38 |
15 |
LD I0.3 水池低水位 |
3 |
TON T37, +5 延时0.5S |
16 |
AN T39 |
4 |
LD I0.3 |
17 |
OLD |
5 |
AN I0.2 |
18 |
O T40 |
6 |
TON T39, +40 延时4S |
19 |
AN I0.2 水池上水位 |
7 |
LD T39 |
20 |
= Q0.1 电磁阀Y |
8 |
AN I0.3 |
21 |
LD I0.1 水塔低水位 |
9 |
TON T40, +1 延时0.1S |
22 |
O Q0.0 |
10 |
LD T39 |
23 |
AN I0.0 水塔上水位 |
11 |
AN I0.3 |
24 |
AN I0.3 |
12 |
TON T40, +1 |
25 |
= Q0.0 电机M |