Toshiba V Series User Manual page 68

Integrated controller
Hide thumbs Also See for V Series:
Table of Contents

Advertisement

Chapter 8 Function Reference
8
56
TcnSccSetCycle
Name
TcnSccSetCycle - Set scan transmission cycle
Type
#include <tcnlib.h>
BOOL TcnSccSetCycle (IN HANDLE hDevice, IN SccCycle *p);
Description
Sets the scan transmission cycle.
hDevice: File handle obtained with TcnCreateFile
The setting data storage area SccCycle is the following structure. The area
must be at least as large as SccCycle size.
typedef struct SccCycle {
WORD
WORD
WORD
WORD
WORD
} SccCycle;
HscanCyc is high-speed scan cycle (1 - 160 ms: 0.1 ms unit)
(Enter 105 to set to 10.5 ms cycle)
MscanCyc is middle-speed scan cycle (10 - 1000 ms: 1 ms unit)
(Enter 155 to set to 155 ms cycle)
LscanCyc is low-speed scan cycle (100 - 10000 ms: 1 ms unit)
(Enter 1555 to set to 1555 ms cycle)
MaxNodeDist is the maximum inter-node distance (1Km - 8Km: 1Km unit)
(Enter 8 to set to 8 Km)
Set 8, in case of the maximum node distance is less than 8km.
MaxRepeater is the maximum repeater steps (1 - 3: 1 increment)
(Enter 3 to set to 3 steps)
Set 3, in case of the maximum repeater steps is less than 3 steps.
High-speed scan cycle, middle-speed scan cycle, low-speed scan cycle,
maximum inter-node distance and maximum repeater steps set the same value
by the whole system.
Return Code
TRUE is returned in case of normal end.
FALSE is returned in case of abnormal end.
The error detail can be obtained with GetLastError().
HScanCyc;
MScanCyc;
LScanCyc;
MaxNodeDist;
MaxRepeater;
TC-net 100 PCI Bus Card Support Software User Manual

Advertisement

Table of Contents
loading

Table of Contents