91
Maintenance API Functions
Section 4-7
Reading Master Function Status: SCAN_GetMasterModeStatus()
Application Range
Open status
Function
Gets the Master function status.
Call Format
BOOL SCAN_GetMasterModeStatus(DWORD
Handle
, WORD *
Status
)
Arguments
Return Value
TRUE is returned if the specified Board’s Master function status was read suc-
cessfully. 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 Master function
status flags. The flags are contained in 16 bits.
Bit 15 indicates that the node has started I/O communications as the Master.
Execute I/O data I/O processing with Slaves only after checking the status of
each Slave using SCAN_GetSlaveDeviceStatus().
Check verification error details for each Slave using SCAN_Get
SlaveDeviceStatus().
Bits 0 and 2 indicate Master function errors. When either bit 0 or 2 turn ON, bit
1 of the scanner status obtained using SCAN_GetScannerStatus() will turn
ON.
Reading Slave Detailed Status: SCAN_GetSlaveDeviceStatus()
Application Range
Open status
Function
Gets the specified Slave’s detailed status.
Call Format
BOOL SCAN_GetSlaveDeviceStatus(DWORD
Handle
, WORD
MacId
, WORD
*
Status
)
Arguments
Return Value
TRUE is returned if the specified Slave’s device status was read successfully.
FALSE is returned if an error occurred. Detailed error information can be read
with the GetLastError() function.
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD *
Status
Buffer address for receiving the status.
Bit
Code
Meaning
0
B00
Verification error
1
---
Not used
2
B02
I/O communications error
3 to 14
---
Not used
15
B15
I/O communications in progress
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
MacId
Node address for reading detailed Slave status.
Setting range: 0x00 to 0x3F (0 to 63)
WORD *
Status
Buffer address for receiving status.
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 ...