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

Controller module
Table of Contents

Advertisement

CCPU_GetConstantProcessStatus
This function acquires the fixed cycle processing status of C Controller module.
Format
short CCPU_GetConstantProcessStatus(unsigned short * pusStatusBuf, unsigned long ulBufSize)
Argument
Argument
Name
pusStatusBuf
Fixed cycle processing status
storage destination
ulBufSize
Fixed cycle processing status
storage destination size
Description
• This function acquires the fixed cycle processing status of C Controller module and stores it in the fixed cycle processing
status storage destination (pusStatusBuf).
• It also acquires the information for the size specified to the fixed cycle processing status storage destination size
(ulBufSize).
• The information to be stored in the fixed cycle processing status storage destination (pusStatusBuf) is as follows.
pusStatusBuf
pusStatusBuf[0]
pusStatusBuf[1]
pusStatusBuf[2]
pusStatusBuf[3]
pusStatusBuf[4]
pusStatusBuf[5]
pusStatusBuf[6]
*1 The fixed cycle processing includes the refresh processing with network modules, the reset processing of watchdog timer, and the self-
diagnostic processing. For details on the functions, refer to the following:
MELSEC iQ-R C Controller Module User's Manual
Return value
Return value
0 (0000H)
Other than 0
Relevant function
• Page 105 CCPU_GetErrInfo
3 DETAILS OF FUNCTION
98
3.1 C Controller Module Dedicated Functions
Description
Specify the fixed cycle processing status storage destination.
Specify the fixed cycle processing status storage destination size in word units.
(When '0' is specified, this function ends normally without processing.)
Description
Fixed cycle processing cycle [ms] (setting value)
Current fixed cycle processing time [ms]
Current fixed cycle processing time [μs]
Minimum fixed cycle processing time [ms]
Minimum fixed cycle processing time [μs]
Maximum fixed cycle processing time [ms]
Maximum fixed cycle processing time [μs]
Description
Normal
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
*1
IN/OUT
OUT
IN

Advertisement

Table of Contents
loading

Table of Contents