X0----------------接停止按钮的常闭接点 X1----------------接起动按钮的常开接点
Y0----------------第一仓提升阀 Y1----------------第一仓脉冲阀
Y2----------------第二仓提升阀 Y3----------------第二仓脉冲阀
Y4----------------第三仓提升阀 Y5----------------第三仓脉冲阀
Y6----------------第四仓提升阀 Y7----------------第四仓脉冲阀
Y10--------------第五仓提升阀 Y11---------------第五仓脉冲阀
LD M8002
ORI X0
ZRST S3 S30
SET S3
STL S3
LD X0
AND X1
SET S20
STL S20 STL S22 STL S24
OUT Y0 OUT Y2 OUT Y4
OUT T1 K107 OUT T1 K107 OUT T1 K107
OUT T2 K60 OUT T2 K60 OUT T2 K60
LD T2 LD T2 LD T2
OUT T3 K7 OUT T3 K7 OUT T3 K7
ANI T3 ANI T3 ANI T3
OUT Y1 OUT Y3 OUT Y5
LD T1 LD T1 LD T1
SET S21 SET S23 SET S25
STL S21 STL S23 STL S25
OUT T4 K1200 OUT T4 K1200 OUT T4 K1200
LD T4 LD T4 LD T4
SET S22 SET S24 SET S26
STL S26 STL S28
OUT Y6 OUT Y10
OUT T1 K107 OUT T1 K107
OUT T2 K60 OUT T2 K60
LD T2 LD T2
OUT T3 K7 OUT T3 K7
ANI T3 ANI T3
OUT Y7 OUT Y11
LD T1 LD T1
SET S27 SET S29
STL S27 STL S29
OUT T4 K1200 OUT T4 K1200
LD T4 LD T4
SET S28 OUT S20
RET
END
以上的程序供参考