LD I0.0
O M0.0
AN C0
= M0.0
LD SM0.0
LD I0.0
EU
CTD C0, 2
LD Q0.0
ED
R C0, 1
LD M0.0
S Q0.0, 1
LD C0
R Q0.0, 1
I0.0为按钮,Q0.0为灯,C0为计数器,M0.0为中间继电器,SM0.0为常闭使能端!我是按西门子的编的,你改下常闭使能端就好了!
有专门的灯控制器啊,才10几元,费那神编什么啊
LDP X0
OR Y0
ANI X5
ANI M0
OUT Y0
LDP X0
OUT C0 K2
LDP C0
OUT M0
RST C0
END
我在淘宝开了个店,希望能给个好评,谢谢!(伶俐PLC设计)
LD X0
ANI M0
LDI X0
AND Y0
ORB
OUT Y0
LDI X0
AND Y0
LD X0
AND M0
ORB
OUT M0