三菱plc(编流水灯)求大神给编个程序

2024-12-12 20:12:24
推荐回答(2个)
回答1:

这个其实很简单

减的那步自己写,这要都不会还做什么自动化

回答2:

LD X1
OR Y0
OR T5
ANI X2
ANI T0
OUT Y0
OUT T0
K10
LD T0
OR Y1
ANI X2
ANI T2
OUT Y2
OUT T1
K10
LD T1
OR Y2
ANI X2
ANI T2
OUT Y2
OUT T2
K10
LD T2
OR Y3
ANI X2
ANI T3
OUT Y3
OUT T3
K10
LD T3
OR Y4
ANI X2
ANI T4
OUT Y4
OUT T4
K10
LD T4
OR Y5
ANI X2
ANI T5
OUT Y5
OUT T5
K10
注明,X1启动、 X2停止、Y0到Y5为灯、T0到T5为时间软元件K设为1秒、OUT是输出的含义。此程序是多步骤的写法,但好理解。