beautypg.com

Set measurement output format – Vaisala DPT145 User Manual

Page 39

background image

Chapter 5 _________________________________________________________________ Operation

VAISALA ________________________________________________________________________ 39

Set Measurement Output Format

Use the serial line command FORM to change the measurement message

sent by the transmitter. You can freely define the output message to

include the desired parameters, formatting options, text strings, and

additional fields.
FORM [modifier string]

where
modifier string = String of parameters and modifiers that defines the

output format, length 1 ... 153 characters.

Maximum length may be shorter when text strings

are used. See Table 6 and Table 7 on page 40, and

examples below.

You can return to the default format using the "FORM /" command.
Example of default output (continuous output from RUN mode):

Tdf= 8.1 'C Tdfatm= 8.2 'C H2O= 10870 ppm P= 1.002 bara

Pnorm= 0.992 bara Rhoo= 6.0 kg/m3 T= 22.8 'C

Tdf= 8.1 'C Tdfatm= 8.2 'C H2O= 10878 ppm P= 1.002 bara

Pnorm= 0.992 bara Rhoo= 6.0 kg/m3 T= 22.8 'C

...

Command to set output format as Tdf and P with Modulus-256

checksum:

form 3.1 "Tdf=" Tdf U3 3.3 "P=" P " " U4 " " CS2 \r \n

Output example:

Tdf= 12.5'C P= 0.949 bara 72

Tdf= 12.5'C P= 0.950 bara 6A

...

Command to set output format as Tdf and P, with start of text (ASCII

character 002) and end of text (003) ASCII codes, and without line feed

and carriage return at the end:

form #002 3.1 "Tdf=" Tdf U3 3.3 "P=" P " " U4 #003

Output example (ASCII codes not visible here):

Tdf= 11.6'C P= 0.952 baraTdf= 11.6'C P= 0.951 baraTdf=

11.6'C P= 0.951 baraTdf= 11.6'C P= 0.950 baraTdf= 12.5'C

P= 0.951 baraTdf= 12.3'C P= 0.952 bara

...