Melsecnet/H Module Access Function - Mitsubishi MELSEC-Q Series User Manual

C controller module
Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

4
FUNCTIONS

4.4 MELSECNET/H Module Access Function

The MELSECNET/H module access function allows access to C Controller modules and
programmable controller CPUs of other stations connected to the MELSECNET/H via a
MELSECNET/H module controlled by the C Controller module.
Create the user programs of the C Controller module using the 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 MELSECNET/H */
ret = QBF_SEND(path, usIoNo, psControlData, pusDataBuf,
or
ret = mdSend(path, stno, devtyp, devno, size, data);
/* Receives a message from the other station via MELSECNET/H */
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);
4
- 15
4.4 MELSECNET/H Module Access Function
C Controller module
ulBufSize, psAddinfo);
ulBufSize, psAddinfo);
C Controller module
2)
Internal
buffer
C Controller module
2)
MELSECNET/H module
1) Sends/receives a message to/from the other station via the
MELSECNET/H module.
2) Writes/reads data to/from the link device
3) Reads the data of the other station programmable controller
CPU.
Figure 4.11 MELSECNET/H access function
3)
1)
MELSECNET/H
1)
Host personal computer
Link
(MELSECNET/H board)
device
Programmable
controller CPU
Device data

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q06ccpu-v-h01

Table of Contents