36
3 DETAILS OF FUNCTION
3.1 C Intelligent Function Module Dedicated Functions
CITL_GetErrInfo
This function acquires the error information of a C intelligent function module.
■ Format
short CITL_GetErrInfo(unsigned short* pusErrorInfo, unsigned long ulBufSize)
■ Argument
■ Description
• This function acquires the error information of a C intelligent function 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.
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
■ Relevant function
Page 23 CITL_ClearError
Argument Name Description IN/OUT
pusErrorInfo Error information storage destination Specify the error information storage destination. OUT
ulBufSize Error information storage destination
size
Specify the error information storage destination size in word units.
(When '0' is specified, this function ends normally without processing.)
IN
Storage position 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
Return value Description
0 (0000H) Normal
Other than 0 (0000H) Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST