User`s manual

6 - 5 6 - 5
MELSEC-Q
6 PROGRAMMING
(2) Programming example using the intelligent function module device
(U \G )
Set the A/D conversion enabled channel (initial setting)
Error
reset
signal
Error
flag
Module
READY
Error code display and reset processing
Error clear
request
Error
clear
request
Error
flag
Error clear
request
Operating
condition
setting request
Operating
condition
setting
request
Operating
condition
setting completed
Operating
condition
setting request
Read
digital
values
Module
READY
CH1
Digital
output
Digital output value read processing
A/D
conver-
sion
comple-
ted
flag
CH2
Digital
output
CH3
Digital
output
Error code
Operating
condition
setting
request
Output the error code to
Y20 to Y2B by BCD code
CH1 to CH3 are A/D
conversion enabled
Set the average number
of times for CH2 to 50 times
Set the average time
for CH3 to 1000 ms
Specify averaging processing
Set Y9 (operating condition
setting request) from ON to OFF
and enable the initial setting
Read digital output
values for CH1 to 3
Clear the error code