90
Maintenance API Functions
Section 4-7
The status obtained using this function is not required for control, but is useful
for determining whether or not a communications error originated in the net-
work.
Reading Scanner Status: SCAN_GetScannerStatus()
Application Range
Open status
Function
Gets the scanner status.
Call Format
BOOL SCAN_GetScannerStatus(DWORD
Handle
, DWORD *
Status
)
Arguments
Return Value
TRUE is returned if the specified Board’s scanner status was read success-
fully. FALSE is returned if an error occurred. Detailed error information can be
read with the GetLastError() function.
Description
The following table shows the location and meaning of the scanner status
flags. The flags are contained within 32 bits.
Monitor scanner status bit 0 to check if errors have occurred when using Mas-
ter or Slave functions to perform I/O communications.
Bits 0 to 13 notify if errors have occurred. Bit 0 is an OR of bits 1 to 13.
Bit 1 turns ON if an error occurs with the Master function. Bit 1 is an OR of bits
0 and 2 of the Master function status obtained using SCAN_Get
MasterModeStatus().
Bit 3 turns ON if an error occurs with the Slave function. Bit 3 is an OR of bits
2 and 3 of the Slave function status obtained using SCAN_Get
SlaveModeStatus().
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
DWORD *
Status
Buffer address for receiving the status.
Bit
Code
Meaning
0
B00
Scanner function error occurred
1
B01
Master function error occurred
2
---
Not used
3
B03
Slave function error occurred
4
B04
Memory error
5
B05
Bus off error
6
B06
MAC ID duplication error
7
B07
Network power supply error
8
B08
Transmission timeout error
9 to 12
---
Not used
13
B13
Invalid message monitoring timer
14 and 15
---
Not used
16
B16
Online
17
B17
Scanning (I/O communications being executed)
18 to 20
---
Not used
21
B21
Slave function enabled mode
22
B22
Automatic setting of Slave scan type
23 to 30
---
Not used
31
B31
Error log in use
Содержание DeviceNet 3G8F7-DRM21-E
Страница 1: ...OPERATION MANUAL Cat No W381 E1 02 3G8F7 DRM21 E DeviceNet PCI Board ...
Страница 2: ...3G8F7 DRM21 E DeviceNet PCI Board Operation Manual Revised July 2005 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 29: ...12 Preparation for Operation Section 1 8 ...
Страница 67: ...50 PC Watchdog Timer Management Function Section 3 11 ...
Страница 115: ...98 Maintenance API Functions Section 4 7 ...
Страница 131: ...114 Remote I O Communications Characteristics Section 6 1 ...
Страница 145: ...Index 128 ...
Страница 147: ...130 Revision History ...