At first informative, then astounding! I learned from this thread that COP doesn't work the same way on MicroLogix as on other AB processors but that there is another instruction CPW that does that job. I also learned that some people are unable or unwilling to accept the straight-forward answer.
I was immediately suspicious of Ron B's solution so did some experimenting. I don't have any appropriate hardware so used softlogix5. Without any further comment, here is what I did and the results I got.
4 unconditional rungs:
COP #B3:0 #F8:0 1
MOV F8:0 L9:0
COP #F8:0 #B3:2 2
COP #F8:0 #L9:1 1
All referenced words cleared and put in run mode
bits 0 & 1 in B3:1 set to '1'
F8:0 displays !NaN!.0
L9:0 displays 0
B3:2 and B3:3 display exact copy of B3:0 and B3:1
L9:1 displays 196608 (words transposed)
I was immediately suspicious of Ron B's solution so did some experimenting. I don't have any appropriate hardware so used softlogix5. Without any further comment, here is what I did and the results I got.
4 unconditional rungs:
COP #B3:0 #F8:0 1
MOV F8:0 L9:0
COP #F8:0 #B3:2 2
COP #F8:0 #L9:1 1
All referenced words cleared and put in run mode
bits 0 & 1 in B3:1 set to '1'
F8:0 displays !NaN!.0
L9:0 displays 0
B3:2 and B3:3 display exact copy of B3:0 and B3:1
L9:1 displays 196608 (words transposed)