
KEBA KeContact P40
AC wallbox that reports charging state, phase currents, power and energy, with remote current control.
The KEBA KeContact P40 is an AC wallbox that charges electric vehicles at home and at work with up to 22 kW. This Modbus TCP template reads charging state, phase currents, voltages, power and energy, and lets you set the charging current, energy limit and phase switching from ModbusCloud.
- Protocol
- Modbus TCP
- Connection
- Ethernet, Modbus TCP
- Registers
- 35, read and write
- Brand
- KEBA
- Key readings
- Charging state · Cable state · Current per phase · Voltage per phase · Active power · Total energy · Session energy
- Available commands
- Charging current · Session energy limit · Enable or disable · Phase switching · Failsafe current and timeout
- Compatible models
- KeContact P40 · KeContact P40 Pro
- Last updated
Registers (35)
26 read, 9 write
| Name | Unit | Access | Address (Hidden until you enter your email) | Function (hidden) | Type (hidden) |
|---|---|---|---|---|---|
| Charging State | Read | 1000 | FC03 | uint32 | |
| Cable State | Read | 1004 | FC03 | uint32 | |
| Error Code | Read | 1006 | FC03 | uint32 | |
| Current L1 | A | Read | 1008 | FC03 | uint32 |
| Current L2 | A | Read | 1010 | FC03 | uint32 |
| Current L3 | A | Read | |||
| Active Power | W | Read | |||
| Voltage L1 | V | Read | |||
| Voltage L2 | V | Read | |||
| Voltage L3 | V | Read | |||
| Power Factor | % | Read | |||
| Total Energy | kWh | Read | |||
| Session Energy | kWh | Read | |||
| Max Charging Current | A | Read | |||
| Max Supported Current | A | Read | |||
| Fast Charging State | Read | ||||
| Phase Switching Source | Read | ||||
| Phase Switching State | Read | ||||
| Failsafe Current Setting | mA | Read | |||
| Failsafe Timeout Setting | s | Read | |||
| RFID Tag | Read | ||||
| Set Charging Current | mA | Write | |||
| Set Energy Limit | kWh | Write | |||
| Unlock Plug | Write | ||||
| Enable Charging Station | Write | ||||
| Set Failsafe Current | mA | Write | |||
| Set Failsafe Timeout | s | Write | |||
| Set Phase Switching Source | Write | ||||
| Trigger Phase Switch | Write | ||||
| Activate Fast Charging | Write | ||||
| Serial Number | Read | ||||
| Product Type | Read | ||||
| Software Version | Read | ||||
| Hardware Revision Device | Read | ||||
| Hardware Revision KC-MS10 | Read |
Loading registers…

Send your device list
If a device is not in the library yet, we build the template for free as soon as we have the register data.
Use cases
- Show charging state, phase currents and power of each wallbox on one dashboard.
- Get an email alert when the error code is not 0 or the station reports an error state.
- Keep a year of session and total energy history to report charging per car park or tenant.
- Lower the charging current from ModbusCloud when the building connection gets close to its limit.
- Set a failsafe current and timeout so the wallbox falls back to a safe value if control stops.
Installation
Connect the wallbox to the same network as the ModbusCloud Gateway, by cable to the LAN port or through the local switch.
Enable Modbus TCP in the KEBA eMobility App and note the IP address, the port (default 502) and the unit ID (default 255).
In ModbusCloud, add a Modbus TCP device with that IP address, port and unit ID, and import this template.
Check that Charging State, Cable State and the voltages come in; plug in a car to see the currents and power change.
Things to watch for
The wallbox does not answer on port 502. What should I check?
Modbus TCP is off by default on the P40. Enable it in the KEBA eMobility App, check the port there, and make sure the Gateway and wallbox are in the same subnet. The default unit ID is 255; if you set another value in ModbusCloud the station does not reply.
Why do some registers return errors when they are read together?
The P40 answers one register per request with at most 2 words. Requests that cover several registers at once fail. Keep each register as its own read, and do not poll faster than every half second.
Total energy looks ten times too low. Why?
Software below version 1.2.1 sends total and session energy in Wh instead of 0.1 Wh. Update the wallbox software, or keep in mind that the values are a factor 10 low until then. Software Version shows the installed release, for example 10201 for 1.2.1.
What should I know before writing the charging current?
Write 0 to pause charging or a value between 6000 and 32000 mA. The value stays until the next write. The wallbox accepts a write every 5 seconds, ignores the setting while fast charging is active, and should not be controlled by an energy manager and an external meter at the same time.
Phase switching does nothing. What is missing?
Trigger Phase Switch only works when Set Phase Switching Source is 3 (Modbus TCP) and the wallbox has the phase switching option. A running session pauses while the phases change and then continues.
Want to see how it works?













