5 - 13 5 - 13
MELSEC-A
5 PROGRAMMING
The program enclosed by the dotted line is necessary only when the initial settings are changed.
Initial setting change
Error reset
Average processing
specification (RWw3)
Turns on initial data
processing completion
flag (RY18).
Turns on initial data
setting request flag
(RY19).
A/D conversion enable/
prohibit specification
(RWw0)
CH.1 to CH.4 input
range setting (RWw1)
Writes to master station
Turns off initial data
processing completion
flag (RY18).
Turns off initial data
setting request flag
(RY19).
Reads CH.1 digital
output value (RWr0).
Reads CH.2 digital
output value (RWr1).
Turns on error reset
request flag (RY1A).
Turns off error reset
request flag (RY1A).
Y400 to Y41F are written
into RY00 to RY1F.
Turns on initial data
setting request flag
(RY19).
Writes to master station
CH.2 average time,
number of times setting
(RWw5)
Writes to master station
Average processing
specification (RWw3)
Writes to master station
CH.2 average time,
number of times setting
(RWw5)
Writes to master station
Reads error code
(RWr8).
Changing of initial settings
Processing at initial settings
Read of digital output values
Processing at error occurrence
Write of remote output signals