5 - 12
MELSEC-
A
5 PRELIMINARY INFORMATION
5.5 Initializing the R2
The methods for initializing the R2 are described below.
5.5.1 Using the buffer memory automatic update function
Initialization when using the buffer memory automatic update function changes the
contents of
R2
0H
to 19F
H.
The values of the initialization area (
R2
0H
to 19F
H) can be changed by using this
operation.
The transmission/reception area address, size, range of buffer memory to be
automatically updated and the parameters, etc., can be set.
(1) Before initializing
1) Secure the automatic update buffer size (1C0H or more) by initializing the
master station. (To write
R2
0H to 1BFH into the master station)
2) Set the R2 mode setting switch to "1" (automatic update function enabled).
(2) Flow of process
Programmable controller CPU Master station
R2
Buffer
memory
(initialization
area)
Automatic
update
buffer
Word
device
Remote
input (RX)
Remote
input (RX)
1) Initial data read request ON
5) Initial data read request OFF
9) Initialization request ON
12) Initialization request OFF
8) Initialization data
2) Remote station ready OFF
4) Initial data read complete ON
6) Initial data read complete OFF
7) Remote station ready ON
11) Initialization normal/error complete ON
13) Initialization normal/error complete OFF
3) R2 default value
10) Initialization data
Steps 1), 5), 8), 9) and 12) are carried out
with the sequence program.
Steps 2), 3), 4), 6), 7), 10) and 13)
are carried out by R2.
Remote
output (RY)
Remote
output (RY)
Bit device