Навигация по разделу "Инструкции, софт и прошивки": Zipstore.ru > Инструкции, софт и прошивки > Меттлер Толедо > Протоколы для простых весов

ICL

Data Format

9600 Baud (select 2400, 4800 or 9600)

7 data bits (select 7 or 8)

Even parity (select Even, None or Odd parity)

1 stop bit (select 1 or 2 stop bit)

Handshaking

For PC DB25 serial port connector:  Jumper 4 to 5, and 6, 8, & 20 together.

For PC DB9 serial port connector:  Jumper 4 to 6 and 7 to 8.

Command Descriptions

Command

COMMENTS

ENQ (05h)

Starts the communication sequence

ACK (06h)

Data Available

CAN (18h)

Repeat weighing

NAK (15h)

No acknowledgement

NUL (00h)

No data available

DC1 (11h)

Data Request

STX (02h)

Start of text

ID

Information byte, broken down into the following bits:

Bit

Capacity

2

1

0

0

0

1

15kg x 0.005kg

0

1

0

30lb x 0.01lb

0

1

1

6kg x 0.002kg

 

Bit 3 - Logic 1

Bit 4 - Logic 1 means under/over range

Bit 5 - Logic 1

Bit 6 - Logic 1 indicates non-AVR capacities

Weight

5 bytes with MSD first.  If the scale registers underweight or overweight a data string with data of zero (00) will be transmitted with bit 4 (X) of the ID byte set to 1.  In cases where MSD or LSD are not required a `NUL' character will be transmitted in the unused position.

BCC

Block Check Character calculated as the even column parity (Longitudinal Redundancy Check) of all characters except the STX and ETX.

ETX (03h)

End of text

CR (0dh)

Data received and compared correctly

 

Command Flow

ECR

Scale

COMMENTS

ENQ (05h)

 

 

 

ACK (06h)

Data Available.

Errors could be:

CAN - repeat weighing

NAK - no acknowledgement

NUL - no data available

DC1 (11h)

 

Data Request

Errors could be:

NAK – no acknowledgement

 

STX ID W5W4W3W2W1 BCC ETX

Transmitted Data

STX ID W5W4W3W2W1 BCC ETX

 

Confirm Data

Errors could be:

ACK – Data not confirmed

NAK – receive error or scale error detected.

 

CR (0dh)

Data confirmed, CAN response to ENQ is activated until current transaction is cleared.

 

Note:  The POS can request and receive additional weight data from the scale before returning the verification weight but the verification weight must equal the last weight sent by the scale.

Note:  Spaces depicted in the description above are only used for ease of reading.  No space characters are used unless the BCC result yields the space character.