From 47257a6a292411b868af11df4f11dddc8144ebb5 Mon Sep 17 00:00:00 2001 From: Patrick Schurig Date: Mon, 1 Jun 2026 08:52:12 +0200 Subject: [PATCH] abbb2x: registers.json avec cle registers au 1er niveau (vrai contenu, 11 registres) --- abbb2x/abbb2x-registers.json | 166 ++++------------------------------- 1 file changed, 16 insertions(+), 150 deletions(-) diff --git a/abbb2x/abbb2x-registers.json b/abbb2x/abbb2x-registers.json index dbcec7d..c602824 100644 --- a/abbb2x/abbb2x-registers.json +++ b/abbb2x/abbb2x-registers.json @@ -1,163 +1,29 @@ { "className": "AbbB2x", - "protocol": "BOTH", + "protocol": "RTU", "endianness": "BigEndian", "errorLimitUntilNotReachable": 15, "checkReachableRegister": "voltagePhaseA", + "registers": [ + { "id": "voltagePhaseA", "address": 23296, "size": 2, "type": "uint32", "registerType": "holdingRegister", "readSchedule": "update", "description": "Voltage L1-N", "unit": "V", "defaultValue": "0", "access": "RO" }, + { "id": "voltagePhaseB", "address": 23298, "size": 2, "type": "uint32", "registerType": "holdingRegister", "readSchedule": "update", "description": "Voltage L2-N", "unit": "V", "defaultValue": "0", "access": "RO" }, + { "id": "voltagePhaseC", "address": 23300, "size": 2, "type": "uint32", "registerType": "holdingRegister", "readSchedule": "update", "description": "Voltage L3-N", "unit": "V", "defaultValue": "0", "access": "RO" }, + { "id": "currentPhaseA", "address": 23308, "size": 2, "type": "uint32", "registerType": "holdingRegister", "readSchedule": "update", "description": "Current L1", "unit": "A", "defaultValue": "0", "access": "RO" }, + { "id": "currentPhaseB", "address": 23310, "size": 2, "type": "uint32", "registerType": "holdingRegister", "readSchedule": "update", "description": "Current L2", "unit": "A", "defaultValue": "0", "access": "RO" }, + { "id": "currentPhaseC", "address": 23312, "size": 2, "type": "uint32", "registerType": "holdingRegister", "readSchedule": "update", "description": "Current L3", "unit": "A", "defaultValue": "0", "access": "RO" }, + { "id": "activePowerTotal", "address": 23316, "size": 2, "type": "int32", "registerType": "holdingRegister", "readSchedule": "update", "description": "Active power Total (signed)", "unit": "W", "defaultValue": "0", "access": "RO" }, + { "id": "activePowerPhaseA", "address": 23318, "size": 2, "type": "int32", "registerType": "holdingRegister", "readSchedule": "update", "description": "Active power L1 (signed)", "unit": "W", "defaultValue": "0", "access": "RO" }, + { "id": "activePowerPhaseB", "address": 23320, "size": 2, "type": "int32", "registerType": "holdingRegister", "readSchedule": "update", "description": "Active power L2 (signed)", "unit": "W", "defaultValue": "0", "access": "RO" }, + { "id": "activePowerPhaseC", "address": 23322, "size": 2, "type": "int32", "registerType": "holdingRegister", "readSchedule": "update", "description": "Active power L3 (signed)", "unit": "W", "defaultValue": "0", "access": "RO" }, + { "id": "frequency", "address": 23340, "size": 1, "type": "uint16", "registerType": "holdingRegister", "readSchedule": "update", "description": "Frequency", "unit": "Hz", "defaultValue": "0", "access": "RO" } + ], "blocks": [ - { - "id": "instantaneousValues", - "readSchedule": "update", - "registers": [ - { - "id": "voltagePhaseA", - "address": 23296, - "size": 2, - "type": "uint32", - "unit": "0.1V", - "registerType": "holdingRegister", - "description": "Voltage L1-N", - "defaultValue": "0", - "access": "RO" - }, - { - "id": "voltagePhaseB", - "address": 23298, - "size": 2, - "type": "uint32", - "unit": "0.1V", - "registerType": "holdingRegister", - "description": "Voltage L2-N", - "defaultValue": "0", - "access": "RO" - }, - { - "id": "voltagePhaseC", - "address": 23300, - "size": 2, - "type": "uint32", - "unit": "0.1V", - "registerType": "holdingRegister", - "description": "Voltage L3-N", - "defaultValue": "0", - "access": "RO" - }, - { - "id": "currentPhaseA", - "address": 23308, - "size": 2, - "type": "uint32", - "unit": "0.01A", - "registerType": "holdingRegister", - "description": "Current L1", - "defaultValue": "0", - "access": "RO" - }, - { - "id": "currentPhaseB", - "address": 23310, - "size": 2, - "type": "uint32", - "unit": "0.01A", - "registerType": "holdingRegister", - "description": "Current L2", - "defaultValue": "0", - "access": "RO" - }, - { - "id": "currentPhaseC", - "address": 23312, - "size": 2, - "type": "uint32", - "unit": "0.01A", - "registerType": "holdingRegister", - "description": "Current L3", - "defaultValue": "0", - "access": "RO" - }, - { - "id": "activePowerTotal", - "address": 23316, - "size": 2, - "type": "int32", - "unit": "0.01W", - "registerType": "holdingRegister", - "description": "Active power Total (signed: + import / - export)", - "defaultValue": "0", - "access": "RO" - }, - { - "id": "activePowerPhaseA", - "address": 23318, - "size": 2, - "type": "int32", - "unit": "0.01W", - "registerType": "holdingRegister", - "description": "Active power L1 (signed)", - "defaultValue": "0", - "access": "RO" - }, - { - "id": "activePowerPhaseB", - "address": 23320, - "size": 2, - "type": "int32", - "unit": "0.01W", - "registerType": "holdingRegister", - "description": "Active power L2 (signed)", - "defaultValue": "0", - "access": "RO" - }, - { - "id": "activePowerPhaseC", - "address": 23322, - "size": 2, - "type": "int32", - "unit": "0.01W", - "registerType": "holdingRegister", - "description": "Active power L3 (signed)", - "defaultValue": "0", - "access": "RO" - }, - { - "id": "frequency", - "address": 23340, - "size": 1, - "type": "uint16", - "unit": "0.01Hz", - "registerType": "holdingRegister", - "description": "Frequency", - "defaultValue": "0", - "access": "RO" - } - ] - }, { "id": "energyAccumulators", "readSchedule": "update", "registers": [ - { - "id": "totalEnergyConsumed", - "address": 20480, - "size": 4, - "type": "uint64", - "unit": "0.01kWh", - "registerType": "holdingRegister", - "description": "Active import (total consumed energy)", - "defaultValue": "0", - "access": "RO" - }, - { - "id": "totalEnergyProduced", - "address": 20484, - "size": 4, - "type": "uint64", - "unit": "0.01kWh", - "registerType": "holdingRegister", - "description": "Active export (total produced energy)", - "defaultValue": "0", - "access": "RO" - } + { "id": "totalEnergyConsumed", "address": 20480, "size": 4, "type": "uint64", "registerType": "holdingRegister", "readSchedule": "update", "description": "Active import", "unit": "kWh", "defaultValue": "0", "access": "RO" }, + { "id": "totalEnergyProduced", "address": 20484, "size": 4, "type": "uint64", "registerType": "holdingRegister", "readSchedule": "update", "description": "Active export", "unit": "kWh", "defaultValue": "0", "access": "RO" } ] } ]