RSLOGIX5000 COP command not executing

Dr.8owers

Member
Join Date
Jul 2019
Location
DEGRAFF
Posts
1
hi,
I have a machine with 2 QR code readers, reading simultaneously, and i am decoding the ascii data from them into DINT for simple label to label matching, all of cam 1's data is being read copied and decoded perfectly, but the logic for cam2 is not acting right. i have boiled the problem down to COP function not executing. it is alone on the rung, i'm copying a string128 to a string128... any help would be greatly appreciated
 
just a "first try" GUESS ...

you've placed the "problem" rung in a separate/new routine/ladder - and you haven't "called" the new routine with something like a JSR ...

so ... the new routine isn't being "executed" ...

this is a VERY common problem ...

if that doesn't help, consider posting a screen shot of your code and we'll see if we can come up with other suggestions ...

and welcome to the forum ...
 
Missing JSR could be a cause,

second cause could be the destination is cleared by some other instruction
 
Could the effect you are seeing be caused if the QR reader Input data was updated in between 32-bit chunks of the COP instruction array ?

Even though the COP instruction is executed completely before the next rung is executed, an I/O update can interrupt the COP instruction's internal array processing.

The quick and dirty solution is to substitute a Copy Synchronous (CPS) instruction for the Copy (COP) instruction, because that locks the source and destination arrays until the whole array is completely copied.

The probability that a basic instruction like COP is "not executing correctly" is zero. The program may not be functioning as you intend, but the instruction is.
 

Similar Topics

Hey fellas, My question is about best practice for COP ladder instruction in RSL5k when aliases are involved. I'm dealing with some...
Replies
4
Views
3,830
I think this may be posted on here twice. My mistake, I'm still learning. Attached are two rungs of logic that were written in RSLogix 500. After...
Replies
4
Views
2,441
Hi! So my problem is a little funky, I had Studio 5000 v 24 and 30 installed, but forgot to install RSLogix (which I cannot go without). Is there...
Replies
2
Views
112
So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
427
Hello everyone, I have an RSLogix5000 project which is running live in the factory but I need to make some changes to the logic. I want to test...
Replies
0
Views
1,120
Back
Top Bottom