Mitsubishi Electric MELSEC iQ-R C Programming Manual page 77

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

CCPU_GetErrInfo
This function acquires the error information of a C Controller module.
■Format
short CCPU_GetErrInfo(unsigned short* pusErrorInfo, unsigned long ulBufSize)
■Argument
Argument
Name
pusErrorInfo
Error information storage
destination
ulBufSize
Error information storage
destination size
■Description
• This function acquires the error information of a C Controller module, and stores it in the error information storage
destination (pusErrorInfo).
• It also acquires the information for the size specified to the error information storage destination size (ulBufSize).
• The information to be stored in the error information storage destination (pusErrorInfo) is as follows.
pusErrorInfo
Description
pusErrorInfo[0]
Self-diagnostics error code 1
pusErrorInfo[1]
Self-diagnostics error code 2
pusErrorInfo[2]
Self-diagnostics error code 3
pusErrorInfo[3]
Self-diagnostics error code 4
pusErrorInfo[4]
Self-diagnostics error code 5
pusErrorInfo[5]
Self-diagnostics error code 6
pusErrorInfo[6]
Self-diagnostics error code 7
pusErrorInfo[7]
Self-diagnostics error code 8
pusErrorInfo[8]
Self-diagnostics error code 9
pusErrorInfo[9]
Self-diagnostics error code 10
pusErrorInfo[10]
Self-diagnostics error code 11
pusErrorInfo[11]
Self-diagnostics error code 12
pusErrorInfo[12]
Self-diagnostics error code 13
pusErrorInfo[13]
Self-diagnostics error code 14
pusErrorInfo[14]
Self-diagnostics error code 15
pusErrorInfo[15]
Self-diagnostics error code 16
Up to 16 error codes for errors occurred in the self-diagnostics are stored in order from pusErrorInfo[0]. The
error code which has already been stored is not stored.
■Return value
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Page 174 ERROR CODE LIST
■Relevant function
• Page 50 CCPU_ClearError
Description
Specify the error information storage destination .
Specify the error information storage destination size in word units.
(When '0' is specified, this function ends normally without processing.)
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
IN/OUT
3
OUT
IN
75

Advertisement

Table of Contents
loading

Table of Contents