348
SECTION
3
PLC
Programming
Industrial Text & Video Company 1-800-752-8398
www.industrialtext.com
CHAPTER
9
Programming
Languages
9-12 DATA TRANSFER INSTRUCTIONS
Data transfer instructions move, or transfer, numerical data within a PLC,
either in single register units or in blocks (a group of registers). These
instructions can move data to or from any location in the memory data table,
with the exception of user-restricted areas. Typical uses of data transfer
instructions are the movement of constant and/or preset values to counters and
timers, the reading of analog inputs and multibit input modules, and the
transferring of data to output modules.
As with other instructions, data transfer instructions may be in either ladder
or functional block format, although block format is most common. The
ladder format functions used to transfer data are the get (GET) and put (PUT)
instructions (see Figure 9-98), which are generally used with PLCs that
provide basic ladder format implementation of arithmetic and data compari-
son instructions. A GET data transfer instruction accesses data from a certain
register, whereas a PUT instruction stores data in a specified register.
Figure 9-98. GET and PUT instructions used in the ladder format.
The functional block group of data transfer instructions forms perhaps the
most useful set of functions available in enhanced PLCs, after the basic relay
instructions. The names of the data transfer instructions may differ depending
on the controller, yet they implement the same transfer functions. Table 9-9
shows the different instructions available with data transfer operations.
MOVE
A move (MOV) functional block instruction transfers information from one
location to another, with the destination location being a single bit or register.
Figure 9-99 shows move bit (MOVB) and move register (MOVR) functional
blocks. Some PLCs also offer move byte instructions.
Reg 1000
10
ADD
PUT
GET
Reg 1001 Reg 2000
GET
+
Reg 2000
11
GET
Reg 3000
If contact 10 closes, the contents of registers 1000 and 1001
are added and stored in register 2000. If contact 11 closes, the
contents of register 2000 are transferred (stored) into register
3000. The contents of register 2000 are not altered.