GL

Get Average and Gross

GL


Command Group: Weight

Access:

Network interfaces:

R

CANopen

MODbus

GL - Get Average and Gross

PROFIbus


Synopsis:
CommandResponse
GetGLL<Value>
Valid forMin. valueMax. value
151.181    
152.181    
162.181    
179.181    
181.181    
64.181    
64.184    
78.183    



GL Get the “long” weight values - returns the current average, gross and status values.
Issuing the GL command, which has no parameters, will return the average weight, the gross weight, the status and the checksum values, all combined into one single string in the format L+00100+01100010F. The first two sections of the return string comprise the net weight and gross weight results, followed by two hexadecimal characters, which represent two bitmapped status indicators. The last two hexadecimal characters represent the checksum, which is the inverse of the sum of all the ASCII values of the string, not including the checksum characters.
The format shown above is:

FieldContentssize
LLeading response char1
+/-average weight sign1
<num>average weight value5
+/-gross weight sign1
<num>gross weight value5
<hex digit>First bitmapped value1
<hex digit>second bitmapped value1
<hex digits>Checksum2

The bitmapped characters are:

First BitmapSecond bitmap
0x01  Not Used
0x02  Output 1 active
0x04  Output 2 active
0x08  Output 3 active
0x01  No motion
0x02  Zero action performed
0x04  Tare active
0x08  Not Used

The checksum is derived as follows:

  1. Add the ASCII values (in hex) of all the 15 characters in the string
  2. Invert the hexadecimal value
  3. Add one to the value
  4. Use only the last two digits
  5. Convert the hexadecimal value to characters

To support multirange scales the format described above actual range and decimal point may be shown as well controlled by the Output Format command OF.

See also DP, GG, GN, GT, GW, GS, SL, OF.