beautypg.com

Rockwell Automation 1747-PT1, D1747NP002 Hand-Held Terminal User Manual

Page 79

background image

Chapter 4
Data File Organization and Addressing

4–23

Transferring Data Between Processor Files and M0 or M1 Files

As pointed out earlier, the processor does not contain an image of the M0 or
M1 file. As a result, you must edit and monitor M0 and M1 file data via
instructions in your ladder program. For example, you can copy a block of
data from a processor data file to an M0 or M1 data file or vice versa using
the COP instruction in your ladder program.

The COP instructions below copy data from a processor bit file and integer
file to an M0 file. Suppose the data is configuration information affecting
the operation of the specialty I/O module.

COP

COPY FILE
Source

#B3:0

Dest

#M0:1.0

Length

16

COP

COPY FILE
Source

#N7:0

Dest

#M0:1.16

Length

27

] [

S:1

15

First scan bit. It makes this
rung true only for the first
scan after entering the Run
mode.

The COP instruction below copies data from an M1 data file to an integer
file. This technique is used to monitor the contents of an M0 or M1 data file
indirectly, in a processor data file.

COP

COPY FILE
Source

#M1:4.3

Dest

#N10:0

Length

6