Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 99

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

Advertisement

CCPU_WriteDevice_ISR
Writes data to internal user devices and internal system devices of a MELIPC.
Format
short CCPU_WriteDevice_ISR(short sDevType, unsigned long ulDevNo, unsigned long ulSize, unsigned short* pusDataBuf)
Argument
Argument
Name
sDevType
Device type
ulDevNo
Start device number
ulSize
Data size
pusDataBuf
Data storage destination
Description
This function writes data in the data storage destination (pusDataBuf) for the size specified to the data size (ulSize) to a
device after one specified to the device type (sDevType) and the start device number (ulDevNo).
• Do not execute this function in a routine other than an interrupt routine.
• If data is written to the same device from a routine other than an interrupt routine, the output value may be
intermingled, resulting in an invalid value. Manage resources so data is not written to the same device.
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 a device outside of the range.
Return value
Return value
0(0000H)
Relevant function
Page 87 CCPU_ReadDevice_ISR
Description
Specify the device type.
Page 8 Device type
Specify the start device number.
(Only multiples of 16 can be specified for bit devices.)
Specify the write data size in word units.
Specify the storage destination of write data.
Description
Normal
3 DETAILS OF FUNCTIONS
3.2 C Controller Module Dedicated Functions (for ISR)
3
IN/OUT
IN
IN
IN
IN
97

Advertisement

Table of Contents
loading

Table of Contents