
ZENO
®
-3200 USER MANUAL
Coastal Environmental Systems (206) 682-6048
Page 236
Data Field Description Data Value Field
%%
Represents character %.
N/A
%f
%nf
%n.mf
Indicates a floating-point number will be retrieved. If
n is used, it indicates the total number of characters
used. If m is used, it indicates the number of characters
that follow the decimal point.
F1, F2, etc.
%ld
%nld
Indicates a long integer number will be retrieved. If n
is used, it indicates the total number of characters used.
%lx, %lX
%nlx, %nlX
Indicates a hexadecimal, long integer number will be
retrieved. If n is used, it indicates the total number of
characters used. Using lowercase or uppercase x
indicates whether lowercase or uppercase characters
are used in the hexadecimal number.
L1, L2, etc.
%s
%ns
Indicates that a string will be retrieved. If n is used, it
indicates the total number of characters used. Any
printable or non-printable ASCII character is valid to
be part of a string value.
S1, S2, etc.
Data Fields within Format Specifier string must match their Data Value Fields following the Format
Specifier string in the Command Line. If the Data Field type does not match the Data Value Field,
ZenoSoft will generate an error.
To ignore a particular field in a received message, use an * immediately following the % sign, such as
%*2s or %*lX.
The following is an example Command Line containing a RECEIVE command:
RECEIVE 6000, "\r\n%6.0f,%9.4f,%9.5f,%9.5f,%s,%s,", F2, F3, F4, F5, S2, S3
For the above Command Line, ZenoSoft will wait up to 60 seconds to receive a message from the
sensor that is transmitting a comma-delimited message that starts with a carriage-return/linefeed and
contains four floating-point values and two string values. Each of the Data Value Fields that follow the
Format Specifier match the corresponding Data Fields inside of the Format Specifier.
12.2.7. Writing & Troubleshooting A USI Script
To write an effective USI script, it is crucial to understand how the sensor communicates. Use the
following steps to assist you in writing a Script Record.
Understanding the Sensor from Which to Collect Data
How Many & What Types of Values Are Available & Needed?
Determine the number of values that a sensor outputs in its output message. Integer values can be
stored either as floating point or as long-integer values. Floating point values should always be
stored as floating point values to prevent loss of precision. String values can only be stored as
strings.
Is the Sensor Polled?
Determine whether the sensor requires a polling command to be sent before it will output any
data. If the sensor can be configured to be polled or to continuously transmit data, determine
which technique is best for the application.
What Is the Format of the Sensor's Output & Input Messages?
Kommentare zu diesen Handbüchern