User`s manual
5 - 6 5 - 6
MELSEC-A
5 PROGRAMMING
(3) Program example
Reads data link status.
AJ65VBTCU-68ADV data
link normal
AJ65VBTCU-68ADV data
link abnormal
A/D conversion enable/
prohibit specification
(RWw0)
Turns on initialization
procedure registration
directive.
Turns off 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
The program enclosed by the dotted line is necessary only when the initial settings are changed.
Checking of AJ65VBTCU-68ADV status
Initialization procedure registration
Changing of initial settings
Initial setting change
Read of digital output values
Processing at error occurrence