5 - 6 5 - 6
MELSEC-A
5 PROGRAMMING
(3) Program
example
Reads data link status.
AJ65VBTCU-68DAVN data
link normal
AJ65VBTCU-68DAVN data
link abnormal
Analog output enable/
disable setting (RWw8)
Turns off initialization
procedure registration
directive.
Turns on initialization
procedure registration
directive.
CH.1 to CH.4 output
range setting (RWw9)
Turns on initial data setting
request flag (RY19).
Turns off initial data setting
request flag (RY19).
Turns on error reset
request flag (RY1A).
Turns off error reset
request flag (RY1A).
Checking of AJ65VBTCU-68DAVN status
Initialization procedure registration
Changing of initial settings
Processing at error occurrence
Analog output enable/disable specification
Setting of digital values
Digital value
setting
Analog output
enable
CH.1 digital value
setting (RWw0) : 500
CH.2 digital value
setting (RWw1) : 1000
Turns on CH.1 analog
output enable/disable
flag (RY00).
Turns on CH.2 analog
output enable/disable
flag (RY01).
Read CH. check code
(RWr0, RWr1).
Reads error code (RWr8).
*1
1)
*2
2)
RX( m+1)B
RX( n+1)B
RX( m+1)8
RX( n+1)8
The program part enclosed by the dotted line 2) is required only when the initial setting is changed.
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
*2
Initial setting change
Error reset