beautypg.com

Output commands – gg, gn, gt, gs, gw, ga, gl, of, Gg get gross value, Gn get net value – Flintec LDU 78.1 User Manual

Page 22: Gt get tare value, Gs get adc sample value, Gw get data string “net, gross and status, Ga get triggered average value

background image

LDU 78.1 Technical Manual, Rev. 12 May 2011

Page 22 of 36

8.6. Output Commands – GG, GN, GT, GS, GW, GA, GL, OF

The following commands “Get” the gross, net, tare and ADC sample values from the LDU 78.1.

8.6.1. GG Get Gross Value

Master (PC / SPS) sends

Slave (LDU XX.X) responds

Meaning

GG

G+01.100

Gross value: 1.100 d

8.6.2. GN Get Net Value

Master (PC / SPS) sends

Slave (LDU XX.X) responds

Meaning

GN

N+01.000

Net value: 1.000 d

8.6.3. GT

Get Tare Value

Master (PC / SPS) sends

Slave (LDU XX.X) responds

Meaning

GT

T+00.100

Tare value: 0,100 d

8.6.4. GS Get ADC Sample Value

This command gets the actual Analogue to Digital Converter (ADC) value. This can be useful during
development or when calibrating to see how much of the ADC range is being used.

Master (PC / SPS) sends

Slave (LDU XX.X) responds

Meaning

GS

S+125785

ADC sample value = 125785 d

For service purposes it may be helpful to note the GS values for the “no-load” or “zero” output and when the
“calibration load” is applied.

8.6.5. GW Get Data String “Net, Gross and Status“

Master (PC / SPS) sends

Slave (LDU XX.X) responds

Meaning

GW

W+000100+0011005109

(example)

Net value: +000100 d (no decimal point)

Gross value: +001100 d (no decimal point)

Status bit 1: 5 (not used)

Status bit 2: 1 (Hex)

Check sum: 09 (Hex)

The status bits 1 and 2 are defined as follows:

Status

Value = 1

Value = 2

Value = 4

Value = 8

Status bit 1 Not used

Not used

Output 0 active

Output 1 active

Status bit 2 Signal stable

Set zero performed

Tare active

Not used

The check sum is the reciprocal value of the sum of all ASCII values within the data string without the check
sum itself.

8.6.6. GA Get Triggered Average Value

This command reads the measurement result of a measurement cycle. The measurement value has been
averaged according the defined measuring time. The trigger commands can be found in chapter 8.12 and 8.13.

Master (PC / SPS) sends

Slave (LDU XX.X) responds

Meaning

GA

A+01.100

Request: GA = 1100 g

Note:

For preventing errors during the read out of the data the register GA has stored the value 99999 at the

beginning of the measurement cycle. The measurement result can only be read after the defined measuring
time MT has been elapsed and before a new measurement cycle has been started.