beautypg.com

H-335 – Xylem H-335 User Manual

Page 27

background image

H-335

SDI-12 Command and Response Protocol 2-11

Example of a H335 extended "Write Coefficient" command:

Command

Response

Tim e Values

Description

"aXWC1-1!" "a0011"

1 sec 1 Set Coefficient 1 to -1 indicating

the inclinometer rotates

counter-clockwise as the gate

opens.

Subsequent Command

Response

"aD0"

a-1

2.11 Extended “Write Coefficient” Command

The H-335 processes the sensor measurement data with a set of coefficients. Each coefficient is

programmable, allowing the H-335 to be used on gates with different geometries, and to scale the

height and distance output values to user desired engineering units. This command allows the user

to write (change) any of the coefficient values. The new value is stored in non-volatile EEPROM

within the sensor. Once the new value is written to the EEPROM, a copy is sent to the sensor data

buffer for verification. This data can be viewed by using a subsequent "D" command. To verify any

coefficient any other time, use the "Read Coefficient" command.

Command

Response

Description

"aXWCnddd!"

"a0011"

Write Coefficient n

Where:

a

is the sensor address ("0-9", "A-Z", "a-z", "*", "?").

XWC

are upper case characters.

n

is the coefficient number to program, 1 to 4

ddd

is the new coefficient value. The input format is

very flexible. Some examples are shown below.

20.0

0.195

-500

5.93E-4

This command takes 001 seconds to complete and places 1 value in the data buffer. Use the “aD0"

command to collect and view the data.