5
ACCESS VIA NETWORK MODULES
5.4
CC-Link IE Controller Network Module Access Function
The CC-Link IE controller network module access function allows access to each station,
programmable controller CPU on another station, or a C Controller module connected to
the CC-Link IE controller network via a CC-Link IE controller network module.
In a multiple CPU system configuration, access cannot be made via a CC-Link IE
controller network module controlled by another CPU.
To create user programs of the C Controller module, use MELSEC data link functions or
bus interface functions.
<Example>
/* Reads device data of the other station programmable controller CPU */
ret = mdReceive(path, stno, devtyp, devno, size, data);
Message
/* Sends a message to the other station via CC-Link IE controller network */
ret = QBF_SEND(path, usIoNo, psControlData, pusDataBuf,
or
ret = mdSend(path, stno, devtyp, devno, size, data);
/* Receives a message from the other station via CC-Link IE controller network */
ret = QBF_RECV(path, usIoNo, psControlData, pusDataBuf,
or
ret = mdReceive(path, stno, devtyp, devno, size, data);
C Controller module
Link device access
/* Writes data to the link device*/
ret = QBF_WriteLinkDevice(path, usIoNo, sDevType,
ulSize, pusDataBuf, ulBufSize);
or
ret = mdSend(path, stno, devtyp, devno, size, data);
ret = mdRandW(path, stno, dev, buf,bufsize);
ret = mdDevSet(path, stno, devtyp, devno);
ret = mdDevRst(path, stno, devtyp, devno):
/* Reads data from the link device*/
ret = QBF_ReadLinkDevice(path, usIoNo, sDevType,
ulSize, pusDataBuf, ulBufSize);
or
ret = mdReceive(path, stno, devtyp, devno, size, data);
ret = mdRandR(path, stno, dev, buf,bufsize);
5
- 38
5.4 CC-Link IE Controller Network Module Access Function
C Controller module
ulBufSize, psAddinfo);
ulBufSize, psAddinfo);
C Controller module
2)
Figure 5.37 CC-Link IE controller network access function
Q12DCCPU-V
1)
CC-Link IE controller network
Internal
buffer
C Controller module
2)
Link
device
CC-Link IE controller network module
1) Sends or receives a message to or from another station via a
CC-Link IE controller network module.
2) Writes or reads data to or from link devices.
3) Reads data of the programmable controller CPU of another
station.
Q06CCPU-V
Q06CCPU-V-B
Programmable
controller CPU
3)
Device data