70
Master Function API Functions
Section 4-4
ACTUAL_SLAVE_INFO Structure
This structure stores information obtained when reading information about the
Slaves connected to the network. This structure is used in the SCAN_Get
ActualSlaveDevice() function.
Reading Slave Information: SCAN_GetActualSlaveDevice()
Application Range
I/O communications execution status
Function
Reads information about the specified Slave.
Call Format
BOOL SCAN_GetActualSlaveDevice(DWORD
Handle
, WORD
MacId
,
ACTUAL_SLAVE_INFO*
SlaveInfo
)
Arguments
Return Value
TRUE is returned if the Slave information was read successfully. FALSE is
returned if an error occurred. Detailed error information can be read with the
GetLastError() function.
Description
This function gets information from Slaves connected to the network.
Information can even be obtained for Slaves with verification errors.
Type
Name
Contents
WORD
VendorID
Vendor ID
Scan list disabled mode:0xFFFF (65535)
No Slaves connected:0xFF00 (65280)
WORD
ProductType
Product type
Scan list disabled mode:0xFFFF (65535)
No Slaves connected:0xFF00 (65280)
WORD
ProductCode
Product code
Scan list disabled mode:0xFFFF (65535)
No Slaves connected:0xFF00 (65280)
WORD
ScanType
WORD
Output1
Size of output data 1 in bytes
No Slaves connected: 0xFF00 (65280)
WORD
Input1
Size of input data 1 in bytes
No Slaves connected: 0xFF00 (65280)
WORD
Output2
Size of output data 2 in bytes
Two I/O connections not set: 0
×
000 (0)
No slaves connected: 0
×
FF00 (65280)
WORD
Input2
Size of input data 2 in bytes
Two I/O connections not set: 0
×
000 (0)
No slaves connected: 0
×
FF00 (65280)
Scan type
0x8000 (32768) for automatic selection
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Reserved
CY
BS: Bit Strobe
CY: Cyclic
COS
BS
Poll
Reserved
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
MacId
Node address of the Slave whose information is
being read
ACTUAL_SLAVE_
INFO*
SlaveInfo
Buffer address for receiving slave information
Slave information is stored to the buffer address
specified here when the function is completed.
Содержание 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 ...