Command sequence, Command symbol, Response symbol – PNI Legacy Comm Board User Manual
Page 10: Description, Indicated query only command or variable, Indicates assign only command or variable, Use ? for query or = for assign, Ending sequence or or
PNI Corporation 133 Aviation Blvd., Suite 101, Santa Rosa, CA 95403-1084 USA;, Fax: (707) 566-2261
For the most current specifications, please visit our website at:
www.pnicorp.com
Page 10 of 42
Command Line Interface
The Command Line interface allows you to use a simple terminal program to communicate with the
CommBoard. The Command Line interface also allows applications written in any language, including
Assembly, Basic, or C to communicate with the CommBoard via the RS-232 or RS-485.
Command Sequence
The sequence of command line events is:
1. Type in the command on the terminal program:
cmd?
2. The module processes the command.
3. A reply is sent back to you.
a. If no error
$cmdreply*
b. If error
$cmdreply:Exxx*
Table 11: Command Notation Table
Command
Symbol
Response
Symbol
Description
? Indicated query only command or variable
= Indicates assign only command or variable
Use ? for query or =
Ending sequence
$
Start of checksum data
!
RS-485 address follows
:
If error occurs; :Ennn
*
End of checksum data
Checksum
Start of data
n
n
Usually a lower case ‘n’ will represent a digit (0-9)
n.n
n.n
Represents a decimal value (positive or negative)
x
x
Usually a lower case ‘x’ will represent a hex digit (0-F)
xx
xx
Represents a Uint8
xxxx
xxxx
Represents a Uint16
xxxxxxxx
xxxxxxxx
Represents a Uint32
a. XOR checksum method.
CommBoard
Command Line Interface