Ccpu_Getcpustatus - Mitsubishi Electric MELIPC MI5000 Series Programming Manual

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

Advertisement

CCPU_GetCpuStatus

Acquires the operating status of a MELIPC.
Format
short CCPU_GetCpuStatus(long* plStatusBuf, unsigned long ulBufSize)
Argument
Argument
plStatusBuf
ulBufSize
Description
• This function acquires the operating status of a MELIPC, and stores it to the operating status storage destination
(plStatusBuf).
• It also acquires the information for the size specified to the operating status storage destination size (ulBufSize).
• The information to be stored in the operating status storage destination (plStatusBuf) is as follows.
(If information to be stored is not supported, '0' is set as its status.)
plStatusBuf
plStatusBuf[0]
plStatusBuf[1]
plStatusBuf[2]
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
42
3.1 C Controller Module Dedicated Functions
Name
Operating status storage
destination
Operating status storage
destination size
Description
Storage position
bit31-8
Reserved
bit7-4
STOP cause
bit3-0
MELIPC operating status
bit31-16
Reserved
bit15-9
Reserved
bit8
CFast card status
bit7
Windows part shutdown status
bit6-1
Reserved
bit0
User drive shutdown status
bit31-0
Reserved
Description
Normal
Pointer error
Description
Specify the storage destination of the operating status.
Specify the size of area reserved in the operating status storage destination
in double word units.
(When '0' is specified, this function ends normally without processing.)
Status
0: STOP/MAIN RUN switch
1: Execution of the CCPU_Control function from a user
program
2: Error
3: Remote operation
Others: Reserved
0: RUN state
1: Reserved
2: STOP state
3: Reserved
Others: Reserved
0: Inserted
1: Not inserted
0: Operating
1: Stopping, preparing, or shutting down
0: Shutdown not performed
1: Shutdown completed
IN/OUT
OUT
IN

Advertisement

Table of Contents
loading

Table of Contents