TITLE=程序注释 说明:尝试200的顺序控制,一,QB0全亮3秒,二,1,3,5亮3秒 。三, 2,4,6亮3秒 。四,QB0全灭3秒,回到第一步。
但是现在遇到的问题是第一步只有Q0.0 和Q0.7亮 。其他的不亮,监控程序的确Q0.1到Q0.6是亮的,但监控状态表显示的是0 。试了几种方法还是这样。
不懂了,请大虾们指点一下。
程序在下面,个人感觉没有大问题。
Network 1 // 网络标题
// 网络注释
LD SM0.1
R S0.0, 8
Network 2
LD I0.1
S S0.1, 1
Network 3
LSCR S0.1
Network 4
LD SM0.0
= Q0.0
Network 5
LD Q0.0
= Q0.1
Network 6
LD Q0.0
= Q0.2
Network 7
LD Q0.0
= Q0.4
Network 8
LD Q0.0
= Q0.3
Network 9
LD Q0.0
= Q0.5
Network 10
LD Q0.0
= Q0.6
Network 11
LD Q0.0
= Q0.7
Network 12
LD SM0.0
TON T33, 300
Network 13
LD T33
SCRT S0.2
Network 14
SCRE
Network 15
LSCR S0.2
Network 16 //
LD SM0.0
= Q0.1
= Q0.3
= Q0.5
TON T34, 300
Network 17
LD T34
SCRT S0.3
Network 18
SCRE
Network 19
LSCR S0.3
Network 20
LD SM0.0
= Q0.2
= Q0.4
= Q0.6
TON T35, 300
Network 21
LD T35
SCRT S0.4
Network 22
SCRE
Network 23
LSCR S0.4
Network 24
LD SM0.0
R Q0.0, 8
TON T36, 300
Network 25
LD T36
SCRT S0.1
Network 26
SCRE
最佳答案
Q0.0,Q0.7亮是因为Q点没有重叠,而其他的Q点都有重叠现象,即双线圈输出。可以交叉引用查看重叠地址。
修改程序如下:
TITLE=程序注释
Network 1 // 网络标题
// 网络注释
LD SM0.1
R S0.0, 8
Network 2
LD I0.1
S S0.1, 1
Network 3
LSCR S0.1
Network 4
LD SM0.0
= M0.0
Network 5
LD M0.0
= M0.1
Network 6
LD M0.0
= M0.2
Network 7
LD M0.0
= M0.3
Network 8
LD M0.0
= M0.4
Network 9
LD M0.0
= M0.5
Network 10
LD M0.0
= M0.6
Network 11
LD M0.0
= M0.7
Network 12
LD SM0.0
TON T33, 300
Network 13
SCRE
SCRT S0.2
Network 14
SCRE
Network 15
LSCR S0.2
Network 16 //
LD SM0.0
= M1.1
= M1.3
= M1.5
TON T34, 300
Network 17
LD T34
SCRT S0.3
Network 18
SCRE
Network 19
LSCR S0.3
Network 20
LD SM0.0
= M1.2
= M1.4
= M1.6
TON T35, 300
Network 21
LD T35
SCRT S0.4
Network 22
SCRE
Network 23
LSCR S0.4
Network 24
LD SM0.0
R M0.0, 8
TON T36, 300
Network 25
LD T36
SCRT S0.1
Network 26
SCRE
Network 27
LD SM0.0
LPS
A M0.0
= Q0.0
LRD
LD M0.1
O M1.1
ALD
= Q0.1
LRD
LD M0.2
O M1.2
ALD
= Q0.2
LRD
LD M0.3
O M1.3
ALD
= Q0.3
LRD
LD M0.4
O M1.4
ALD
= Q0.4
LRD
LD M0.5
O M1.5
ALD
= Q0.5
LRD
LD M0.6
O M1.6
ALD
= Q0.6
LPP
A M0.7
= Q0.7
提问者对于答案的评价:
非常感谢,明天上机试试
原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc253653.html