手头只有西门子200
//主控,用一个按钮控制启停
LD I0.0
O M0.0
AN M0.1
= M0.0
Network 2
LD M0.0
TON T37, 5
Network 3
LD T37
A I0.0
= M0.1
//控制电机输出
Network 4
LD M0.0
A I0.1
AN M0.2
= Q0.0
//电机不转时自锁5s后 继续转
Network 5
LDN Q0.0
O M0.2
AN T38
= M0.2
Network 6
LDN Q0.0
TON T38, 50