![Omron DeviceNet 3G8F7-DRM21-E Скачать руководство пользователя страница 102](http://html.mh-extra.com/html/omron/devicenet-3g8f7-drm21-e/devicenet-3g8f7-drm21-e_operation-manual_743611102.webp)
85
Explicit Message API Functions
Section 4-6
Call Format
BOOL SCAN_RegObjectClass(DWORD
Handle
, WORD
ClassId
)
Arguments
Return Value
TRUE is returned if the object class ID was successfully registered to the
specified Board. FALSE is returned if an error occurred. Detailed error infor-
mation can be read with the GetLastError() function.
Description
To register an object, a server request message addressed to that object must
be received and a response returned.
The following list shows the object class IDs that can be registered. Up to 16
can be registered.
0x0000 to 0x0063 (excluding 0x0002, 0x0003, 0x0005, 0x002B, and
0x002F), 0x0064 to 0x007F, 0x0088 to 0x008F, 0x0098 to 0x009F, 0x00A8
to 0x00AF, 0x00B8 to 0x00BF, 0x00C0 to 0x00C7
When Identity Object Class (ID=1) is registered, the service code must sup-
port Reset processing.
Clearing an Object Class ID: SCAN_UnRegObjectClass()
Application Range
Open status
Function
Clears registration of an object class.
Call Format
BOOL SCAN_UnRegObjectClass(DWORD
Handle
, WORD
ClassId
)
Arguments
Return Value
TRUE is returned if the object class ID was successfully deleted from the
specified Board. FALSE is returned if an error occurred. Detailed error infor-
mation can be read with the GetLastError() function.
Registering a Server Notification Message: SCAN_RegServerEvtNotifyMessage()
Application Range
Open status
Function
Registers the Windows message that notifies when a server request recep-
tion event for the registered object has occurred.
Call Format
BOOL SCAN_RegServerEvtNotifyMessage(DWORD
Handle
, WORD
ClassId
, DWORD
ThreadId
, HWND
hWnd
, UINT
Msg
)
Arguments
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
ClassId
Registers object class ID.
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
ClassId
Object class ID of the object class being deleted.
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
ClassId
Object class ID used in server request reception
event.
DWORD
ThreadId
The thread ID to notify.
(No setting = NULL)
Содержание 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 ...