Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 98

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

Advertisement

CCPU_ToBuf_ISR
Writes data to the buffer memory of a MELIPC.
Format
short CCPU_ToBuf_ISR(unsigned short usIoNo, unsigned long ulOffset, unsigned long ulSize, unsigned short* pusDataBuf)
Argument
Argument
usIoNo
ulOffset
ulSize
pusDataBuf
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.
• If this function is executed when the operating status of the CPU is not RUN, an error occurs.
• Do not execute this function in a routine other than an interrupt routine.
• If data is written to the same CPU buffer memory (host CPU) from a routine other than the interrupt routine,
the output value may be intermingled, resulting in an invalid value. Manage resources so data is not written
to the same CPU buffer memory (host CPU).
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 nonexistent CPU buffer memory.
Do not specify nonexistent buffer memory.
Return value
Return value
0(0000H)
-28158(9202H)
-28640(9020H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 82 CCPU_FromBuf_ISR
3 DETAILS OF FUNCTIONS
96
3.2 C Controller Module Dedicated Functions (for ISR)
Name
Module position
Offset
Data size
Data storage destination
Description
Normal
WDT error
STOP error
Description
Specify 0x03E0.
Specify the offset in word units.
Specify the write data size in word units.
Specify the storage destination of write data.
IN/OUT
IN
IN
IN
IN

Advertisement

Table of Contents
loading

Table of Contents