5 - 28 5 - 28
MELSEC-A
5 PROGRAMMING
5.4.3 Program example
AJ65VBTCU-68ADI
AJ65VBTCU-68ADVN
Data link normal
AJ65VBTCU-68ADI
Data link abnormal
The program part enclosed by the dotted line is required only when the initial setting is changed.
Turns OFF the initialization
procedure registration
command.
A/D conversion enable/
prohibit specification
(RWw0)
CH. 1 to CH. 4
input range setting (RWw1)
Turns ON the initial data
setting request flag (RY19).
Turns OFF the initial data
setting request flag (RY19).
Reads the CH. 1 digital
output value (RWr0).
Reads the CH. 2 digital
output value (RWr1).
Average processing
specification (RWw3)
CH. 2 average time,
number of times setting
(RWw5)
Turns ON the error reset
request flag (RY1A).
Turns OFF the error reset
request flag (RY1A).
Reads the error code (RWr8).
AJ65VBTCU-68ADVN
Data link abnormal
Turns ON the initialization
procedure registration
command.
AJ65VBTCU-68ADI
AJ65VBTCU-68ADI
Confirmation of AJ65VBTCU-68ADI, AJ65VBTCU-68ADVN status
Initialization procedure registration
AJ65VBTCU-68ADI Change of initial setting
AJ65VBTCU-68ADI Read of digital output values
AJ65VBTCU-68ADI Processing at error occurrence