Second word - 1: format word – Hardy HI 1769-FC User Manual

Page 36

Advertising
background image


31

Chapter 4

Command Return or Error Codes

Commands always return the command word and command status. The command status
word may include the following codes:

Return Codes

#Hex

Description

SUCCESS 0

Pass

OUTOFTOLERANCE -3

Out

of

tolerance

INDEXOUTOFRANGE -4

Out

of

range

NOSUCHCMD -5

Command

bad

C2FAILNODEVS -6

No

C2

devices

C2FAILCAPEQ

-7

Failure, C2 capacities not equal

HARDCALFAILCOUNTS -8

Fails, too few ADC counts between high
- low

NOSUCHPARAM

-9

Parameter ID incorrect

Second Word - 1: Format Word

Format Word Decimal Point Parameters

Word 1 is the format word. The decimal point parameters, which are set via the format
word, indicate the location of the decimal point within the values to follow (i.e., how
many decimal places the integer values in the input and output tables have). The higher
the number, the farther to the left the decimal point moves and the more precisely the rate
is displayed. However, setting the decimal point far to the left does not ensure that the
measuring device will be accurate enough to distinguish the requested level of precision
from interference factors.

While the decimal point values for total, weight, and rate are separate, each has four bits
in the format word. The maximum decimal place value is 7.

Formatword uses hex format 0000xxxxyyyyzzzz, where 0000 is not used at this time,
xxxx = total DP, yyyy = Weight DP, and zzzz = Rate DP. The DP values position the
decimal point within the number.

0x0123 means TOTAL decimal places is 1, WEIGHT decimal places is 2, RATE decimal
places is 3. For example, writing the value 0x0123 in the format word sets the total
decimal place
value, which is used for the TOTAL and BATCH TOTAL values to 1. It
sets the weight decimal place, which is used for the gross weight, to 2, and it sets the rate
decimal place
, which is used for the rate of change (ROC) values to 3.

Total Decimal Point (xxxx)

The Total Decimal Point parameter sets the location of the decimal point within the
Totalizer value, which is based on the selected unit of measure.

Range: 0-7 (default 1) In most applications a decimal setting of 0 or 1 is recommended.

Weight Decimal Point (yyyy)

Set the Weight Decimal Point parameter to indicate the location of the decimal point
within the weight values, which are based on the selected unit of measure.

Range: 0-7 (default 2)

Advertising