Download DeviceNet Master-Slave Module User`s Manual

Transcript
8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION
MELSEC-Q
8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION
This chapter explains programming for executing the slave function.
When applying the program examples introduced in this chapter to the actual system,
make sure to examine the applicability and confirm that it will not cause system control
problems.
8.1 System Configuration
The explanation of the programs in this chapter is based on the system shown in
Section 7.2.
Note that the transmit/receive data of the QJ71DN91 (slave node) are assigned to the
following devices.
Item
Device
Receive data
X200 to X23F
Transmit data
Y200 to Y23F
8.2 Parameters for Slave Function
POINT
To change I/O points for slave function, parameters for slave function must be set.
However, for the I/O points of the QJ71DN91 (slave node) shown in Chapter 7,
parameters for slave function need not be set because default values are used.
(1)
Buffer memory
address (Hex.)
8
8-1
Settings
The following table shows the slave function parameters that are to be set in the
program example.
For details of the slave function parameters, refer to Section 3.4.9.
For saving parameters to a flash ROM, refer to (2) in this section.
Item
Set value
060EH
Slave Function Receive-Bytes (Input Size) Setting Area
K16 (16 bytes)
060FH
Slave Function Transmit-Bytes (Output Size) Setting Area
K16 (16 bytes)
8-1