3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
73
3
CCPU_GetCpuStatus
This function acquires the operating status of a C Controller module.
■
Format
short CCPU_GetCpuStatus(long* plStatusBuf, unsigned long ulBufSize)
■
Argument
■
Description
• This function acquires the operating status of a C Controller module, 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.)
■
Return value
■
Relevant function
Argument
Name
Description
IN/OUT
plStatusBuf
Operating status storage
destination
Specify the storage destination of the operating status.
OUT
ulBufSize
Operating status storage
destination size
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.)
IN
plStatusBuf
Description
Storage position
Status
plStatusBuf[0]
bit31 to 8
Reserved
bit7 to 4
Cause of STOP/PAUSE
• 0: RUN/STOP/RESET switch
• 1: Reserved
• 2: Reserved
• 3: Execution of the CCPU_Control function from a user program
• 4: Error
• 5. Remote operations
• Others: Reserved
bit3 to 0
CPU operating status
• 0: RUN state
• 1: Reserved
• 2: STOP state
• 3: PAUSE state
• Others: Reserved
plStatusBuf[1]
bit31 to 16
Reserved
bit15 to 7
Reserved
bit6
USB Mass Storage Class-compliant device
status
• 0: Inserted (mounted)
• 1: Inserted (unmounted)
• 2: Not inserted
bit5
bit4
SD memory card status
• 0: Inserted (mounted)
• 1: Inserted (unmounted)
• 2: Not inserted
bit3
bit2
Reserved
bit1
Program memory shutdown status
• 0: Shutdown not performed
• 1: Shutdown completed
bit0
Data memory shutdown status
• 0: Shutdown not performed
• 1: Shutdown completed
plStatusBuf[2]
bit31 to 0
Index value for number of data memory
write cycle
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Содержание MELSEC iQ-R C
Страница 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Страница 2: ......
Страница 201: ...I 199 MEMO ...
Страница 203: ...I 201 MEMO ...
Страница 207: ......