5 - 6 5 - 6
MELSEC-A
5 PROGRAMMING
(3) Program
example
1)
2)
RX( m+1)B
RX( n+1)B
RX( m+1)8
RX( n+1)8
When remote device station initialization procedure registration is to be made to multiple modules,
correct the program part enclosed by the dotted line 1 as shown below.
RX(m+1)B/RX(n+1)B indicates remote REDY, and RX(m+1)8/RX(n+1)8 indicates an initial data
processing request flag. The device number changes depending on the station number. Insert the
remote REDY and initial data processing request flags for all stations where remote device station
initialization procedure registration has been set.
1
The program part enclosed by the dotted line 2 is required only when the initial setting is changed.
2
Reads data link status.
AJ65VBTCU-68ADVN
data link normal
AJ65VBTCU-68ADVN
data link abnormal
A/D conversion enable/
prohibit specification
(RWw0)
Turns off initialization
procedure registration
directive.
Turns on initialization
procedure registration
directive.
CH.1 to CH.4 input
range setting (RWw1)
Average processing
specification (RWw3)
CH.2 average time,
number of times setting
(RWw5)
Turns on initial data setting
request flag (RY19).
Turns off initial data setting
request flag (RY19).
Reads CH.1 digital
output value (RWr0).
Reads CH.2 digital
output value (RWr1).
Reads error code
(RWr8).
Turns on error reset
request flag (RY1A).
Turns off error reset
request flag (RY1A).
ƒ
C ƒ
j ƒ
V ƒ
ƒ ƒ
‹ Ý ’è •ÏX
Error reset
Checking of AJ65VBTCU-68ADVN status
Initialization procedure registration
Changing of initial settings
Initial setting change
Read of digital output values
Processing at error occurrence
1
2