14
COMMUNICATIONS BETWEEN CPU MODULES
14.1 Data Communications by MELSEC Data Link Functions
14 - 2
9
UTILITY OPERATION
10
FUNCTIONS AND
PROGRAMMING
11
OVERVIEW OF
MULTIPLE CPU
SYSTEM
12
MULTIPLE CPU
SYSTEM
CONFIGURATION
13
MULTIPLE CPU
SYSTEM
CONCEPT
14
COMMUNICATIONS
BETWEEN CPU
MODULES
15
PARAMETERS
ADDED FOR
MULTIPLE CPU
16
PRECAUTIONS FOR
USE OF AnS SERIES
MODULE
14.1 Data Communications by MELSEC Data Link Functions
(1) Data communications by MELSEC data link functions
Access can be made from the C Controller module to the programmable controller
CPU device data.
Use the MELSEC data link functions to create the user program of the C Controller
module.
(2) Functions
The following MELSEC data link functions are used for data communications.
Remark
Refer to Chapter 10 for details of the MELSEC data link functions.
Figure 14.1 Data communications by MELSEC data link functions
Table14.2 Functions used for Data communications by MELSEC data link functions
Function name Function
mdOpen Opens the communication line.
mdClose Closes the communication line.
mdSend Batch-writes device data.
mdReceive Batch-reads device data.
mdRandW Random-writes device data.
mdRandR Random-reads device data.
mdDevSet Sets bit devices.
mdDevRst Resets bit devices.
Programmable
controller CPU
Device data
C Controller module
/*Reads the device data of the programmable controller CPU */
ret = mdReceive(path, stno, devtyp, devno, size, data);
/*Writes data to the programmable controller CPU device */
ret = mdSend(path, stno, devtyp, devno, size, data);
2)
1) Reads the device data of the programmable
controller CPU to the C Controller module.
1)
2) Writes data from the C Controller module
to the programmable controller CPU device.