PI1X Basic Programming Manual Ver. 1.10
109/156
Purpose
:
Set LinkingPort COM baudrate setting.
Syntax
:
N1%=LINKPORT_SETCOM(N2%, N3%)
Example
:
Result%=LINKPORT_SETCOM(Port%, Baud%)
Description
:
Use this command can set LinkingPort’s COM baudrate. Before
use this command, you have to close LinkingPort.
N1%
is an integer variable to be assigned to the result.
N2%
is an integer variable indicating LinkingPort’s port
number. The value is form 1 to 4.
N3%
is an integer variable indicating LinkingPort’s COM
baudrate. The value is form 0 to 5.
N1%
Meaning
-1
Success.
-2
Selected LinkingPort is using.
-4
Parameter error.
N3%
Meaning
0
115200 bps
1
57600 bps
2
38400 bps
3
19200 bps
4
9600 bps
5
4800 bps
Purpose
:
Get LinkingPort COM baudrate seting.
Syntax
:
N1%=LINKPORT_GETCOM(N2%)
Example
:
Result%=LINKPORT_GETCOM(Port%)
Description
:
Use this command can get LinkingPort’s baudrate.
N1%
is an integer variable to be assigned to the result.
N1%
Meaning
0
115200 bps
1
57600 bps
2
38400 bps
3
19200 bps
4
9600 bps
5
4800 bps
-4
Parameter error.