COP instruction in RSL500

Bullzi

Lifetime Supporting Member
Join Date
Jun 2012
Location
Colorado
Posts
1,530
Hi Everyone,
PLC: ML1400 Testing on a SLC 5/04

I am working on a Project were I need to save 28 days worth of float data. So I set up F9 with 28 floats. When the day changes I want to move F9:1 to 26 down one slot. So F9:1 would move to F9:2 and so on all the way to F9:27. The number that was in F9:27 would go away.

I set up a COP instruction with the Source of F9:0 and Destination of F9:1 length of 27. When I trigger the instruction, I get F9:0 coping to F9:1 but then it fills the file with the value of F9:1.

So how can I move everything down one so I can insert the new value at the top. I have done this before in a Logix Controller using a CPS Instruction, But this seems to be kicking my butt in 500.

Any ideas would be greatly appreciated.

RSL500 Snip.jpg Data snip.jpg
 
if you definitely want the data to move "forward" (as you said) then take a look at the "ratchet" method ... if you want to save memory and can live with going "backwards" try using the "ripple" method ...

both ideas are covered in the TWO posts which start here:

http://www.plctalk.net/qanda/showthread.php?p=360484&postcount=3

(yes, I know that you're asking for RSLogix500 - not RSLogix5000 - but the ADDRESSING ideas are the same ...
 
Thanks Ron!!
I went back and looked at the 5000 program where I had done this before and sure enough I did the "Ratchet" method.
I changed my program and it works perfectly.
Thanks again.
 

Similar Topics

We're converting a machine's control from CompactLogix to Micro800. It was originally going to be on a Micro850. However, because we've ended up...
Replies
2
Views
1,606
Long time lurker, first time poster.. I've been working with PLCs for a while now and have ran into a head scratcher that I was hoping someone...
Replies
8
Views
2,249
Hi experts, I'm troubleshooting a program with rslogix5000. there is many cop instruction of array, but sometimes some data are not copied. As...
Replies
11
Views
3,255
Good morning everyone. I am apparently confused on the COP instruction. What I am trying to do is copy a DINT to a DINT in a User Defined Data...
Replies
16
Views
6,995
I am using RS500 in a Micrologix 1400 I have a COP instruction Source #N27:30 Destination #N27:1 Length 5 This is set on First Pass Bit Yet it...
Replies
4
Views
2,616
Back
Top Bottom