Network 1
LD SM0.1
R S0.0, 8
Network 2
LD SM0.0
A I0.2
S S0.0, 1
Network 3
LDN M0.1
= Q0.2
Network 4
LSCR S0.0
Network 5
LD SM0.0
= Q0.4
= Q0.5
TON T37, +1000
Network 6
LD T37
SCRT S0.1
Network 7
LD T37
S M0.1, 1
Network 8
SCRE
Network 9
LSCR S0.1
Network 10
LD I0.0
= Q0.1
Network 11
LD I0.1
SCRT S0.0
Network 12
SCRE
程序执行时,Q0.2一直为0
但如果移动一下位置,输出就正常,Q0.2输出为1如下:
Network 1
LD SM0.1
R S0.0, 8
Network 2
LD SM0.0
A I0.2
S S0.0, 1
Network 3
LSCR S0.0
Network 4
LD SM0.0
= Q0.4
= Q0.5
TON T37, +1000
Network 5
LD T37
SCRT S0.1
Network 6
LD T37
S M0.1, 1
Network 7
SCRE
Network 8
LSCR S0.1
Network 9
LD I0.0
= Q0.1
Network 10
LD I0.1
SCRT S0.0
Network 11
SCRE
Network 12
LDN M0.1
= Q0.2
最佳答案
因为在你的移位后的程序段中,前面有个指令将 M0.1置位了,所以Q0.2 输出为1了。
提问者对于答案的评价:
已解决,谢谢
原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc304313.html