Download Introduction - Artisan Technology Group

Transcript
Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
Copy File (COP)
Synchronous Copy File
(CPS)
Chapter 8
The COP and CPS instructions copy the value(s) in the Source to the
Destination. The Source remains unchanged.
Operands:
Relay Ladder
Operand
Type
Format
Description
Source
SINT
tag
initial element to copy
Important: the Source and Destination
operands should be the same data type, or
unexpected results may occur
INT
DINT
REAL
string
structure
Destination
SINT
tag
initial element to be overwritten by
the Source
INT
Important: the Source and Destination
operands should be the same data type, or
unexpected results may occur
DINT
REAL
string
structure
Length
DINT
immediate
number of Destination elements to copy
tag
Structured Text
COP(Source,Dest,Length);
CPS(Source,Dest,Length);
The operands are the same as those for the relay ladder COP and
CPS instructions.
Publication 1756-RM003K-EN-P - July 2008
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
355