Chapter 4. Ladder Diagram (LD) Programming
GFK-2950C
February 2018
163
4.8.13
Move Data Explicit
MOVE_DATA_EX provides optional data coherency by locking the
symbolic memory being written to during the copy operation. This allows
data to be copied coherently when accessed by multiple logic threads (i.e.
interrupt blocks). Note that copying large amounts of data with coherency
enabled can increase interrupt latency.
MOVE_DATA_EX Operands
Parameter Description
Allowed Operands
Optional
Length (??) The length of IN; the number of elements to copy.
1
Length
32,767
Constant
No
DC
Data coherency.
If True memory being written to is locked, enabling
coherent copying of data from one Controller memory
area to another.
If False (default), data is copied normally from one
Controller memory area to another
without
data
coherency.
▪
The input DC should be used only when using
interrupt blocks and is required only when the same
memory is used in more than one interrupt block, or
in the main program and an interrupt block.
▪
If DC is True, an interrupt block cannot preempt the
copy operation.
▪
If DC is False or not present, then interrupts can
preempt the copy.
▪
Using DC can impact interrupt latency if the amount
of data copied is large.
Data flow.
Yes
IN
The location of the data item to copy.
If IN is 0 (LD only), length is assigned the constant 1 and
the variable or structure assigned to Q is set to its default
value.
Enumerated variable or
structure variable, or array
of these types; the constant
0.
No
Q
Variable or array to which IN is copied.
Q must be the same data type as IN, unless IN is the
constant 0.
Enumerated variable or
structure variable, or array
of these types.
No
Example
Enum_Array and Enum_Array_Out are arrays of
enumerated variables, with three elements each.
To copy all elements in Enum_Array, input Length
should be 3. When the enabling input Q00014 is
on, MOVE_DATA_EX copies three elements from
memory location Enum_Array to memory
location Enum_Array_Out.
Summary of Contents for PACSystems RX7i
Page 357: ......
Page 466: ...Chapter 9 Diagnostics GFK 2950C February 2018 451...