发表于:2008/4/10 19:07:00
#0楼
请教大家,PLC类型为FX2N,程序如下
LDP M3000
Set m10
out y0
ld x1
out m3000
ldp m3000
set m11
out y1
ldp m3000
set m12
out y2
ld m3000
out y3
ld m10
out y4
ld m11
out y5
ld m12
out y6
ld x2
rst m3000
rst m10
rst m11
rst m12
end
当X1由off-on-off时,为什么Y2,Y6不会动作(既然Y1能闪烁一次,为什么Y2就不会呢) ?
LDP M3000
Set m10
out y0
ld x1
out m3000
ldp m3000
set m11
out y1
ldp m3000
set m12
out y2
ld m3000
out y3
ld m10
out y4
ld m11
out y5
ld m12
out y6
ld x2
rst m3000
rst m10
rst m11
rst m12
end
当X1由off-on-off时,为什么Y2,Y6不会动作(既然Y1能闪烁一次,为什么Y2就不会呢) ?