Command syntax, Programming conventions, Data transmission – PNI TCM 2.6 User Manual

Page 14

Advertising
background image

PNI Sensor Corporation

DOC#1009269 r11

TCM2.5 & TCM2.6 User Manual

Page 14 of 49

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.

Commands are case sensitive.



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

Advertising
This manual is related to the following products: