Data Move Functions; Data Move Functions Move Data - GE VersaMax PLC User Manual

Table of Contents

Advertisement

10.3 Data Move Functions

Instruction Set Reference
For public disclosure
The Data Move functions of the Instruction Set provide basic data move capabilities.
Move Data. This function copies data as individual bits, so the new location does not
have to be the same data type.
Block Move. This function places constants into seven specified memory locations.
Block Clear. This function fills an area of memory with zeros.
Shift Register. This function shifts one or more data words or data bits from a
reference location into a specified area of memory. Data already in the area is shifted
out.
Communication Request (COMMREQ). This important function allows the CPU to
communicate with intelligent modules in the system, for example, communications
modules. The basic format of the COMMREQ function is shown in this chapter. The
detailed parameters needed to program specific communications tasks are provided in
the documentation for each module.

10.3.1 Data Move Functions Move Data

The Move function copies 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.
When the Move 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.
Enable
Value to be Moved
Note that if an array of Bit-type data specified in the Q parameter does not include all the
bits in a byte, the transition bits associated with that byte (which are not in the array) are
cleared when the Move function receives power flow.
The 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. Do not allow overlapping of IN and Q parameters.
MOVE
OK
INT
IN
Q
Output
GFK-1503E User Manual 147

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents