User`s manual
6 - 6 6 - 6
MELSEC-Q
6 PROGRAMMING
6.2 For Use in Remote I/O Network
System configuration used in the program explanation
(1) System configuration
Q
n
C
P
U
Q
J
7
1
L
P
2
1
Q
X
1
0
Q
Y
1
0
Q
J
7
1
L
P
2
5
Q
X
1
0
Q
Y
1
0
X/Y100
X/Y10F
Q
6
4
A
D
X/Y110
X/Y11F
X/Y120
X/Y12F
Remote master station (Network No. 1) Remote I/O station (Station No. 1)
Power
supply
module
Power
supply
module
to
to
to
Perform the following intelligent function module switch settings in advance.
• Switch 1 0030
H
(CH1: 4 to 20mA, CH2: 0 to 5V, CH3: -10 to 10V)
• Switch 2 Empty
• Switch 3 Empty
• Switch 4 0000
H
(Normal mode (A/D conversion processing))
• Switch 5 0000
H
(0: Fixed)
(2) Program conditions
In this program, the digital output values that have been A/D converted using
CH1 to CH3 of the Q64AD are read by the CPU of the remote master station.
CH1 performs sampling processing, CH2 performs averaging processing every
50 times, and CH3 performs averaging processing every 1000ms. An error code
appears in BCD format 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
• Channel performing
averaging processing using time ..........Average time setting of CH3
: 1000ms
(b) Devices used by the user
• Initial setting request signal .....................................X20
• Digital output value read command input signal.....X21
• Error reset signal......................................................X23
• Error code display (BCD 3 digits) ............................Y30 to Y3B
• CH1 digital output value...........................................D11 (W11)
• CH2 digital output value...........................................D12 (W12)
• CH3 digital output value...........................................D13 (W13)
• Error code.................................................................D14 (W14)
POINT
For details on the MELSECNET/H remote I/O network, refer to the Q
Corresponding MELSECNET/H Network System Reference Manual (Remote I/O
Network).