![PNI TCM2.5 Manual Download Page 13](http://html1.mh-extra.com/html/pni/tcm2-5/tcm2-5_manual_1569855013.webp)
Page 13 of 48
Command Syntax
There are three types of commands you may issue to the TCM2.5/2.6:
•
User Configuration Parameter commands which set user-definable parameters.
•
Request for Data commands which query the TCM2.5/2.6 for data or for the stored value of user-
definable parameters.
•
Action commands which prompt the TCM2.5/2.6 to perform a specific action.
All commands must be followed with a <cr>, or <cr><lf>. The <lf> characters are ignored by the
TCM2.5/2.6, but are supported to allow compatibility with a variety of terminals.
Programming Conventions
Set TCM2.5/2.6 user parameters:
<parameter>=<value><cr>
Query TCM2.5/2.6 data (parameter or sensor values): <parameter>?<cr>
Action command:
<command><cr>
Detailed descriptions of all commands are in the “Command List” and a command summary is shown in
“Command List Quick Reference”
Data Transmission
The TCM2.5/2.6 will transmit data across the RS-232 interface in response to input commands, and will
also transmit data output words automatically when placed in continuous output mode. The response to
the various commands is as follows:
Input Command
TCM2.5/2.6 Response
Valid parameter-setting commands
:<cr><lf>
Valid action command
varies according to command
Valid Parameter query commands
:<parameter>=<value><cr><lf>
Invalid, or unrecognized command
:E<code><cr><lf>
Valid sensor query command
varies according to command
The ‘:’ character signifies a successfully identified and executed command.
Table 2: Input Command Responses