> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/codesys-hvac/en/hvac-modbus-library/functionblocks/schneider/schneider_iem3255.md).

# SCHNEIDER\_IEM3255

## `SCHNEIDER_IEM3255` (FB)

`FUNCTION_BLOCK` SCHNEIDER\_IEM3255

### Representation

<figure><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2FLiYHjNLINEIR8gjLsVBx%2FSchneider.png?alt=media&amp;token=7253bea0-dc38-4fab-bd61-e7643236b035" alt=""><figcaption></figcaption></figure>

InOut:

| Scope       | Name                 | Type               | Initial       | Comment                                                                                                             |
| ----------- | -------------------- | ------------------ | ------------- | ------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                | `BOOL`             | TRUE          | Enable / disable communication (TRUE = enable)                                                                      |
| Input       | `byUnitId`           | `BYTE`             | 0             | Address of the device                                                                                               |
| Input       | `xUpdateActual`      | `BOOL`             | FALSE         | <p>Update of actual values (on every rising edge<br>)</p>                                                           |
| Input       | `xUpdateCounter`     | `BOOL`             | FALSE         | <p>Update of the meter readings (on every rising<br>edge)</p>                                                       |
| Input       | `xUpdateInfo`        | `BOOL`             | FALSE         | <p>Update of the serial number / device type (on every<br>rising edge)</p>                                          |
| Input       | `xUpdateSetp`        | `BOOL`             | FALSE         | <p>Update of setpoints (on every rising edge<br>)</p>                                                               |
| Input       | `rTariff`            | `REAL`             | 1.0           | Selection of the desired tariff (1 - 4 = Tariff 1 - Tariff 4)                                                       |
| Input       | `xResCounterPart`    | `BOOL`             | FALSE         | <p>Reset of the partial energy counters (on every rising<br>edge)</p>                                               |
| Input       | `xResError`          | `BOOL`             | FALSE         | <p>Reinitialization of the outputs <code>eErrorCodeCom</code> on the<br>error-free state (on each rising edge)</p>  |
| Inout       | `ModbusClient`       | `ModbusClientBase` |               | Client of the device                                                                                                |
| Output      | `rU1N`               | `REAL`             |               | Phase voltage L1 - N in V                                                                                           |
| Output      | `rU2N`               | `REAL`             |               | Phase voltage L2 - N in V                                                                                           |
| Output      | `rU3N`               | `REAL`             |               | Phase voltage L3 - N in V                                                                                           |
| Output      | `rUXN_Avg`           | `REAL`             |               | Phase voltage - average value in V                                                                                  |
| Output      | `rU12`               | `REAL`             |               | Line voltage L1 - L2 in V                                                                                           |
| Output      | `rU23`               | `REAL`             |               | Line voltage L2 - L3 in V                                                                                           |
| Output      | `rU31`               | `REAL`             |               | Line voltage L3 - L1 in V                                                                                           |
| Output      | `rUXY_Avg`           | `REAL`             |               | Line voltage - average value in V                                                                                   |
| Output      | `rIL1`               | `REAL`             |               | Line current L1 in A                                                                                                |
| Output      | `rIL2`               | `REAL`             |               | Line current L2 in A                                                                                                |
| Output      | `rIL3`               | `REAL`             |               | Line current L3 in A                                                                                                |
| Output      | `rILX_Avg`           | `REAL`             |               | Line current - average value in A                                                                                   |
| Output      | `rPowerFactorTot`    | `REAL`             |               | Power factor - total in \[1]                                                                                        |
| Output      | `rActivePowerL1`     | `REAL`             |               | Active power L1 in W                                                                                                |
| Output      | `rActivePowerL2`     | `REAL`             |               | Active power L2 in W                                                                                                |
| Output      | `rActivePowerL3`     | `REAL`             |               | Active power L3 in W                                                                                                |
| Output      | `rActivePowerTot`    | `REAL`             |               | Active power - total in W                                                                                           |
| Output      | `rApparentPowerTot`  | `REAL`             |               | Apparent power - total in VA                                                                                        |
| Output      | `rReactivePowerTot`  | `REAL`             |               | Reactive power - total in var                                                                                       |
| Output      | `rFrequency`         | `REAL`             |               | Frequency in Hz                                                                                                     |
| Output      | `rActiveTariff`      | `REAL`             |               | <p>Active tariff (0 = no multi-tariff, 1 - 4 = Tariff 1 - 4<br>)</p>                                                |
| Output      | `rActEneImpTotal`    | `REAL`             |               | <p>Imported active energy - total in kWh (non-resettable<br>)</p>                                                   |
| Output      | `rActEneExpTotal`    | `REAL`             |               | Exported active energy - total in kWh (non-resettable)                                                              |
| Output      | `rReaEneImpTotal`    | `REAL`             |               | <p>Imported reactive energy - total in kVarh (non-resettable<br>)</p>                                               |
| Output      | `rReaEneExpTotal`    | `REAL`             |               | <p>Exported reactive energy - total in kVarh (non-resettable<br>)</p>                                               |
| Output      | `rActEneImpPart`     | `REAL`             |               | Imported active energy - partial amount in kWh (resettable)                                                         |
| Output      | `rReaEneImpPart`     | `REAL`             |               | <p>Imported reactive energy - partial amount in kVarh (resettable<br>)</p>                                          |
| Output      | `rActEneImpP1`       | `REAL`             |               | Imported active energy - Phase 1 in kWh (resettable)                                                                |
| Output      | `rActEneImpP2`       | `REAL`             |               | Imported active energy - Phase 2 in kWh (resettable)                                                                |
| Output      | `rActEneImpP3`       | `REAL`             |               | Imported active energy - Phase 3 in kWh (resettable)                                                                |
| Output      | `rActEneImpTotT1`    | `REAL`             |               | <p>Imported active energy - total - Tariff 1 in kWh (<br>resettable)</p>                                            |
| Output      | `rActEneImpTotT2`    | `REAL`             |               | <p>Imported active energy - total - Tariff 2 in kWh (<br>resettable)</p>                                            |
| Output      | `rActEneImpTotT3`    | `REAL`             |               | <p>Imported active energy - total - Tariff 3 in kWh (<br>resettable)</p>                                            |
| Output      | `rActEneImpTotT4`    | `REAL`             |               | <p>Imported active energy - total - Tariff 4 in kWh (<br>resettable)</p>                                            |
| Output      | `dwSerialNum`        | `DWORD`            |               | Meter serial number                                                                                                 |
| Output      | `sDeviceName`        | `STRING`           |               | Meter name (20 UTF8 characters)                                                                                     |
| Output      | `sDeviceType`        | `STRING`           |               | Meter type (20 UTF8 characters)                                                                                     |
| Output      | `xAlarm`             | `BOOL`             | FALSE         | Collective fault (TRUE = fault)                                                                                     |
| Output      | `xAlarmCom`          | `BOOL`             | FALSE         | Collective fault - communication (TRUE = fault)                                                                     |
| Output      | `eErrorCodeCom`      | ModbusErrorCode    |               | Error code - communication (0 = no error)                                                                           |
| Output      | `xBusy`              | `BOOL`             |               | Communication indicator (TRUE = communication)                                                                      |
| Input Const | `diAdrOffset`        | `DINT`             | -1            | <p>Offset for calculating the Modbus addresses (from the Modbus<br>registers) (permitted range: -1, 0, +1)</p>      |
| Input Const | `tTimeUpdateSetp`    | `TIME`             | TIME#45s0ms   | <p>Update interval for the operations that are influenced by the input<br><code>xUpdateSetp</code> influenced</p>   |
| Input Const | `tTimeUpdateCounter` | `TIME`             | TIME#60m0s0ms | Update interval for the meter readings (Istwerte\_2)                                                                |
| Input Const | `tTimeUpdateActual`  | `TIME`             | TIME#1m0s0ms  | <p>Update interval for the operations that are influenced by the input<br><code>xUpdateActual</code> influenced</p> |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-modbus-library/functionblocks/schneider/schneider_iem3255.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
