Ccpu_Getswitchstatus - Mitsubishi Electric MELIPC MI5000 Series Programming Manual

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

Advertisement

CCPU_GetSwitchStatus

Acquires the switch status of a MELIPC.
Format
short CCPU_GetSwitchStatus(long* plStatusBuf, unsigned long ulBufSize)
Argument
Argument
Name
plStatusBuf
Switch status storage destination
ulBufSize
Switch status storage destination
size
Description
• This function acquires the switch status of a MELIPC, and stores it in the switch status storage destination (plStatusBuf).
• It also acquires the information for the size specified to the switch status storage destination size (ulBufSize).
• The information to be stored in the switch 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
Description
Specify the switch status storage destination.
Specify the switch status storage destination size in double word units.
(When '0' is specified, this function ends normally without processing.)
Description
Storage position
bit31-6
bit5-3
bit2-0
Description
Normal
Pointer error
Reserved
STOP/MAIN RUN switch status
MELIPC RESET/WIN RESET switch
status
3.1 C Controller Module Dedicated Functions
IN/OUT
OUT
IN
Status
000: STOP state
100: MAIN RUN status
Others: Reserved
000: MELIPC RESET status
010: NEUTRAL state
100: WIN RESET status
Others: Reserved
3 DETAILS OF FUNCTIONS
3
51

Advertisement

Table of Contents
loading

Table of Contents