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
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 ...