Mitsubishi Electric MELSEC iQ-R C Programming Manual page 92

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

CCPU_ReadLinkDevice
This function reads data from the own station link devices of CC-Link IE Controller Network module, CC-Link IE Field Network
module, Ethernet module (when CC-Link IE Field Network is selected), and MELSECNET/H network module.
■Format
short CCPU_ReadLinkDevice (unsigned short usIoNo, short sDevType, unsigned long ulDevNo, unsigned long ulSize,
unsigned short* pusDataBuf, unsigned long ulBufSize)
■Argument
Argument
Name
usIoNo
Module position
sDevType
Device type
ulDevNo
Start device number
ulSize
Data size
pusDataBuf
Data storage destination
ulBufSize
Data storage destination size
■Description
This function reads data in a device after one specified to the device type (sDevType) and the start device number (ulDevNo)
for the size specified to the data size (ulSize) from a CC-Link IE Controller Network module, CC-Link IE Field Network
module, Ethernet module (when CC-Link IE Field Network is selected), and MELSECNET/H network module which are
specified to the module position (usIoNo), and stores it in the data storage destination (pusDataBuf).
Precautions
Note that the size of data storage destination (ulBufSize) should be equal to or bigger than the data size (ulSize).
■Return value
Return value
0 (0000H)
Other than 0
■Relevant function
• Page 118 CCPU_WriteLinkDevice
3 DETAILS OF FUNCTION
90
3.1 C Controller Module Dedicated Functions
Description
Specify the module position as follows.
Start I/O number divided by 16 (0H to FFH)
Specify the device type.
Page 9 Argument specification
Specify the start device number.
(Only multiples of 16 can be specified for bit devices.)
Specify the read data size in word units.
Specify the storage destination of read data.
Specify the data storage destination size in word units.
Description
Normal
Error
For details on the error, refer to the following chapter.
Page 174 ERROR CODE LIST
IN/OUT
IN
IN
IN
IN
OUT
IN

Advertisement

Table of Contents
loading

Table of Contents