无聊写个顺序启动的程序。用西门子S7-200吧。
启动按钮I0.0,停止按钮I0.1
输出Q0.0开始吧。启动顺序以该程序段排列位置先后,调试比较方便。
TITLE=PROGRAM COMMENTS
Network 1 // 启动
// Network Comment
LD I0.0
S M20.0, 1
Network 2 // 停止
LDN I0.1
R M20.0,1
Network 3 // 启动间隔
LD SM0.0
TON T101, 30
Network 4 // 停止间隔
LD SM0.0
TON T102, 30
Network 5 // #1电机启动
LD M20.0
A T101
AN Q0.0
EU
S Q0.0, 1
R T101, 1
Network 6 // #2电机启动
LD M20.0
A T101
AN Q0.1
EU
S Q0.1, 1
R T101, 1
Network 7 // #3电机启动
LD M20.0
A T101
AN Q0.2
EU
S Q0.2, 1
R T101, 1
Network 8 // #4电机启动
LD M20.0
A T101
AN Q0.3
EU
S Q0.3, 1
R T101, 1
Network 9 // #4电机停止
LDN M20.0
A Q0.3
A T102
EU
R Q0.3, 1
R T102, 1
Network 10 // #3电机停止
LDN M20.0
A Q0.2
A T102
EU
R Q0.2, 1
R T102, 1
Network 11 // #2电机停止
LDN M20.0
A Q0.1
A T102
EU
R Q0.1, 1
R T102, 1
Network 12 // #1电机停止
LDN M20.0
A Q0.0
A T102
EU
R Q0.0, 1
R T102, 1
最后修改:2019/2/19 10:44:36