RSLogix 5000 Question: COP vs CPS

tomizzo11

Member
Join Date
Jul 2013
Location
Michigan
Posts
49
So I'm trying to do some arithmetic with arrays of DINTs. However, I'm running into a problem.

I’m trying to create a copy of let’s call it ARRAY 1. This copy will then be called ARRAY 2.

10 seconds later I want to compare these arrays to find differences in them. However, it seems like the COP created a new pointer to ARRAY 1. By this I mean that the changes to ARRAY 1 appear to make changes to ARRAY 2 as well. So is Array 2 essentially just referencing ARRAY 1?

Also, RSLogix doesn’t give a good description between the difference between CPS and COP instructions seeing as they share the same exact help page in the documentation. Could anyone give me a little help with this?
 
I believe I found my problem. I had a duplicate CPS instruction that I was using to test earlier and forgot to delete it. I did have an ONS infrot of the CPS instruction though. Thank you
 

Similar Topics

So I have a PID loop on an 1756-L61 running V17 software just for background. Also the PID PV is a pressure transmitter and the CV is speed sent...
Replies
1
Views
898
Hello Please Help, I want to use a FSC instruction that will scan 20 DINT arrays. If the arrays are greater than 1000 display the value. How do I...
Replies
4
Views
1,769
Hey all, I just joined today. Not sure if this question is in the right place or if anyone has asked it before. I am monitoring a machine from...
Replies
2
Views
1,448
Note, I have NO experience with RSLogix products. Never done anything beyond installing the software for others. Please forgive me for my...
Replies
9
Views
4,637
Good day everyone. I would like to ask something regarding PID Instruction. I noticed one of our machine's PID instruction status is showing "PID...
Replies
3
Views
5,607
Back
Top Bottom