Ccpu_Frombuf - Mitsubishi Electric MELIPC MI5000 Series Programming Manual

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

Advertisement

CCPU_FromBuf

Reads data from the buffer memory of a MELIPC.
Format
short CCPU_FromBuf(unsigned short usIoNo, unsigned long ulOffset, unsigned long ulSize, unsigned short* pusDataBuf,
unsigned long ulBufSize)
Argument
Argument
Name
usIoNo
Module position
ulOffset
Offset
ulSize
Data size
pusDataBuf
Data storage destination
ulBufSize
Data storage destination size
Description
• Reads data of the data size (ulSize) from an address moved by the amount of the offset (ulOffset) from the start of the
buffer memory, and then stores it in the data storage destination (pusDataBuf).
• When "0" was specified for the data size (ulSize), a memory size specification error occurs.
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)
-208(FF30H)
-209(FF2FH)
-210(FF2EH)
-264(FEF8H)
-28158(9202H)
-28632(9028H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 75 CCPU_ToBuf
Description
Specify 0x03E0.
Specify the offset in word units.
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
Offset error
Memory size specification error
Read area size error
Pointer error
WDT error
Module position specification error
3 DETAILS OF FUNCTIONS
3.1 C Controller Module Dedicated Functions
3
IN/OUT
IN
IN
IN
OUT
IN
37

Advertisement

Table of Contents
loading

Table of Contents