LD X1
OR M100
ANI X2
OUT M100
LD M100
MPS
ANI X7
OUT Y1
MPP
ANI X10
OUT Y0
LD X4
OR X5
OUT Y11 ;报警显示
LD Y0
AND Y1
OUT Y13 ;正常过滤显示
上面一段程序只是对液位进行相应阀门启闭控制。
6.4.2 滤池反冲洗控制程序设计
反冲洗启动条件有三个:人机界面进行反冲洗,属于强制反冲洗;定时反冲洗;按水头损失情况进行反冲洗。
使用停电保持型PLC元件进行编程来表示反冲洗的启动条件。程序如下:
LD M100
ANI Y12
ANI T250
ANI C100
OUT T250 K1000
LD T250
RST T250
OUT C100 K864
LD C100
OUT M101
LD M100
ANI C101
ANI T251
OUT T251 K1000
LD T251
OUT C101 K540
RST T251
LD C101
OUT M102
LD X3
OR M101
OR Y12
AND M102
LD X6
AND M102
ORB
ANI X12
OUT Y12
接下来是反冲洗过程的控制。
LD Y12
ANI X11
OR X12
OUT Y1
LDI Y12
AND T105
OUT Y0
LD X11
MPS
ANI T105
OUT Y2
MPP
ANI T100
OUT T100
K360
LD T100
OUT C0
K10
LD X11
MPS
ANI T102
OUT Y6
MRD
ANI T101
OUT Y5
MPP
ANI C0
OUT Y3
LD C0
OUT T101
K100
LD T101
OUT T102
K50
LD T102
OUT M103
LD M103
MPS
ANI C1
OUT Y4
MRD
ANI T104
OUT Y7
MPP
ANI T105
OUT Y10
LD M103
ANI T103
OUT T103
K360
LD T103
OUT C1
K10
LD C1
OUT T104
K100
LD T104
OUT T105
K50
LDP X12
RST C0
RST C1
RST C100
RST C101