PI1X Basic Programming Manual Ver. 1.10
108/156
Purpose
:
Set LinkingPort interface select setting.
Syntax
:
N1%=LINKPORT_SELECTIF(N2%,N3%)
Example
:
Result%=LINKPORT_SELECTIF(Port%, Interface%)
Description
:
Use this command can select a LinkingPort’s interface. 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 which interface is to be
selected.
N1%
Meaning
-1
Set LinkingPort interface success.
-2
Selected LinkingPort is using.
-4
Parameter error.
N3%
Meaning
0
None.
1
RS232.
2
USB.
3
Bluetooth
4
WIFI
Purpose
:
Get LinkingPort interface select setting.
Syntax
:
N1%=LINKPORT_GETIF(N2%)
Example
:
Result%=LINKPORT_GETIF(Port%)
Description
:
Use this command can get a LinkingPort interface.
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.
N1%
Meaning
0
None.
1
RS232.
2
USB.
3
Bluetooth
4
WIFI
-4
Parameter error.