Open 8. Objects to define the COSEM objects exposed by the meter, their initial values and their access rights.
An object combines a class/version, logical name and values. Its presence in the project does not make it available to every client: association membership and member permissions also apply.
Object list and editor
| Setting or control | Effect |
|---|---|
| Object type selector and Add object | Adds an instance of a class supported by the generator. Security Setup is managed through the Security tab. |
| Description, Object type, Logical name filters | Limit the displayed list without modifying configuration. |
| Edit object | Opens the selected object's editable definition. |
| Name | Sets the descriptive object name. |
| Stable C symbol | Sets the identifier used for this object in generated C code. Keep it stable after application code starts referring to it. It must be a valid, unique, nonreserved identifier. |
| OBIS | Sets the six-part logical name. Each component is a decimal byte (0–255), and names must be unique in the project. The generated association namespace is reserved. |
| Object ID | Shows the stable internal identity used by references and project updates. |
| SN base name | Sets the decimal base address when Short Name referencing is selected. Address ranges must be aligned and nonoverlapping. |
| Attribute N (JSON value) | Sets the initial value of a configurable attribute. The required JSON structure depends on its COSEM class and attribute index. |
| Edit access rights | Opens per-association attribute and method rights. |
| Remove object | Removes the object from the configuration; review affected rights, captures and other dependencies afterward. |
| Close editor | Closes the object's editing panel. Save the project separately using Export JSON. |
Newly added objects can start with the same example logical name. Assign each its intended unique OBIS before validation. An imported class/version without implemented code generation is reported by validation.
Initial value examples
For a Register (class 3), attribute 2 is an integer. Attribute 3 is a scaler/unit structure such as {"scaler":0,"unit":27}. The scaler controls the power-of-ten conversion and the unit identifies the physical unit; match both to the measurement being supplied.
For Clock (class 8), attributes 2, 5 and 6 use Unix-time inputs in this editor. Attribute 3 is the time-zone deviation in minutes, attribute 4 the status, attribute 7 the daylight-saving deviation, attribute 8 a boolean enabling daylight saving, and attribute 9 the clock base.
For ESP32-S3's serial-number Data object at 0.0.96.1.0.255, attribute 2 is generated from factory identity and is read-only in the editor.
These are generator inputs. Actual measurement values and physical operations must be connected through the generated application's callbacks and hardware functions. For the underlying class definitions, see COSEM object documentation.
Attribute and method rights
The access dialog shows each association separately. A hidden object must first be included using Associations > Available objects. For an included object, select the permitted access for each attribute and method, then choose Save. Cancel discards the draft.
Read permits reading the member, Write permits modifying it, and combined access permits both where offered. None denies access. Additional authentication-related choices, when offered, are constraints on that member's use. Method access determines whether the client can invoke an implemented operation.
Rights apply to the selected association. Public read access and authenticated management write access can therefore coexist for the same object. A method marked not implemented remains unavailable regardless of a desired permission.
Persistent Profile Generic history
Class 7 objects can use persistent FIFO history. Some India name-plate and scaler profiles are live single-row views; they read current source values instead of maintaining stored history.
| Setting | Effect |
|---|---|
| Persistent history directory | Selects the configured history storage location used by the storage backend. |
| History flash partition, ESP32 | Reserves flash capacity for persistent profile history. It must fit the device layout and selected profile reservations. |
| Enable persistent FIFO history | Adds persistent storage configuration to a supported history profile. |
| Storage reservation | Reserves bytes for this profile's records. The capacity calculation includes record overhead and a spare slot. |
| Maximum Compact Data row | Bounds the encoded row size in bytes. It must accommodate every configured capture value. |
| Profile entries | Sets the retained entry count. It cannot exceed the capacity of the reservation. FIFO retention replaces older entries as the history fills. |
| Maximum capture columns | Bounds the number of columns supported by the profile. |
| Maximum entries with this reservation | Displays calculated capacity, which can differ from reservation divided by row size because records have overhead. |
| Capture interval | Sets periodic capture in seconds. Zero disables scheduled capture. |
| Source object | Selects the object supplying a capture column. The editor offers Data, Register, Extended Register and Clock sources. |
| Attribute | Selects which source attribute is captured. |
| Optional AXDR column bound | Bounds the encoded size for the selected column. Use a limit large enough for its actual value. |
| Add capture column / Remove column | Changes the ordered set of values stored in each row. Recheck row capacity afterward. |
The initial storage controls, when enabled, default to a 65536-byte reservation, a 1024-byte row limit, 32 entries and 16 capture columns. These are starting values, not a sizing recommendation for every meter.
Push Setup
For class 40, attribute 3 describes the transport destination, for example {"service":0,"destination":"host:port","message":0}. Configure the actual HES destination before enabling delivery.
Push values selects source objects and attribute indices for the values sent. Add push value and Remove value change that list. Destination, source values, delivery scheduling and the push association's protection must agree; adding a source alone does not schedule delivery.
Run Validation after changing objects, references, captures or rights.
Return to the manual.