21
20
Configuration Commands
Command
Parameter Description
Usage
SetIRL:
<port#>
<port#>: Multi-function I/O
port number
Set I/O Port to IR Sensor
Mode
Ex: SetIRL:1\r
SetIRO:
<port#>
<port#>: Multi-function I/O
port number
Set I/O Port to Emitter Mode
Ex: SetIRO:3\r
SetIRIN:
<port#>
<port#>: Multi-function I/O
port number
Set I/O Port to IR Input Mode
Ex: SetIRIN:3\r
SetRS:
<port#>,
<br>,
<char length>,
<stop bit>,
<parity>,
<timeout>
<port#>: Multi-function I/O
port number
<br>: I/O Port baud rate.
Ranges from 4800 and
115200.
<char length>: 5- 5 bits, 6- 6
bits, 7- 7 bits 8- 8 bits
<stop bit>: 1- 1 bit, 2- 1.5 bit,
3- 2 bit
<parity>:Parity of RS. 0- no
parity, 1- odd, 2- even,
3-mark, 4- space, 5- multidrop
<timeout>: Time in
milliseconds that the I/O port
will be open. More info in the
notes section.
Set I/O Port to RS-232 Mode
Ex:
SetRS:2,57600,8,1,0,6000\r
Command Protocol
›
All commands/responses are in ASCII text and are terminated with a (\r) carriage
return.
›
All commands written in the following format:
»
COMMAND:<port#>,[<parameter 1>[,<parameter 2>,]…]\r
›
Here COMMAND is the command name and <port#> is the I/O port number from 1
to 3. <parameter> will vary depending on the command.
»
For example, to set port 1 to IR sensor mode, the command is
»
SetIRL:1\r
›
All commands are case sensitive
›
All commands do not include “<”, and “>” characters
›
All commands contain no spaces