Allen-Bradley Logix5000 Reference Manual page 371

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

IMPORTANT
Arithmetic Status Flags:
Fault Conditions:
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
The number of bytes copied is:
Byte Count = Length ∗ (number of bytes in the Destination data type)
ATTENTION: If the byte count is greater than the length of the Source, unpredictable
data is copied for the remaining elements.
You must test and confirm that the instruction doesn't change data that you don't
want it to change.
The COP and CPS instructions operate on contiguous memory. They do a straight
byte-to-byte memory copy. In some cases, they write past the array into other
members of the tag. This happens if the length is too big and the tag is a user-
defined data type.
If the tag is
Then
User-defined data type
If the Length is too big, the instruction writes past the end of the
array into other members of the tag. It stops at the end of the tag. No
major fault is generated.
NOT user-defined data type
If the Length is too big, the instruction stops at the end of the array.
No major fault is generated.
The Length is too big if it is more than the total number of elements in the
Destination array.
Not affected
None
Chapter 8
371

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents