
3.17
Communication port commands
Purpose
Κ
To terminate communication and disable a specified COM
port.
Syntax
Κ
CLOSE_COM (N%)
Example
Κ
CLOSE_COM(1)
Description
Κ
N%
is an integer indicating which COM port is to be disabled
(now we only can choose 1).
Purpose
Κ
To enable a specified COM port and initialize
communication.
Syntax
Κ
OPEN_COM (N%)
Example
Κ
OPEN_COM(1)
Description
Κ
N%
is an integer variable indicating which COM port is to be
enabled (now we only can choose 1).
Purpose
Κ
To set parameters of a specified COM port.
Syntax
Κ
SET_COM(N%, Baudrate%, Parity%, Data%,
Handshake%)
Example
Κ
SET_COM(1, 1, 1, 2, 1)
Several key arguments as below:
N%:
1: RS-232 (now we only can choose 1)
Baudrate%:
Baud rate
1: 115200 2-3: 57600
4: 38400 5: 19200
6: 9600 7-8: 4800
Parity%:
Parity
1:None 2:Odd
3:Even
Data%:
Data bits
1: 7 bits 2: 8 bits
Description
Κ
Handshake%:
Flow control
1: None
2: Auto Flow control
T P C 7 0 3 0
Programming Manual Ver. 1.00
86/131