Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 90

Vxworks
Hide thumbs Also See for MELIPC MI5000 Series:
Table of Contents

Advertisement

CCPU_ReadLinkDevice_ISR
Reads data from link devices of CC-Link IE Field Network.
Format
short CCPU_ReadLinkDevice_ISR(unsigned short usIoNo, short sDevType, unsigned long ulDevNo, unsigned long ulSize,
unsigned short* pusDataBuf, unsigned long ulBufSize)
Argument
Argument
usIoNo
sDevType
ulDevNo
ulSize
pusDataBuf
ulBufSize
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), 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).
Do not execute this function in a routine other than an interrupt routine.
Warning
• If any function to which an invalid argument is specified is executed, an error such as hardware failure (3C02H) may occur
on the MELIPC.
• This function does not check the specified arguments.
Pay attention to the following points when creating a program.
Assure a read data area of the read word count.
Do not specify a device outside of the range.
Return value
Return value
0(0000H)
Relevant function
Page 98 CCPU_WriteLinkDevice_ISR
3 DETAILS OF FUNCTIONS
88
3.2 C Controller Module Dedicated Functions (for ISR)
Name
Module position
Device type
Start device number
Data size
Data storage destination
Data storage destination size
Description
Normal
Description
Specify 0x03E0.
Specify the device type.
Page 8 Device type
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.
IN/OUT
IN
IN
IN
IN
OUT
IN

Advertisement

Table of Contents
loading

Table of Contents