
PT-Basic Programming Manual Ver. 1.00 88/143
3.17 Communication port commands
To terminate communication and disable a specified COM
port.
N% is an integer indicating which COM port is to be disabled
(now we only can choose 1).
To enable a specified COM port and initialize
communication.
N% is an integer variable indicating which COM port is to be
enabled (now we only can choose 1).
To set parameters of a specified COM port.
SET_COM(N%, Baudrate%, Parity%, Data%,
Handshake%)
Several key arguments as below:
1: RS-232 (now we only can choose 1)
Baud rate
1: 115200 2-3: 57600
4: 38400 5: 19200
6: 9600 7-8: 4800
Parity
1:None 2:Odd
3:Even
Data bits
1: 7 bits 2: 8 bits
Flow control
1: None
2: Auto Flow control
Commenti su questo manuale