84
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
CCPU_GetSwitchStatus
This function acquires the switch status of a C Controller module.
■
Format
short CCPU_GetSwitchStatus(long* plStatusBuf, unsigned long ulBufSize)
■
Argument
■
Description
• This function acquires the switch status of a C Controller module, 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.
■
Return value
Argument
Name
Description
IN/OUT
plStatusBuf
Switch status storage destination
Specify the switch status storage destination.
OUT
ulBufSize
Switch status storage destination
size
Specify the switch status storage destination size in double word units.
(When '0' is specified, this function ends normally without processing.)
IN
plStatusBuf
Description
Storage position
Status
plStatusBuf[0]
bit31-6
Reserved
bit5-3
MODE/SELECT switch status
• 000: MODE state
• 010: NEUTRAL state
• 100: SELECT state
• Others: Reserved
bit2-0
RUN/STOP/RESET switch status
• 000: RESET state
• 010: STOP state
• 100: RUN state
• Others: Reserved
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Summary of Contents for MELSEC iQ-R C
Page 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Page 2: ......
Page 201: ...I 199 MEMO ...
Page 203: ...I 201 MEMO ...
Page 207: ......