Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 83

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

Advertisement

CCPU_WriteSharedMemory
Writes data to the shared memory of a MELIPC.
Format
short CCPU_WriteSharedMemory(unsigned long ulOffset, unsigned long ulSize, unsigned char* pucDataBuf)
Argument
Argument
Name
ulOffset
Offset
ulSize
Data size
pucDataBuf
Data storage destination
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).
• When "0" was specified for the data size (ulSize), a memory size specification error occurs.
• 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 written.
Return value
Return value
0(0000H)
-208(FF30H)
-209(FF2FH)
-227(FF1DH)
-264(FEF8H)
-375(FE89H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 55 CCPU_ReadSharedMemory
Description
Specify the offset in word units.
Specify the write data size in byte units.
Specify the storage destination of write data.
Description
Normal
Offset error
Memory size specification error
Control code send error
Pointer error
Shared memory access error
3 DETAILS OF FUNCTIONS
3.1 C Controller Module Dedicated Functions
3
IN/OUT
IN
IN
IN
81

Advertisement

Table of Contents
loading

Table of Contents