beautypg.com

Hardy HI 6500 Series User Manual

Page 44

background image

36 Chapter

4

0: READ PARAM CMD. To read a parameter, write a #0 to the command register

(register #0), and write the parameter number in the parameter ID number in registers 2

and 3, most significant word first. The parameter value may then be read from registers

4 and 5, again most significant word first. This value may be in integer or floating point

format, depending on the parameter. The status register in the reply will contain the

lower 16 bits of the system status word.

Status word bit 0: A/D error

Status word bit 6 (0x40): Motion status.

Status word bit 15 (0x8000): Not Found - the requested parameter number does

not exist

1: ZERO CMD. Write a #1 to the command register to ZERO the gross weight. The

status register will read 0 if this command succeeds.

Status Error code 1 (motion)

Status Error code 2 (A/D error)

Status Error code 3 (out of tolerance)

2: TARE CMD. Write a #2 to the command register to ZERO the net weight. The status

register will read 0 if this command succeeds:

Status Error code 1 (motion)

Status Error code 2 (A/D error)

4: WRITE NONVOL CMD. Write a #4 to the command register to save parameters in

non-volatile memory.

• No Error Codes

5: PRINT CMD: Write a #5 to the command register to send data to the Printer.

No Error Codes

6: WEIGHT SAMPLE CMD: Write a #6 to the command register to run the Weigh

Sample command to set up the calibration of the Counts (if enabled).

Status Error code 1 (motion)

Status error code 2 (A/D error)

0x64 (100 decimal): CAL LOW CMD. Write a 0x64 hex to the command register to

perform the low step of a traditional calibration. The status register will read 0 if this

command succeeds:

Calibration_Fail 1

Calibration_Fail_Motion 3

Calibration_Fail_Adc_Error 4

0x65 (101decimal): CAL HIGH CMD. Write a 0x65 hex to the command register to

perform the high step of a traditional calibration.

Calibration_Fail 1

Calibration_Fail_Motion 3

Calibration_Fail_Adc_Error 4

HardcalFailCounts 8: not enough counts between hard cal hi and hard cal lo

0x66 (102 decimal): C2 CAL CMD. Write a 0x66 hex to the command register to

perform a C2 calibration.