95
Maintenance API Functions
Section 4-7
The correct value for the Master node address is stored when bit 12 or bit 13
turns ON.
Bits 2 and 3 indicate Slave function errors. When either bit 2 or 3 turns ON, bit
3 of the scanner status obtained using SCAN_GetScannerStatus() turns ON.
Check that bits 14 or 15 is ON before performing I/O data I/O processing
using the Slave function.
4-7-2
Error Log Access Service API Functions
ERROR_TIME Structure
This structure defines the format of the error time stamp data.
This structure is used within the ERROR_INFO structure and in the
SCAN_GetErrorLog() function.
ERROR_INFO Structure
This structure defines the format of the error log data.
This structure is used within the ERROR_LOG structure and in the
SCAN_GetErrorLog() function.
ERROR_LOG Structure
This structure consolidates all of the error log data. It is used with the
SCAN_GetErrorLog() function.
Reading an Error Log: SCAN_GetErrorLog()
Application Range
Open status
Function
Reads the error log from the specified Board.
Call Format
BOOL SCAN_GetErrorLog(DWORD
Handle
, ERROR_LOG *
Log
)
Arguments
Return Value
TRUE is returned if the error log was read successfully from the specified
Board. FALSE is returned if an error occurred. Detailed error information can
be read with the GetLastError() function.
Type
Name
Contents (BCD)
BYTE
Second
Second when error occurred
BYTE
Minute
Minute when error occurred
BYTE
Hour
Hour when error occurred
BYTE
Day
Day when error occurred
BYTE
Month
Month when error occurred
BYTE
Year
Year when error occurred
Type
Name
Contents
WORD
ErrorCode
Error code
WORD
DetailCode
Detail code
ERROR_TIME
Time
Time when error occurred
Type
Name
Contents
WORD
ErrorCount
Number of error records contained in the error log
ERROR_INFO
ErrorInfo[64]
Error log information
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
ERROR_LOG *
Log
Buffer address for receiving the error log data.
Summary of Contents for DeviceNet 3G8F7-DRM21-E
Page 1: ...OPERATION MANUAL Cat No W381 E1 02 3G8F7 DRM21 E DeviceNet PCI Board ...
Page 2: ...3G8F7 DRM21 E DeviceNet PCI Board Operation Manual Revised July 2005 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 29: ...12 Preparation for Operation Section 1 8 ...
Page 67: ...50 PC Watchdog Timer Management Function Section 3 11 ...
Page 115: ...98 Maintenance API Functions Section 4 7 ...
Page 131: ...114 Remote I O Communications Characteristics Section 6 1 ...
Page 145: ...Index 128 ...
Page 147: ...130 Revision History ...