68
Master Function API Functions
Section 4-4
Stopping Remote I/O Communications: SCAN_StopScan()
Application Range
I/O communications execution status
Function
Stops remote I/O communications.
Call Format
BOOL SCAN_StopScan(DWORD
Handle
)
Arguments
Return Value
TRUE is returned if remote I/O communications stopped normally in the spec-
ified Board. FALSE is returned if an error occurred, such as the lack of a cor-
responding event. Detailed error information can be read with the
GetLastError() function.
Writing the Communications Cycle Time: SCAN_SetScanTimeValue()
Application Range
Open status
Function
Sets the communications cycle time.
Call Format
BOOL SCAN_SetScanTimeValue(DWORD
Handle
, WORD
ScanTime
)
Arguments
Return Value
TRUE is returned if the communications cycle time was set successfully.
FALSE is returned if an error occurred. Detailed error information can be read
with the GetLastError() function.
Description
The default communications cycle time is automatic (maximum). The commu-
nications cycle time for the automatic setting is calculated using the formula
listed in
6-1-1 Communications Cycle Time
If a value shorter than the communications cycle time used under the auto-
matic setting is set, the set value changes to that specified value but the
actual communications use the communications cycle time from the auto-
matic setting.
Reading the Communications Cycle Time: SCAN_GetScanTimeValue()
Application Range
Open status
Function
Reads the set communications cycle time.
Call Format
BOOL SCAN_GetScanTimeValue(DWORD
Handle
, WORD*
ScanTime
)
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
Type
Name
Contents
DWORD
Handle
Device handle obtained by SCAN_Open()
WORD
ScanTime
Communications cycle time (ms)
Setting range:
0x000 (0): Automatic (Always executed at the fastest
speed.)
0x0001 to 0x01F4 (1 to 500): 1 to 500 ms
Содержание 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 ...