4-70 Series 90-30/20/Micro Programmable Controllers Reference Manual September 1998 GFK-0467K
4
MOVE (BIT, INT, WORD, REAL)
Use the MOVE function to copy data (as individual bits) from one location to another. Because the
data is copied in bit format, the new location does not need to be the same data type as the original
location.
The MOVE function has two input parameters and two output parameters. When the function
receives power flow, it copies data from input parameter IN to output parameter Q as bits. If data is
moved from one location in discrete memory to another, (for example, from %I memory to %T
memory), the transition information associated with the discrete memory elements is updated to
indicate whether or not the MOVE operation caused any discrete memory elements to change state.
Data at the input parameter does not change unless there is an overlap in the source and destination.
For the BIT type there is another consideration. If a BIT array specified on the Q parameter does
not encompass all of the bits in a byte, the transition bits associated with that byte (which are not in
the array) will be cleared when the MOVE_BIT receives power flow.
Input IN can be either a reference for the data to be moved or a constant. If a constant is specified,
then the constant value is placed in the location specified by the output reference. For example, if a
constant value of 4 is specified for IN, then 4 is placed in the memory location specified by Q. If
the length is greater than 1 and a constant is specified, then the constant is placed in the memory
location specified by Q and the locations following, up to the length specified. For example, if the
constant value 9 is specified for IN and the length is 4, then 9 is placed in the memory location
specified by Q and the three locations following.
The LEN operand specifies the number of:
Words to be moved for MOVE_INT and MOVE_WORD.
Bits to be moved for MOVE_BIT.
Reals to be moved for MOVE_REAL.
Note
The REAL data type is only available on 350 and 360 series CPUs, Release 9 or
later, or on all releases of CPU352.
The function passes power to the right whenever power is received.
_____
| |
(enable) —|MOVE_|— (ok)
| |
| INT |
| |
(value to be moved) —|IN Q|— (output parameter Q)
| |
| LEN |
|00001|
|_____|