EasyManua.ls Logo

Topcon OPUS A6G2 - Page 561

Topcon OPUS A6G2
800 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
561
OPUS Projektor Manual
JavaScript
The following baud rates [bit/s] can be configured:
50
75
110
134
150
300
600
1200
1800
2400
4800
9600
19200
38400
57600
115200
230400
460800
500000
576000
921600
1000000
1152000
1500000
Every other value will result in a setting of 115200 bit/s.
The wait time means that the read function will wait for that time if the RS232 buffer is empty.
This can be used when communicating with a device that needs some time to deliver an
answer to a write.
The wait time can be set in steps of 100 from 0 to 25500 ms.
Prototype:
var result = <RS232Handler instance>.init(number
newBaudrate,number waitTime);
Examples:
// Open an RS232 interface with the default settings of 115200
baud / s and 100 ms wait time)
myRS232.init();
// Open an RS232 interface with 9600 baud / s and 100 ms wait
time)
myRS232.init(9600);
// Open an RS232 interface with 576000 baud / s and 0 ms wait
time)
myRS232.init(576000,0);
Return values:
0 - port successfully opened

Table of Contents