Mitsubishi Electronics Q68ADI TV Converter Box User 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)
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
G0MOV 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
Y9SET
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
D11MOV G11
CH2
Digital
output
CH3
Digital
output
Set Y9 (operating condition
setting request) from ON to OFF
and enable the initial setting
U0\
G2MOV K50
U0\
G3MOV K1000
U0\
G9MOV H604
U0\
U0\
D12MOV G12
U0\
D13MOV G13
U0\
BCD G19 K3Y20
Error code
U0\