7 - 1 7 - 1
MELSEC-Q
7 PROGRAMMING
7 PROGRAMMING
When applying the following program examples to the actual system, make sure to
examine the applicability and confirm that it will not cause system control problems.
7.1 I/O Slave
This section explains the programs for I/O data communication between the
QJ71AS92 and I/O slaves.
The system configuration example in (1) shows how the programs perform when the
utility package is used and when it is not used.
(1) System
Configuration
The QJ71AS92 is mounted on slot 0 of the main base unit.
Slave addresses 4
Power supply
QCPU
QJ71
AS92
X/Y
0 to 1F
Input
module
X
50 to 5F
Y
90 to 9F
Output
module
to
to
AS-i
power supply
AS-i cable
Slave addresses 4
Output 4 points
Slave addresses 5
Slave addresses 5
Output 4 points
CPU module
Y94 to Y97
CPU module
X50 to X53
(2) Operations
The following operations are performed in the above system.
(a) The inputs X50 to X53 of the CPU module are output to the output data to
the slave address 4.
(b) The input data from the slave address 5 is output to the outputs Y94 to Y97
of the CPU module.
REMARK
If a configuration error occurs, I/O control is executed for the slaves are ready for
communication.
7
Downloaded from