![Omron DeviceNet 3G8F7-DRM21-E Скачать руководство пользователя страница 75](http://html.mh-extra.com/html/omron/devicenet-3g8f7-drm21-e/devicenet-3g8f7-drm21-e_operation-manual_743611075.webp)
58
Board Management API Functions
Section 4-3
Return Value
TRUE is returned if the DeviceNet PCI Board with the specified board ID was
opened successfully. FALSE is returned if an error occurred or there is not a
Board with the specified board ID. Detailed error information can be read with
the GetLastError() function.
Description
The Board must be open before it can be used.
Each Board can be opened from one application (process) only.
The Board ID is the value set using the rotary switch on the Board.
Closing the Board: SCAN_Close()
Application Range
Open status
Function
Closes the specified device handle and makes the Board unusable.
Call Format
BOOL SCAN_Close(DWORD
Handle
)
Arguments
Return Value
TRUE is returned if the specified device handle was closed successfully.
FALSE is returned if an error occurred. Detailed error information can be read
with the GetLastError() function.
Description
When this function is executed, the device handle is released, the Board is
reset, and all set information is cleared. Perform any end processing for the
application before executing this function.
Joining the Network (Online): SCAN_Online()
Application Range
Offline status
Function
Adds the specified DeviceNet PCI Board to the network and puts it in online
status.
Call Format
BOOL SCAN_Online(DWORD
Handle
, WORD
Macld
, WORD
BaudRate
)
Arguments
Return Value
TRUE is returned if the specified Board was successfully switched to online
status. FALSE is returned if an error occurred. Detailed error information can
be read with the GetLastError() function.
Description
It takes approximately 3 seconds for online processing to be completed.
FALSE is returned and the Board is not switched to online status in the follow-
ing cases. Use GetLastError() to find the source of the error, clear the error,
and execute the function again.
• Bus OFF error
• Node address duplication
• Network power supply error
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
Macld
Node address setting for the Board
Setting range: 0x00 to 0x3F (0 to 63)
WORD
BaudRate
Communications speed setting for the Board
Setting range:
ONLINE125K(0): 125 kbps
ONLINE250K(1): 250 kbps
ONLINE500K(2): 500 kbps
Содержание 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 ...