Copy File (Cop) Synchronous Copy File (Cps); Relay Ladder; Structured Text - Allen-Bradley Logix5000 Reference Manual

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

Advertisement

Chapter 8
Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
Copy File (COP)
Synchronous Copy File
(CPS)
COP(Source,Dest,Length);
Description:
If the source or destination is
·Produced tag
·Consumed tag
·I/O data
·Data that another task can overwrite
None of the above
370
The COP and CPS instructions copy the value(s) in the Source to the
Destination. The Source remains unchanged.
Operands:

Relay Ladder

Operand
Source
Destination
Length

Structured Text

The operands are the same as those for the relay ladder COP and
CPS instructions.
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.
And you want to
Prevent the data from changing during
the copy operation
Allow the data to change during the copy
operation
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
SINT
Tag
INT
DINT
REAL
string
structure
SINT
Tag
INT
DINT
REAL
string
structure
DINT
Immediate
Tag
Then select
CPS
COP
COP
Description
Initial element to copy.
Important: the Source and Destination operands
should be the same data type, or unexpected
results may occur.
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.
Number of Destination elements to copy.
Notes
·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.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents