Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 77

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

Advertisement

CCPU_ToBuf
Writes data to the buffer memory of a MELIPC.
Format
short CCPU_ToBuf(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
• Writes data of the data storage destination (pusDataBuf) of the data size (ulSize) to the address moved by the amount of
the offset (ulOffset) from the start of the buffer memory.
• When "0" was specified for the data size (ulSize), a memory size specification error occurs.
• If this function is executed when the operating status of the MELIPC is not RUN, a STOP error occurs.
Return value
Return value
0(0000H)
-208(FF30H)
-209(FF2FH)
-264(FEF8H)
-28158(9202H)
-28632(9028H)
-28640(9020H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 37 CCPU_FromBuf
Description
Specify 0x03E0.
Specify the offset in word units.
Specify the write data size in word units.
Specify the storage destination of write data.
Specify '0'.
Description
Normal
Offset error
Memory size specification error
Pointer error
WDT error
Module position specification error
STOP error
3 DETAILS OF FUNCTIONS
3.1 C Controller Module Dedicated Functions
3
IN/OUT
IN
IN
IN
IN
IN
75

Advertisement

Table of Contents
loading

Table of Contents