Chapter 13 Data manipulation instructions
300 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
COP copies the binary data in the Source to the Destination, and leaves the
source value unchanged.
Arguments
Parameter Parameter type Data type Description
Enable Input BOOL Function block enable. This FB is level triggered.
When Enable=TRUE, perform copy.
When Enable=FALSE, the function block will not be executed.
Src Input BOOL
SINT
USINT
BYTE
INT
UINT
WORD
DINT
UDINT
DWORD
REAL
TIME
DATE
STRING
LWORD
ULINT
LINT
LREAL
Initial element to copy.
If the source or destination is a String data type, the other party
must also be a String data type, or a USINT (UCHAR and BYTE) data
type. If it is not, a data type mismatch will be reported.
See also Copying to a different data type on page 304.
SrcOffset Input UINT Source element offset.
The element offset if the source is an array data type.
Set the offset to 0 if:
• If it is not an array data type, or
• To copy from the first element for an array data type.