3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
69
3
CCPU_GetCCIEFBDiagnosticInfo
This function acquires the diagnostic information of CC-Link IE Field Network Basic.
■
Format
short CCPU_GetCCIEFBDiagnosticInfo (unsigned short usSlave, short* psStatusBuf, unsigned long ulBufSize)
■
Argument
■
Description
• This function acquires CC-Link IE Field Network Basic information of the slave station specified to the slave station number
(usSlave), and stores it to the diagnostic information storage destination (psStatusBuf).
• It also acquires the information for the size specified to the diagnostic information storage destination size (ulBufSize).
• The information to be stored to the diagnostic information storage destination (psStatusBuf) is as follows.
■
Return value
Argument
Name
Description
IN/OUT
usSlave
Slave station number
Specify a slave station to acquire diagnostic information. (1 to 64)
IN
psStatusBuf
Diagnostic information storage
destination
Specify a storage destination for diagnostic information.
OUT
ulBufSize
Diagnostic information storage
destination size
Specify the size of the area which is reserved in the diagnostic information storage
destination in word units.
IN
psStatusBuf
Description
psStatusBuf[0]
Diagnostic information status flag
Diagnostic information status (valid or invalid) of the specified slave
station
b0 to b7: Status of diagnostic information 1
b8 to b15: Status of diagnostic information 2
• 0: Invalid
• 1: Valid
psStatusBuf[1]
Diagnostic
information 1
Number of occupied stations
Number of occupied stations of the specified slave station
psStatusBuf[2]
Group No.
Group number of the specified slave station
psStatusBuf[3]
IP address (lower)
IP address (lower) of the specified slave station
psStatusBuf[4]
IP address (upper)
IP address (upper) of the specified slave station
psStatusBuf[5] to psStatusBuf[10]
Reserved
psStatusBuf[11]
Accumulated number of
timeouts
Accumulated number of timeouts of the specified slave station
psStatusBuf[12]
Accumulated number of
disconnection detections
Accumulated number of disconnection detections of the specified
slave station
psStatusBuf[13] to psStatusBuf[15]
Reserved
psStatusBuf[16]
Diagnostic
information 2
Manufacturer code
Manufacturer code of the specified slave station
psStatusBuf[17]
Reserved
psStatusBuf[18]
Model code (lower)
Model code (lower) of the specified slave station
psStatusBuf[19]
Model code (upper)
Model code (upper) of the specified slave station
psStatusBuf[20]
Device version
Device version of the specified slave station
psStatusBuf[21]
Reserved
psStatusBuf[22]
Module information
Module information of the specified slave station
psStatusBuf[23]
Error code
Error code of the latest error occurred on the specified slave station
psStatusBuf[24]
Detailed module information
(lower)
Detailed module information (lower) of the specified slave station
psStatusBuf[25]
Detailed module information
(upper)
Detailed module information (upper) of the specified slave station
psStatusBuf[26] to psStatusBuf[32]
Reserved
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Summary of Contents for MELSEC iQ-R C
Page 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Page 2: ......
Page 201: ...I 199 MEMO ...
Page 203: ...I 201 MEMO ...
Page 207: ......