Skip to main content

Carlo Gavazzi EM340 (three-phase, direct connection)

Status: Vendor Confirmed · Register points: 53 · Transports: Modbus RTU

A curated ModDef profile for the Carlo Gavazzi EM340 (three-phase, direct connection). Import it as carlogavazzi.em340 or load the .moddef.yaml directly.

Connect to one over Web Serial and watch its values live in the device dashboard.

Usage

Load the profile, bind a transport, and read a point by name. The runtime applies the offset, scaling, byte order, and sentinels from the definition.

doc, _ := moddef.Load("carlo-gavazzi-em340.moddef.yaml")
dev, _ := client.New(doc, "carlo-gavazzi-em340", transport) // your modbus.Transport
v, _ := dev.ReadPoint(ctx, "voltage_l1_n")
fmt.Println(v)

Measurands

The 9 semantic quantities this device reports, each linked to the measurand catalog. Query a device by measurand instead of a raw point when you want portable code.

Base quantityNameUnitDescription
voltageVoltageVRMS voltage; qualify with phase_ref (L1_N, L1_L2, ...)
currentCurrentARMS current; qualify with phase_ref / direction
active_powerActive PowerWInstantaneous real power
apparent_powerApparent PowerVAInstantaneous apparent power
reactive_powerReactive PowervarInstantaneous reactive power
power_factorPower Factor1 (ratio)Ratio of real to apparent power (dimensionless)
frequencyFrequencyHzGrid frequency
energy_activeActive EnergyWhCumulative active energy register
energy_reactiveReactive EnergyvarhCumulative reactive energy register

Source