46
Using the Explicit Message Server Function
Section 3-8
3-8
Using the Explicit Message Server Function
There are two methods for detecting request messages when using the
explicit message server function with Scanner SDK. Each method uses API
functions in the procedures shown in the following diagram. Refer to
for details.
Using Windows Messages for Event Notification
Open Board.
SCAN_Open( );
Register Request
Notification Events
SCAN_RegServerEvtNotifyMessage( );
Join Network.
SCAN_Online( );
Check Network Status.
SCAN_GetScannerStatus( );
Expected message?
Receive Windows Message.
PeekMessage( );
(Windows function)
Server functions finished?
Get Explicit Request Message.
SCAN_ReceiveServerExplicit( );
Server processing.
Send Explicit Response Message.
SCAN_SendServerExplicit();
Register Application
Object Class.
SCAN_RegObjectClass( );
Offline
No message
Online
Message received
Expected message
Message serve
r processing
Unexpected message
Wait Set Time.
Sleep( );
(Windows function)
Yes
No
A
Clear Request Notification Event.
SCAN_UnRegServerEvtNotifyMessage( );
Clear Application
Object Class.
SCAN_UnRegObjectClass( );
Disconnect from Network.
SCAN_Offline( );
Close Board.
SCAN_Close( );
A
Initialization
End processing
Содержание 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 ...