Eastron SDM72D-M (three-phase)
Status: Vendor Confirmed · Register points: 13 · Transports: Modbus RTU
A curated ModDef profile for the Eastron SDM72D-M (three-phase). Import it as
eastron.sdm72 or load the .moddef.yaml directly.
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.
- Go
- TypeScript
- Rust
- Python
- C
- C++
doc, _ := moddef.Load("eastron-sdm72.moddef.yaml")
dev, _ := client.New(doc, "eastron-sdm72", transport) // your modbus.Transport
v, _ := dev.ReadPoint(ctx, "total_system_power")
fmt.Println(v)
import {Device} from '@moddef/core';
import {loadDocument} from '@moddef/core/node';
const doc = await loadDocument('eastron-sdm72.moddef.yaml');
const dev = Device.create(doc, 'eastron-sdm72', transport);
console.log(await dev.readPoint('total_system_power'));
let doc = moddef_core::load("eastron-sdm72.moddef.yaml")?;
let mut dev = Device::new(&doc, Some("eastron-sdm72"), transport)?;
let v = dev.read_point("total_system_power").await?;
from moddef import Device, load
from moddef.pymodbus import Options, PymodbusTransport
doc = load("eastron-sdm72.moddef.yaml")
transport = await PymodbusTransport.tcp("192.168.1.50", options=Options())
dev = Device.create(doc, "eastron-sdm72", transport)
print(await dev.read_point("total_system_power"))
md_doc_t doc;
md_doc_init(&doc, flash_ptr, flash_len); /* zero-copy view */
md_dev_t dev;
md_dev_init(&dev, &doc, MD_STR("eastron-sdm72"), &transport);
md_value_t v;
md_dev_read(&dev, MD_STR("total_system_power"), &v);
auto doc = moddef::Document::view(flash_bytes).value(); // zero-copy over flash
auto dev = moddef::Device::open(doc, "eastron-sdm72", transport).value();
if (auto v = dev->read("total_system_power"); v)
std::cout << v->to_string() << '\n';
Measurands
The 2 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 quantity | Name | Unit | Description |
|---|---|---|---|
active_power | Active Power | W | Instantaneous real power |
energy_active | Active Energy | Wh | Cumulative active energy register |
Source
- Profile:
energy-meter/eastron-sdm72/eastron-sdm72.moddef.yaml - Register map: vendor documentation