Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 103

Controller module
Table of Contents

Advertisement

CCPU_GetCpuStatus
This function acquires the operating status of a C Controller module.
Format
short CCPU_GetCpuStatus(long* plStatusBuf, unsigned long ulBufSize)
Argument
Argument
Name
plStatusBuf
Operating status storage
destination
ulBufSize
Operating status storage
destination size
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.)
plStatusBuf
Description
Storage position
plStatusBuf[0]
bit31 to 8
bit7 to 4
bit3 to 0
plStatusBuf[1]
bit31 to 16
bit15 to 7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
plStatusBuf[2]
bit31 to 0
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.)
Reserved
Cause of STOP/PAUSE
CPU operating status
Reserved
Reserved
USB Mass Storage Class-compliant device
status
SD memory card status
Reserved
Program memory shutdown status
Data memory shutdown status
Index value for number of data memory
write cycle
Status
• 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
• 0: RUN state
• 1: Reserved
• 2: STOP state
• 3: PAUSE state
• Others: Reserved
• 0: Inserted (mounted)
• 1: Inserted (unmounted)
• 2: Not inserted
• 0: Inserted (mounted)
• 1: Inserted (unmounted)
• 2: Not inserted
• 0: Shutdown not performed
• 1: Shutdown completed
• 0: Shutdown not performed
• 1: Shutdown completed
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
3
IN/OUT
OUT
IN
101

Advertisement

Table of Contents
loading

Table of Contents