GL |
Get Average and Gross |
GL |
Command Group: Weight | Access: | Network interfaces: | ||
R | CANopen | |||
MODbus | ||||
GL - Get Average and Gross | PROFIbus |
|
|
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:
Field | Contents | size |
L | Leading response char | 1 |
+/- | average weight sign | 1 |
<num> | average weight value | 5 |
+/- | gross weight sign | 1 |
<num> | gross weight value | 5 |
<hex digit> | First bitmapped value | 1 |
<hex digit> | second bitmapped value | 1 |
<hex digits> | Checksum | 2 |
The bitmapped characters are:
First Bitmap | Second 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:
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.