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