8 PROGRAMMING FOR EXECUTING THE SLAVE FUNCTION
8.3.2 Program example not using the utility package
I/O communication function
8 - 11
(1)
Device list
Device
M31
X21
X200 to X23F
Y31
Y200 to Y23F
(2)
Program example
Setting parameters for slave function (See Section 8.2.)
Input data processing program
Output data processing program
POINT
To ensure consistency of transmit/receive data of multiple words, take a measure
such as providing a handshake area at the end of transmit/receive data to check
the data transfer.
For the program example, refer to Section 7.1 (4).
Description
I/O Communication Start Command
I/O Communicating
Slave Function Receive Data
I/O Communication Request
Slave Function Transmit Data
MELSEC-Q
Reference
section
—
3.3.3 (2)
3.4.10
3.3.3 (2)
3.4.10
Sets initial transmit data values.
Sets I/O Communication
Request to ON.
Reads receive data.
Writes transmit data.
8 - 11