6 - 2                 6 - 2 
MELSEC-Q
6   PROGRAMMING 
 
6.2 For Use in Normal System Configuration (Q64AD-GH) 
 System configuration used in the program explanation   
 
(1)   System configuration 
 
Q
n
C
P
U
Q
6
4
A
D
Q
X
1
0
Q
Y
1
0
X/Y0
X/YF
X10
X1F
Y20
Y2F
Power
supply
module
-
G
H
to to to
 
 
(2)   Program conditions 
This program reads the digital output values that have been A/D converted using 
CH1 to CH3 of the Q64AD-GH. CH1 performs sampling processing, CH2 
performs averaging processing every 50 times, and CH3 performs primary delay 
filtering at intervals of 100ms time constant. An error code appears in BCD if a 
write error occurs. 
(a)   Initial settings 
• A/D conversion enable channel ............. CH1 to CH3 
• Count-based 
averaging processing channel .............. Average count setting of CH2 
: 50 times 
• Primary delay filter-based 
averaging processing channel .............. Time constant setting of CH3 
: 100ms 
• Process alarm channel .......................... Lower lower limit value setting of 
CH2: 1000 
Lower upper limit value setting 
: 1500 
Upper lower limit value setting 
: 6000 
Upper upper limit value setting 
: 7000 
• Rate alarm channel ................................ Period setting of CH3: 50ms 
Upper limit value setting: 0.3% 
Lower limit value setting: 0.1% 
• Input signal error detection channel ...... Setting of CH1: 10% 
 
(b)   Devices used by the user 
• Digital output value read command input signal ..... X10 
• Input signal error detection reset signal .................. X11 
• Error reset signal ...................................................... X12 
• Error code display (BCD 3 digits) ............................ Y20 to Y2B 
• A/D conversion completed flag ................................ M0 to M2 
• CH1 digital output value (32bit) ............................... D1, D2 
• CH2 digital output value (32bit) ............................... D3, D4 
• CH3 digital output value (32bit) ............................... D5, D6 
• Warning output flag .................................................. D7 
   Process alarm.......................................................... M12, M13 
   Rate alarm ............................................................... M22, M23 
• Input signal error detection flag ............................... D8, M30 
• Error code ................................................................. D9 
 
 
 
 
 
 
 
 
 
 
 
 
 6