Mitsubishi MELSEC-Q Q Series User Manual page 83

Analog-digital converter module, programmable logic controller, gx configurator-ad sw0d5c-qadu-e
Table of Contents

Advertisement

6 PROGRAMMING
(2) Programming example using the intelligent function module device
Set the A/D conversion enabled channel (initial setting)
X0
0
Module
READY
Y9
X9
99
Operating
Operating
condition
condition
setting
setting completed
request
Digital output value read processing
X11
X0
X0E
102
Read
Module
A/D
digital
READY
conversion
values
completed
flag
Error code display and reset processing
X10
X0F
134
Error
Error
reset
flag
signal
Y0F
X0F
158
Error
Error
clear
flag
request
161
6 - 5
All manuals and user guides at all-guides.com
(U \G )
U0\
MOV
H8
G0
CH1 to CH3 are A/D conversion
enabled
U0\
MOV
K50
G2
Set the average number of times
for CH2 to 50 times
U0\
MOV
K1000
G3
Set the average time for CH3 to
1000 ms
U0\
MOV
H604
G9
Specify averaging processing
SET
Y9
Operating
Set Y9 (operating condition
condition
setting request) from ON to OFF
setting request
and enable the initial setting
RST
Y9
Operating
condition
setting request
U0\
MOV
G11
D11
CH1
Digital
output
U0\
Read digital output values for
MOV
G12
D12
CH1 to 3
CH2
Digital
output
U0\
MOV
G13
D13
CH3
Digital
output
U0\
BCD
G19
K3Y20
Error code
Output the error code to
Y20 to Y2B by BCD code
SET
Y0F
Error clear
request
RST
Y0F
Error clear
request
END
MELSEC-Q
6 - 5

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Melsec-q q64adMelsec-q q68advMelsec-q q68adi

Table of Contents