Vous n'avez aucun article dans votre panier.

Nouvelles gammes de batterie HIDS !

Cliquez ici pour en savoir plus !
Support: 858-292-2710

How can I get my HI 2151/30WC in continuous print mode?

Last updated 10-02-2014 10:06

Question

I am interfacing to a HI 2151/30WC via the serial port, with the intent of having the serial port in continuous output mode. I read the HI 2151/30WC manual and can't find the serial string format for this mode (there is quite a bit of information on the command format, but not on the continuous output mode). How can I get my HI 2151/30WC in continuous print mode?

Answer

When you put the serial port into the print mode, the unit will look to the "format" in the serial setup to determine what to transmit. If the last (or farthest right) character is an underscore, then it will transmit on a continuous basis and the data would depend on the remaining characters in the format.

The output would follow the pattern of:

Start character (>)
Carriage return, line feed (CRLF)
Data String (for first 'format' selection enabled)
Data String (repeated for each additional selection enabled)
Carriage return, line feed

Each Data string would be:

Space
Label (Gross, Net, etc.6 char with trailing spaces)
Space
negative sign or space
Weight data (6 char of data with leading spaces)
Space
Mode (lb or kg)
Carriage return, line feed

As an example, let us say you have unit in print mode, and the format has the 'G' and 'N' turned on. If the gross weight was 123456 lbs and net weight was -9876 lbs, your output from the serial port would be: (NOTE: For the purpose of this document, spaces are shown with underscores as place holders.)

>(CRLF)
_GROSS___123456_LB(CRLF)
_NET____-__9876_LB(CRLF)
(CRLF)