Toshiba V Series User Manual page 69

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

Advertisement

Example
See Also
6F8C0945
The following example shows how to set scan transmission cycle to 10 ms for
high-speed, 100 ms for middle-speed, and 1000 ms for low-speed.
#include <windows.h>
#include "tcnlib.h"
:
HANDLE
hDev;
SccCycle
cycle;
:
// Set scan transmission cycle
cycle.HScanCyc = 100;// 10ms
cycle.MScanCyc = 100;// 100ms
cycle.LScanCyc = 1000;// 1000ms
cycle.MaxNodeDist = 8;
cycle.MaxRepeater = 3;
result = TcnSccSetCycle( hDev, &cycle );
if( !result ) printf(" TcnSccSetCycle fail. Code = %ld\n",GetLastError());
TcnSccGetCycle
8
57

Advertisement

Table of Contents
loading

Table of Contents