Ccpu_Getpowerstatus - Mitsubishi Electric MELIPC MI5000 Series Programming Manual

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

Advertisement

CCPU_GetPowerStatus

Acquires the power supply status of a MELIPC.
Format
short CCPU_GetPowerStatus(long* plStatusBuf, unsigned long ulBufSize)
Argument
Argument
plStatusBuf
ulBufSize
Description
• This function acquires the power status of a MELIPC, and stores it in the power status storage destination (plStatusBuf).
• It also acquires the information for the size specified to the power status storage destination size (ulBufSize).
• The information to be stored in the power status storage destination (plStatusBuf) is as follows.
plStatusBuf
plStatusBuf[0]
Return value
Return value
0(0000H)
-264(FEF8H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 45 CCPU_GetErrInfo
3 DETAILS OF FUNCTIONS
48
3.1 C Controller Module Dedicated Functions
Name
Power status storage destination
Power status storage destination
size
Description
Storage position
bit31-16
bit15-0
Description
Normal
Pointer error
Description
Specify the storage destination of the power status.
Specify the power status storage destination size in double word units.
(When '0' is specified, this function ends normally without processing.)
Reserved
Number of detected momentary
power failures
IN/OUT
OUT
IN
Status

Advertisement

Table of Contents
loading

Table of Contents