Fll, mov, cop

Amy_Fields

Member
Join Date
Aug 2013
Location
Toronto
Posts
30
Would someone be so kind as to explain the difference between the cop, mov and cop instructions and where each one may be used? The instruction help description all seems to be similar.

Thank you
 
No problem Amy - and welcome to the forum !!

MOV - (is actually a copy, since the source is never changed), takes the contents of the source address or tag and puts it into the destination address or tag. It can only move one data "element" at a time, so cannot be used to copy arrays, or any other tag or data object that has a "structure". Nor can it be used to copy bits. Data conversion between different data-types is performed as necessary.

COP - copies areas of memory from the source to the destination. Can be used with arrays, and structured tags. NO DATA CONVERSION is even attempted, it is a fast "bit-copier". COPying between different data-types will corrupt the data.

CPS - (Only in Logix5000) just like the COP, but can't be interrupted by System Overhead Time-Slice, or higher priority tasks.

That's a simple overview - hope it helps.
 
it is just used to Fill an array or data-table with the value of a single source. That source can be another tag or address, or it can be a literal, like "0".... very useful for clearing data ...
 

Similar Topics

Hi Guys, Nice easy one for you...I have an array of 150 Analog Inputs. Is there an instruction I can use to move a value into a member of each...
Replies
12
Views
6,122
I am using a SLC5 and need to set B3:0/2, 3, 4, & 5 to zero. Can I use a FLL command, using my source as 0, destination B3:/2 and length of 4...
Replies
7
Views
1,932
Structured Text does not have FLL instruction, but one can create the equivalent. SIZE(destination,0,length); FOR position := 0 TO length-1 DO...
Replies
5
Views
2,593
I'm troubleshooting this machine in the field right now. The discrete outputs of this Micrologix 1500 are wired to discrete inputs of a Siemens...
Replies
3
Views
1,530
I'm using a CompactLogix L33ER with v24 of Studio 5000. I've been noticing some odd behavior when I trigger a FLL instruction behind an ONS. It...
Replies
4
Views
1,435
Back
Top Bottom