> For the complete documentation index, see [llms.txt](https://docs.smart-stuff.nl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smart-stuff.nl/p1-modbus-dongle/firmware-v2-current/register-mapping/alfen.md).

# Alfen

## Mapping behaviour

* Device Manager mapping value: `3`
* Profile: `ALFEN`
* Read function codes: `FC03` and `FC04`
* Register widths: mixed 16-bit and 32-bit
* 32-bit word order: high word first (MSW-LSW)
* Unmapped register handling: Zero-filled

{% hint style="info" %}
Device ID, baud rate and serial format are global firmware v2 settings. They are not changed when this mapping is selected.
{% endhint %}

## Register overview

| Address (decimal / hex) | Words | Type     | Source or fixed value | Conversion | Missing         |
| ----------------------- | ----: | -------- | --------------------- | ---------- | --------------- |
| `50528` / `0xC560`      |     2 | `uint32` | `current_l1_a`        | scale 1000 | source\_default |
| `50530` / `0xC562`      |     2 | `uint32` | `current_l2_a`        | scale 1000 | source\_default |
| `50532` / `0xC564`      |     2 | `uint32` | `current_l3_a`        | scale 1000 | source\_default |
| `50534` / `0xC566`      |     2 | `uint32` | `current_total_a`     | scale 1000 | source\_default |
| `50544` / `0xC570`      |     2 | `int32`  | `net_power_l1_kw`     | scale 100  | source\_default |
| `50546` / `0xC572`      |     2 | `int32`  | `net_power_l2_kw`     | scale 100  | source\_default |
| `50548` / `0xC574`      |     2 | `int32`  | `net_power_l3_kw`     | scale 100  | source\_default |

## Reading the table

* **Words** is the number of consecutive 16-bit Modbus registers occupied by the entry.
* **Source** names correspond directly to the firmware v2 recipe source.
* **Conversion** records the exact scale, transform or direction handling configured by the recipe.
* This page is generated from `mb_recipe.h` and `modbus_profiles.h` for firmware 2.3.0.
