-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Hello,
Unfortunately Kostal has forced an update to a new SW version of the energy meter KSEM (SW 2.6.2)
All registers are shifted by one entry.
Don't know how to adapt to it automatically or if this is now compliant to other SUNSPEC implementation.
Hotfix:
#define SUNSPEC_OFFSET (+1) // =0 for SW 2.6.1 and lower
#define SUNSPEC_BASE (40072+SUNSPEC_OFFSET)
#define SUNSPEC_VOLTAGE (40077+SUNSPEC_OFFSET)
#define SUNSPEC_VOLTAGE_SCALE (40084+SUNSPEC_OFFSET)
#define SUNSPEC_REAL_POWER (40088+SUNSPEC_OFFSET)
#define SUNSPEC_REAL_POWER_SCALE (40091+SUNSPEC_OFFSET)
#define SUNSPEC_APPARANT_POWER (40093+SUNSPEC_OFFSET)
#define SUNSPEC_APPARANT_POWER_SCALE (40096+SUNSPEC_OFFSET)
#define SUNSPEC_CURRENT (40072+SUNSPEC_OFFSET)
#define SUNSPEC_CURRENT_SCALE (40075+SUNSPEC_OFFSET)
#define SUNSPEC_POWER_FACTOR (40103+SUNSPEC_OFFSET)
#define SUNSPEC_POWER_FACTOR_SCALE (40106+SUNSPEC_OFFSET)
#define SUNSPEC_FREQUENCY (40085+SUNSPEC_OFFSET)
#define SUNSPEC_FREQUENCY_SCALE (40086+SUNSPEC_OFFSET)
#define SUNSPEC_REAL_ENERGY_EXPORTED (40109+SUNSPEC_OFFSET)
#define SUNSPEC_REAL_IMPORTED_EXPORTED (40117+SUNSPEC_OFFSET)
#define SUNSPEC_REAL_ENERGY_SCALE (40123+SUNSPEC_OFFSET)