Eurosens Delta 2 script

Eurosens Delta 2 script

Version

1.0.0

Script name

fuel_eurosens_delta_1.0.0

Last updated

Nov 12, 2026

Revision information

Replaces BCE_MEAS_EUROSENS-DELTA-02-SCR-7_2

1. Description

The script reads up to two Eurosens Delta fuel flow meters connected to the device's RS232 or RS485 port. It saves each meter's fuel level, flow speed and status in device sensors you choose, and these are sent to your platform with the rest of the device data.

1.1 Features

  • Up to 2 meters on one port, told apart by their network address.

  • Fuel level, flow speed and status for each meter, each saved to a sensor of your choice. Readings you don't need can be switched off.

  • A clear error value when a meter stops answering, so a disconnected or faulty meter is easy to spot.

  • Everything is set up in XDM, with no changes to the script.

1.2 How it works

  1. The device asks each meter for its readings in turn: about every 1.5 seconds with one meter, every 2 seconds with two.

  2. When a meter answers, its readings are saved to the selected sensors exactly as the meter sends them. The device does not convert them.

  3. If an answer arrives damaged, that meter's sensors are set to the error value 4294967295 straight away.

  4. If a meter doesn't answer, its last readings are kept for a short while. After 10 unanswered requests in a row (about 15-20 seconds), its sensors show 4294967295 until it answers again.


2. Setting up

2.1 Meter

  • Give each meter its own network address, for example 1 and 2.

  • Set the meter's serial connection to 19200 baud, 8 data bits, no parity, 1 stop bit.

  • Connect the meter's RS485 (or RS232) wires to the device port of the same type. The meter's manual shows its wire colours.

2.2 XDM

  1. In the device configuration, select the script fuel_eurosens_delta_1.0.0. Its settings appear in the configuration.

  2. In Port, select the port the meters are connected to.

  3. In Meters, add one row per meter (at most 2) and fill it in as described in section 3.

  4. Save the configuration and send it to the device.

  5. Check that the selected sensors show readings and not 4294967295.


3. Settings

Setting

Values

Description

Setting

Values

Description

Port

RS232, RS485

The device port the meters are connected to. Default: RS232.

Address

0-255

The meter's network address, as set in the meter. Each meter needs its own. Default: 1.

Fuel level

Sensor or None

Sensor for the meter's fuel level. Select None if not needed.

Flow speed

Sensor or None

Sensor for the meter's flow speed. Select None if not needed.

Status

Sensor or None

Sensor for the meter's status (see 4.1). Select None if not needed.

The sensors offered are 32-bit user-defined sensors. See Sensor descriptions for reference.


4. Readings

Sensor

Meaning

Sensor

Meaning

Fuel level

Relative fuel value, as reported by the meter.

Flow speed

Fuel flow speed, as reported by the meter.

Status

The meter's operating state, see 4.1.

All three show 4294967295 when the meter doesn't answer or its answer is damaged.

4.1 Status

The status is the sum of the meter's active states:

Value

State

Value

State

1

Idle run

2

Nominal mode

4

Overload

8

Cheating

16

Negative

32

Intervention

For example, 2 means nominal mode, and 10 (2 + 8) means nominal mode and cheating.


5. Requirements and limitations

  • Device firmware ***_01_121 or later.

  • At most 2 meters, both on the same port, at 19200 baud.


6. Changes from BCE_MEAS_EUROSENS-DELTA-02-SCR-7_2

fuel_eurosens_delta_1.0.0 replaces the earlier script and uses the same settings. Configurations on the earlier script keep it until you select the new one. After switching, check the Port and Meters settings.

  • More reliable readings on a noisy line: leftover data from one reading no longer spoils the next.