370 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 8 Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
Copy File (COP)
Synchronous Copy File
(CPS)
The COP and CPS instructions copy the value(s) in the Source to the
Destination. The Source remains unchanged.
Operands:
Relay Ladder
Structured Text
The operands are the same as those for the relay ladder COP and
CPS instructions.
Description: During execution of the COP and CPS instructions, other controller actions may
try to interrupt the copy operation and change the source or destination data.
Operand Type Format Description
Source SINT
INT
DINT
REAL
string
structure
Tag Initial element to copy.
Important: the Source and Destination operands
should be the same data type, or unexpected
results may occur.
Destination SINT
INT
DINT
REAL
string
structure
Tag Initial element to be overwritten by the Source
Important: the Source and Destination operands
should be the same data type, or unexpected
results may occur.
Length DINT Immediate
Tag
Number of Destination elements to copy.
If the source or destination is And you want to Then select Notes
·Produced tag
·Consumed tag
·I/O data
·Data that another task can overwrite
Prevent the data from changing during
the copy operation
CPS ·Tasks that attempt to interrupt a CPS
instruction are delayed until the instruction
is done.
·To estimate the execution time of the CPS
instruction, see ControlLogix System User
Manual, publication 1756-UM001.
Allow the data to change during the copy
operation
COP
None of the above COP