5 - 8 5 - 8
MELSEC-A
5 PROGRAMMING
(2) Program
example
The program enclosed by the dotted line is necessary only when the initial settings are changed.
Initial settings
Checking of AJ65VBTCU-68DAVN status
Changing of initial settings
Initial setting change
Processing at initial settings
Error reset
Reads data link status.
AJ65VBTCU-68DAVN data
link normal
AJ65VBTCU-68DAVN data
link abnormal
HOLD/CLEAR setting
(RWwB)
Turns on initial data
processing completion flag
(RY18).
Turns on initial data
setting request flag (RY19).
Turns on initial data setting
request flag (RY19).
Turns off initial data
processing completion flag
(RY18).
Turns off initial data setting
request flag (RY19).
Processing at error occurrence
Analog output enable/disable specification
Setting of digital values
Digital value
setting
Analog output
enable
Analog output enable/
disable setting (RWw8)
CH.1 to CH.4 output range
setting (RWw9)
Analog output enable/
disable setting (RWw8)
CH.1 to CH.4 output range
setting (RWw9)
Turns on error reset
request flag (RY1A).
Turns off error reset
request flag (RY1A).
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).