@GetNTComPortTimeouts
Syntax
@GetNTComPortTimeouts(OSCOMHANDLE1;RDINT2;RDMUL3;RDCON4;WTMUL5;WTCON6);
Description
Only for the Engine under Windows!
Current timeout settings for the COM port with OSCOMHANDLE OSCOMHANDLE1 query and return. With the exception of FN RDINT2 are with all specified values Timeouts specified, the from the start the operation start to count, aso with the firstn read or written characters.
FN RDINT2: (ReadIntervalTimeout)
Maximale Zeit in ms, the zwischen zwei to empfangenen characters vergehen may. Ein Wert of 0 schaltet thisn Timeout aus.
FN RDMUL3: (ReadTotalTimeoutMultiplier)
Specifies a multiplicative Timeout in ms, the with the number of characters to be read multiplied is, and in the total timeout for read operations is included.
FN RDCON4: (ReadTotalTimeoutConstant)
Specifies a constant Timeout in ms, the independent of the number of characters to be read in the total timeout for read operations is included.
FN WTINT5: (WriteTotalTimeoutMultiplier)
Specifies a multiplicative Timeout in ms, the with the number of characters to be written multiplied is, and in the total timeout for write operations is included.
FN WTCON6: (WriteTotalTimeoutConstant)
Specifies a constant Timeout in ms, the independent of the number of characters to be written in the total timeout for write operations is included.
Example: @GetNTComPortTimeouts(OSCOMHANDLE1;RDINT2;RDMUL3;RDCON4;WTMUL5;WTCON6);
OSCOMHANDLE1:=@OpenNTComPort("COM1");
@GetNTComPortTimeouts(OSCOMHANDLE1;ReadI;ReadM;ReadC;WriteM;WriteC);
@LogReport("ReadIntervalTimeout: "+@Text(ReadI));
@LogReport("ReadTotalTimeoutMultiplier: "+@Text(ReadM));
@LogReport("ReadTotalTimeoutConstant: "+@Text(ReadC));
@LogReport("WriteTotalTimeoutMultiplier: "+@Text(WriteM));
@LogReport("WriteTotalTimeoutConstant: "+@Text(WriteC));
OSCOMHANDLE1:=@CloseNTComPort(OSCOMHANDLE1);
Opens a COM port, queries its Timeouts from, outputs them to log file and closes it then again.
Note : This text was machine-translated and may contain inaccuracies.
