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)
0
X10
134
Error
reset
signal
X0F
Error
flag
161
END
Read digital output values for
CH1 to 3
X0
Module
READY
Error code display and reset processing
SET
Y0F
Error clear
request
Y0F
158
Error
clear
request
X0F
Error
flag
RST
Y0F
Error clear
request
Output the error code to
Y20 to Y2B by BCD code
G0
MOV
H8
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
Y9
SET
Operating
condition
setting request
Y9
99
Operating
condition
setting
request
X9
Operating
condition
setting completed
RST
Y9
Operating
condition
setting request
X11
102
Read
digital
values
X0
Module
READY
CH1
Digital
output
Digital output value read processing
X0E
A/D
conversion
completed
flag
D11
MOV
G11
CH2
Digital
output
CH3
Digital
output
Set Y9 (operating condition
setting request) from ON to OFF
and enable the initial setting
U0\
G2
MOV
K50
U0\
G3
MOV
K1000
U0\
G9
MOV
H604
U0\
U0\
D12
MOV
G12
U0\
D13
MOV
G13
U0\
BCD
G19
K3Y20
Error code
U0\
Summary of Contents for Q64AD
Page 11: ...1 2 MELSEC Q 1 OVERVIEW MEMO...
Page 13: ...2 2 MELSEC Q 2 SYSTEM CONFIGURATION MEMO...
Page 31: ...3 18 MELSEC Q 3 SPECIFICATIONS MEMO...
Page 43: ...4 12 MELSEC Q 4 SETUP AND PROCEDURES BEFORE OPERATION MEMO...
Page 61: ...5 18 MELSEC Q 5 UTILITY PACKAGE SW0D5C QADU E MEMO...
Page 67: ...6 6 MELSEC Q 6 PROGRAMMING MEMO...
Page 76: ...Index 3 MEMO...