Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 57

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

Advertisement

CCPU_ReadSharedMemory
Reads data from the shared memory of a MELIPC.
Format
short CCPU_ReadSharedMemory(unsigned long ulOffset, unsigned long ulSize, unsigned char* pucDataBuf, unsigned long
ulBufSize)
Argument
Argument
Name
ulOffset
Offset
ulSize
Data size
pucDataBuf
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
shared memory, and then stores it in the data storage destination (pusDataBuf).
• The size of the shared memory area is 256 MB (268,435,456 bytes (10000000H)). Specify the offset (ulOffset) and data
size (ulSize) so that data in the shared memory area is read.
• 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)
-375(FE89H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 81 CCPU_WriteSharedMemory
Description
Specify the offset in byte units.
Specify the read data size in byte units.
Specify the storage destination of read data.
Specify the data storage destination size in byte units.
Description
Normal
Offset error
Memory size specification error
Read area size error
Pointer error
Shared memory access error
3 DETAILS OF FUNCTIONS
3.1 C Controller Module Dedicated Functions
3
IN/OUT
IN
IN
OUT
IN
55

Advertisement

Table of Contents
loading

Table of Contents