User`s manual

6 - 4 6 - 4
MELSEC-Q
6 PROGRAMMING
6.1.2 Programming example without using the utility package
(1) Programming example using the FROM/TO commands
Set the A/D conversion enabled channel
(
initial settin
g)
Error
reset
signal
Error
flag
Read digital output values for
CH1 to 3
Module
READY
Error code display and reset processing
Error clear
request
Error
clear
request
Error
flag
Error clear
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
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
Set Y9 (operating condition
setting request) from ON to OFF
and enable the initial setting
Error code
Clear the error code.
Error code
Operating
condition
setting
request