Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 100

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

Advertisement

CCPU_WriteLinkDevice_ISR
Writes data to link devices of CC-Link IE Field Network.
Format
short CCPU_WriteLinkDevice_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
Writes data in the data storage destination (pusDataBuf) for the size specified to the data size (ulSize) to the link device of
CC-Link IE Field Network after the one specified by the device type (sDevType) and the start device number (ulDevNo).
• Do not execute this function in a routine other than an interrupt routine.
• If data is written to the same device from a routine other than an interrupt routine, the output value may be
intermingled, resulting in an invalid value. Manage resources so data is not written to the same device.
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.
Specify the address for the write data as a multiple of 2.
Do not specify a device outside of the range.
Return value
Return value
0(0000H)
Relevant function
Page 88 CCPU_ReadLinkDevice_ISR
3 DETAILS OF FUNCTIONS
98
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 write data size in word units.
Specify the storage destination of write data.
Specify '0'.
IN/OUT
IN
IN
IN
IN
IN
IN

Advertisement

Table of Contents
loading

Table of Contents