KEBA KEBA KeContact P40 Modbus TCP template

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

NameUnitAccessAddress (Hidden until you enter your email)Function (hidden)Type (hidden)
Charging StateRead1000FC03uint32
Cable StateRead1004FC03uint32
Error CodeRead1006FC03uint32
Current L1ARead1008FC03uint32
Current L2ARead1010FC03uint32
Current L3ARead
Active PowerWRead
Voltage L1VRead
Voltage L2VRead
Voltage L3VRead
Power Factor%Read
Total EnergykWhRead
Session EnergykWhRead
Max Charging CurrentARead
Max Supported CurrentARead
Fast Charging StateRead
Phase Switching SourceRead
Phase Switching StateRead
Failsafe Current SettingmARead
Failsafe Timeout SettingsRead
RFID TagRead
Set Charging CurrentmAWrite
Set Energy LimitkWhWrite
Unlock PlugWrite
Enable Charging StationWrite
Set Failsafe CurrentmAWrite
Set Failsafe TimeoutsWrite
Set Phase Switching SourceWrite
Trigger Phase SwitchWrite
Activate Fast ChargingWrite
Serial NumberRead
Product TypeRead
Software VersionRead
Hardware Revision DeviceRead
Hardware Revision KC-MS10Read

Loading registers…

The ModbusCloud Gateway, front at an angle, with the RS485 terminal and the antenna connectors

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

  1. Connect the wallbox to the same network as the ModbusCloud Gateway, by cable to the LAN port or through the local switch.

  2. Enable Modbus TCP in the KEBA eMobility App and note the IP address, the port (default 502) and the unit ID (default 255).

  3. In ModbusCloud, add a Modbus TCP device with that IP address, port and unit ID, and import this template.

  4. 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?

Electrician working in an open distribution board