Mitsubishi Electronics Q64AD TV Converter Box User Manual


 
6 - 1 6 - 1
MELSEC-Q
6 PROGRAMMING
6
6 PROGRAMMING
Using a sample system configuration shown below, details of the A/D converter
module program are explained in the following two scenarios: when the utility package
is used and when the utility package is not used.
System configuration used in the program explanation
(1) System configuration
Power supply module
QnCPU
Q64AD
QX10
QY10
X/Y0
to
X/YF
X10
to
X1F
Y20
to
Y2F
(2) Program conditions
This program reads the digital output values that have been A/D converted using
CH 1 to CH3 of the Q64AD. CH1 performs sampling processing, CH2 performs
averaging processing every 50 times, and CH3 performs averaging processing
every 1000 ms. An error code appears in BCD format if a write error occurs.
(a) Contents of initial setting
• A/D conversion enable channel
........................................
CH1 to CH3
• Channel performing averaging processing using number of times
........................................
The average number of times set for CH2 is 50.
• Channel performing averaging processing using time
........................................
The average time set for CH3 is 1000 ms
(b) Devices used by the user
• Error reset signal
................................................................
X10
• Input signal for digital output value read command
...........
X11
• Error code display (3-digit BCD)
........................................
Y20 to Y2B
• CH1 digital output value
.....................................................
D11
• CH2 digital output value
.....................................................
D12
• CH3 digital output value
.....................................................
D13
• Error code
.........................................................................
D14