42
Using I/O Communications Functions
Section 3-6
3-6
Using I/O Communications Functions
Procedure for Using
Master Function
Use the procedure shown in the following diagram to use API functions when
using the Master function of the Scanner SDK. Refer to
for details on using API functions.
Note
Several seconds are required after SCAN_StartScan() is called until I/O com-
munications actually start.
Open Board
SCAN_Open( );
Register Scan List
SCAN_RegisterSlaveDevice( );
Join Network
SCAN_Online( );
Start I/O Communications
SCAN_StartScan( );
A
Check Network Status
SCAN_GetScannerStatus( );
A
Get Slave Status
SCAN_GetSlaveDeviceStatus( );
Get Slave Status
SCAN_GetSlaveDeviceStatus( );
Finished?
Output Data to Slave
SCAN_SetOutData( )
Get Slave Data
SCAN_GetInData( )
Stop I/O Communications
SCAN_StopScan( );
Disconnect from Network
SCAN_Offline( );
Close Board
SCAN_Close( );
Refresh I/O data.
SCAN_IoRefresh( );
Error
processing
Error
processing
Error
processing
Error
Normal
Performing I/O communications
Performing I/O communications
Other
Other
Repeat output
for number of
target slaves.
Error
Error
No
Yes
Initialization
Data I/O
p
rocessin
g
End
p
rocessin
g
Repeat for number
of input slaves.
(There are several ways to register
scan lists. Refer to
for details.)
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 ...