S7-200程序:
ORGANIZATION_BLOCK MAIN:OB1
TITLE=程序注释
BEGIN
Network 1 LD I0.0
O Q0.0
AN I0.1
= Q0.0
Network 2
LD I0.2
O Q0.1
AN I0.3
A Q0.0
= Q0.1
Network 3
LD I0.4
O Q0.2
AN I0.5
A Q0.1
= Q0.2
Network 4
LD I0.6
O Q0.3
AN I0.7
A Q0.2
= Q0.3
END_ORGANIZATION_BLOCK
我写的是每台电机单独有启动与停止的控制键,只是优先级不同而已
ld x0
or y0
ani x1
out y0
ld x2
or y1
ani x3
and y0
out y1
ld x4
or y2
ani x5
and y1
out y2
ld x6
or y3
ani x7
and y2
out y3
end