Possible error returns, Setparam - getparam command and non volatile, Possible error returns -21 – Hardy HI 1746-WS User Manual

Page 51

Advertising
background image

Chapter 4 - Setup

4-21

ter, place the 4 bytes for a float, or two bytes for an
integer into the dataString.

If you have set the WEIGHTMULTIPLIER in the out-
put data file to a non-zero value, and you are setting a
parameter of type float, the parameter will be set to
the 4 byte integer value you place in the dataString,
divided by the WEIGHTMULTIPLIER. The parame-
ter will be interpreted as pounds or kilograms,
depending on the value of the Metric parameter.

If you are reading a type float parameter, and the
WEIGHTMULTIPLIER is non-zero, the value of the
parameter returned in dataString will be a 4 byte inte-
ger, equal to the parameter multiplied by the
WEIGHTMULTIPLIER. The value returned will be
pounds or kilograms, depending on the value of the
Metric Parameter.

If the WEIGHTMULTIPLIER is zero, the dataString
value returned will be a floating point integer.

NOTE:

If using a multiplier, setpoint data to and from the I/O
tables is limited to three (3) decimal places.

SETPARAM -
GETPARAM
Command and
Non Volatile
Memory

The parameters set using the SETPARAM command
are not automatically saved to non-volatile memory.
A separate command is required (WRITENONVOL-
ATILE 4).

Some parameters are not automatically used by the
weigh module, because they are normally used only at
start up. The command to save parameters to non-vol-
atile memory does cause a re-initialization, so that the
parameters will then be active.

Possible Error
Returns

OUTOFTOLERANCE - is returned if an incorrect
value is entered to a parameter.

INDEXOUTOFRANGE - is returned if no parameter
corresponds to the offset specified.

Advertising