Allen Bradley COP slc function help

veoteveo

Member
Join Date
May 2008
Location
Mexico
Posts
20
Hello,

I need to copy values from one location to another.
example N10:0 (N10:1, N10:2...etc) to N10:10 COPY to
N11:0 (N11:1, N11:2...etc) to N11:10.
the values in each N address are unsigned intergers, either 1 or 5 intergers.
How do I use the lenght function?

thanks
 
Important:

Length = number of contiguous elements you want to copy.

When both the source and destination are Integer words, then the number of elements is the number of words.

But if either the source or the destination is a different data type, the number of elements of the destination determines how much data is transferred by the COP instruction.

For example: if the source was an Integer and the Destination was a Floating Point element, the COP instruction would take two integers from the source for every one Floating Point element in the destination.

This is more important in RSLogix 5000 than RSLogix 500, but it's still worth being specific.

In your case, veoteveo, the Length argument is the number of elements = the number of integer words.
 
While doug2 is correct in this case the length is actually in terms of the target items. If you are copying unlike things ,let's say N registers to Timers, then the length would be in terms of how many timers, each taking 3 words. Yes, it is possible to copy a whole timer.

Ken you're just too fast.
 

Similar Topics

Hello all. I have been working with an SLC 5/04 system, which houses various Digital and Analog INs and OUTs, up to Slot 29. I am currently...
Replies
3
Views
2,522
Hello, I need to copy values from one location to another. example N10:0 (N10:1, N10:2...etc) to N10:10 COPY to N11:0 (N11:1, N11:2...etc) to...
Replies
0
Views
2,584
Hi, I have a ControlLogix system with 1756-IF16 analogue inputs. I can't scale the inputs at the card as there is a requirement to facilitate...
Replies
14
Views
369
Dear community, I am trying to find a tool for Allen-Bradley PLCs similar to SiVArch for Siemens PLCs to automatically generate faceplates and...
Replies
0
Views
93
Hi everyone, new to forum. Since very long time i having issue with 1734-AENT module, after some period of time its keep stuck in error (simmilar...
Replies
16
Views
628
Back
Top Bottom