63
Master Function API Functions
Section 4-4
The I/O data for Slaves registered using this function will be output data 1 and
input data 1.
Reading a Scan List Slave: SCAN_GetSlaveDevice()
Application Range
Open status
Function
Reads Slave information registered in the scan list.
Call Format
BOOL SCAN_GetSlaveDevice(DWORD
Handle
, WORD,
MacId
, WORD*
Out-
size
, WORD*
Insize
)
Arguments
Return Value
TRUE is returned if the specified Slave information was successfully read
from the scan list. FALSE is returned if an error occurred. Detailed error infor-
mation can be read with the GetLastError() function.
Description
When this function is completed, the output data size and input data size
(both in bytes, between 0 and 200) will be stored in the buffer at the specified
addresses.
Removing a Slave from the Scan List: SCAN_RemoveDevice()
Application Range
Open status
Function
Deletes the specified Slave’s registration information from the scan list.
Call Format
BOOL SCAN_RemoveDevice(DWORD
Handle
, WORD
MacId
)
Arguments
Return Value
TRUE is returned if the specified Slave was successfully removed from the
scan list. FALSE is returned if an error occurred. Detailed error information
can be read with the GetLastError() function.
Clearing the Scan List: SCAN_ClearScanlist()
Application Range
Open status
Function
Deletes the scan list as a group.
Call Format
BOOL SCAN_ClearScanlist(DWORD
Handle
)
Arguments
Return Value
TRUE is returned if the specified Board’s scan list was deleted 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
MacId
Node address for obtaining Slave information.
Setting range: 0x00 to 0x3F (0 to 63)
WORD
Outsize
Buffer address for receiving output data size.
WORD
Insize
Buffer address for receiving input data size.
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
MacId
Slave’s node address
Setting range: 0x00 to 0x3F (0 to 63)
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
Содержание 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 ...