![background image](http://html.mh-extra.com/html/omron/devicenet-3g8f7-drm21-e/devicenet-3g8f7-drm21-e_operation-manual_743611092.webp)
75
Slave Function API Functions
Section 4-5
Registering a Slave Scan List: SCAN_RegisterSelfSlaveDevice()
Application Range
Open status
Function
Registers Slave function information in the Slave scan list.
Call Format
BOOL SCAN_RegisterSelfSlaveDevice(DWORD
Handle
, SELF_DEV*
Devi-
ceInfo
)
Arguments
Return Value
TRUE is returned if the specified Slave information was successfully regis-
tered in the scan list. FALSE is returned if an error occurred. Detailed error
information can be read with the GetLastError() function.
Description
If connection is specified, I/O communications will automatically start if a
request to establish a connection is received from the Master after this func-
tion is completed.
Deleting a Slave Scan List: SCAN_RemoveSelfSlaveDevice()
Application Range
Open status
Function
Deletes the Slave scan list information.
Call Format
BOOL SCAN_RemoveSelfSlaveDevice(DWORD
Handle
)
Arguments
Return Value
TRUE is returned if the Slave scan list was successfully deleted. FALSE is
returned if an error occurred. Detailed error information can be read with the
GetLastError() function.
Reading a Slave Scan List: SCAN_GetSelfSlaveDevice()
Application Range
Open status
Function
Reads the Slave scan list information.
Call Format
BOOL SCAN_GetSelfSlaveDevice(DWORD
Handle
, SELF_DEV*
DeviceInfo
)
Arguments
Return Value
TRUE is returned if the Slave scan list was read successfully. FALSE is
returned if an error occurred. Detailed error information can be read with the
GetLastError() function.
Description
The Slave scan list information is stored in the SELF_DEV structure when this
function is completed.
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
SELF_DEV*
DeviceInfo
Buffer address where Slave function information is
stored.
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
SELF_DEV*
DeviceInfo
Buffer address for receiving the Slave function infor-
mation.
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 ...