Wallbox

The Wallbox function block is used to control a charging station for electric vehicles.

Charging a vehicle with the right power at the right time is essential for efficient energy management.

Therefore the function block comes with up to five customizable charging modes with which the charging power can be limited by individual logic.

With a dedicated input a charging session can be paused to avoid grid power peaks or equal.

Table of Contents


Inputs↑

AbbreviationSummaryDescriptionUnitValue Range
EcEnable chargingA pulse <1s activates charging.
A pulse >=1s or permanent on, activates charging and switches off again after a falling edge.
If this input is inverted and not connected, charging is allowed.
Eco charging if managed by Wallbox Manager.
-0/1
EcpEnable charging priorityA pulse <1s activates charging in Priority mode, managed by Wallbox Manager.
A pulse >=1s or permanent on, activates Priority and ends the charging process completely after a falling edge.
This input is only visible in certain configurations.
-0/1
VcVehicle Connected-0/1
CpCurrent charging power-∞
MrMeter reading-0...∞
CacCharging active-0/1
Sm1-5Set charging mode 1-5 This input is only visible in certain configurations.-0/1
Lm1-5Limit charging mode 1-5Define up to 5 charging modes with different charging limits. This input is only visible in certain configurations.kW∞
Pm1-5Price charging mode 1-5Define up to 5 charging modes with different prices per kWh. Enter the price in full currency units (e.g. 30 = €30/kWh, 0.30 = €0.30/kWh). This input is only visible in certain configurations.-∞
PmmPrice charging mode manualPmm is Manual charging mode 99 (App only).
This input is only visible in certain configurations.
-∞
UidUser ID--
LsLoad sheddingIf activated, the device pauses charging to prevent grid power peaks or similar issues, remaining paused as long as load shedding is active.
If an analog value is connected (e.g. from the Load Manager), it limits the charging power in kW. Below the minimum charging power charging pauses.
-0/1
OffOff / LockPulse (< 200 ms): Resets outputs except meter outputs.
Pulse (> 200 ms): Block is locked.
Dominating input.
Resetting the Wallbox with input Off sets the mode from the (Muv) parameter.
-0/1
RReset meter reading outputs-0/1
VIDVehicle IDVehicle ID or Hardware ID of the vehicle.--
SoCState of chargeCurrent battery state of charge of the connected vehicle.%∞
EdEnergy demandEnergy requested by the connected vehicle for the current charging session.kWh∞




Parameters↑

AbbreviationSummaryDescriptionUnitValue RangeDefault Value
MuvMode after unplugging the vehicle0 = Keep current mode
1-5 = Switch to mode 1-5
This parameter is only visible in certain configurations.
-∞0
CfpConnection fee per hourPrice per hour while the vehicle is connected.
This parameter is only visible in certain configurations.
Currency∞0
MroMeter reading offsetValue is added to output (Mr).-∞0




Outputs↑

AbbreviationSummaryDescriptionUnitValue Range
CaCharging allowedCharging is allowed when:
-Ec (Enable Charging) is active
-Ec is inverted and not connected
-Charging is not disabled via Ls or Off
-Charging limit is not below minimal charging power.
-0/1
VcVehicle connected-0/1
CpCurrent charging power-∞
MCurrent charging modeCharging mode 1-5. 99 = Manual mode (App only)-∞
Managed by Wallbox Manager: Current charging mode0 = Charging not allowed, 1 = Eco charging allowed, 2 = Priority charging allowed-∞
TpTarget charging powerTarget charging power according to current mode.
Output is 0 if charging Limit is below minimal charging power or output Ca is 0.
kW∞
LsLoad shedding-0/1
MrMeter reading-∞
CccConsumption current charge-∞
ClcConsumption last charge-∞
CdConsumption today-∞
CwConsumption this week-∞
CmConsumption this month-∞
CyConsumption this year-∞
LclLast charge logText output of
- Vc On and Off time
- Duration (Vc on/off)
- Charged energy (kWh)
- User ID.
--
CacCharging activeIf the Cac input is unused and no LOXONE Wallbox is connected, the output is 1 when the vehicle is connected and the Cp input is greater than the minimum charging power.-0/1
CldConsumption yesterday-∞
ClmConsumption last month-∞
ClyConsumption last year-∞
CclcCharging costs last chargeProvides the calculated costs of the last charging session.
If a charging session is active, its running costs are output.
-∞
UidUser Id--
SePulse Session ended-0/1
SsPulse Session started-0/1
SoCState of chargeCurrent battery state of charge of the connected vehicle.%∞
EdEnergy demandEnergy requested by the connected vehicle for the current charging session.kWh∞
VIDVehicle IDProvides the Vehicle ID of the connected EV. If no Vehicle ID exists, the Hardware ID is shown. Empty if no vehicle is detected.--
APIAPI ConnectorIntelligent API based connector.
Can link several functions between devices and blocks.
API Commands
--




Properties↑

SummaryDescriptionUnitValue RangeDefault Value
Max. charging powerMax. charging power [kW]kW0...∞11
Min. charging powerMin. charging power [kW]kW0...∞4.16
ConfigurationConfiguration of the Inputs and Outputs Used.---
Number of messagesMaximum number of saved messages.-1...100100
Relative meteringActive: The physical meter only sends partial quantities at intervals (relative), the block adds them up and uses them to form the meter reading.
Not active: The physical meter provides its own total meter reading (absolute), the function block only maps it.
---
Report invalid Meter ReadingIf checked, you will be notified if invalid Meter Reading values have been detected. For instance, when a physical counter sends unrealistic values due to transmission errors.---
Regional regulationSelect the regulation applicable to your region. The Wallbox will adjust its behavior accordingly (e.g., voltage/frequency response). Additional equipment may be required (e.g. Energy Meter 3-Phase Tree).---



Charging session↑

A charging session is the time between connecting and disconnecting a vehicle. The session can be paused / resumed with inputs Ec, Ls or App.

Charge log on output Lcl is set when starting / ending a session or if the userID changes during an active session.

If a different user starts charging while the vehicle is already connected, the session can only be reassigned if that user has a valid User ID set. Users without a User ID cannot take over an active charging session. In this case, the previous valid session user remains assigned in the charging history.


Selection Mode Inputs (Sm1–Sm5)↑

The inputs Sm1–Sm5 react only to the rising edge of the signal.

When a mode is activated through one of the Sm inputs, it remains active until another mode is triggered.

Deactivating the input does not restore the previously active mode.


Minimum and maximum Limits↑

Minimum and maximum limits define the allowed range of Output Tp (Target charging Limit).

Charging Limit can be configured for each mode via Dialog/App, or via logic in Inputs Lm1-5.

If the charging limit falls below the minimum charging limit, charging is paused and target charging limit is set to 0.

The actual charging power is determined by the vehicle but will not exceed the maximum power settings.


Calculation of charging costs↑

The calculated costs of a charging session are provided at the Cclc output.
This is done via the energy consumed and it’s price per charging mode, and the connection fee per hour.

During a charging session, the current costs are output and continuously updated.
After the end of the session, the costs remain available at the output until the start of the next session.

Calculation:
kWh mode 1 * price mode 1 + kWh mode 2 * price mode 2 + (other modes) + duration of charging session * Cfp

The calculation is done on a rolling basis, meaning changes in modes and prices are considered from the moment of the change onward, not retroactively.

When managed by the Wallbox Manager, its prices are used instead.

By setting separate prices for energy and connection fees, users can tailor cost calculations to their preferences.
With enough Wallboxes, it makes sense to determine the costs primarily by energy prices.
In cases where the number of Wallboxes is limited, opting for a higher hourly connection fee (Cfp) helps prevent prolonged vehicle occupancy.


Programming example↑

In the properties window, you can define the number of entries in the history, the minimum and maximum charging power as well as a connection fee per hour:

Double click on the block to open the configuration window, here up to 5 charging modes can be created:

With additional logic at the input (Ec), charging is enabled when a user is successfully authenticated via the NFC Code Touch and the vehicle is connected.
An energy meter supplies the current charging power and meter reading to the function block.
The ID of the authenticated user is transferred at the "Uid" input.


Autostart Charging↑

Autostart determines whether charging can automatically be started when a vehicle is connected. The Wallbox can authorize charging locally or request authorization from connected Authentication NFC Code Touch function blocks. When NFC authorization is used, the connected Vehicle ID (MAC address) is used to identify the user. Charging is permitted only if the vehicle exists under a user and the identified user has permission to use the Wallbox.

Ec configurationNFC API connectionAuthorization and charging behavior
Not connected and invertedNoneAutostart is not handled by the Wallbox. Charging is always permitted.
Not connected and not invertedNoneThe Wallbox handles autostart locally. Charging is permitted only after verifying that the user is authorized to use the Wallbox.
Not connectedConnected to one or more NFC blocksThe Wallbox requests authorization from the connected Authentication NFC Code Touch function blocks. The Vehicle ID (MAC address) is used to identify the user. If the user is authorized, the Wallbox internally generates the Ec pulse to automatically activate charging.
ConnectedConnected to one or more NFC blocksThe Wallbox forwards the authorization request to all connected Authentication NFC Code Touch function blocks. The Wallbox waits for the charging permission provided via the connected Ec input. The Ec input therefore remains the source of the charging permission.

Authorization Sequence for Charging↑

In commercial or communal installations where charging process authorization is necessary, the vehicle must be connected first, and only then can the charging be authorized via a pulse on Ec or Ecp (e.g., through NFC). If not, no charging will occur.
This sequence is critical because otherwise, an unauthorized vehicle could potentially charge at the expense of another.

In the programming example above, programming has been developed that allows for prior authorization. Following this, the charging process can be initiated for a limited time by connecting the vehicle.

In private households, the Ec input can often remain permanently active (negated) when unauthorized charging is not a concern. Under these circumstances, charging is generally permitted.


Detection of Invalid Meter Readings↑

The Wallbox function block detects and ignores invalid readings at the Mr input(s), which may result from faulty data transmission from a physical absolute value meter.

In general, only increasing or constant meter readings are allowed; decreasing or jumping to 0 readings are discarded.

Unrealistically high increases in meter readings are discarded if:
- The change in value is greater than the total previous consumption and greater than 10000.
- If less than 8 hours have passed since the last value change.


Regional Regulation↑

Regulations based on energy grid measurements can be configured with the setting 'Regional regulation'

This functionality requires a connected Energy Meter 3 Phase Tree to monitor relevant parameters for the specific regulation.

For Mode 'TOR 1.2 (AT / OVE R37)', charging is stopped when the grid voltage drops below the configurated settings and then resumed when conditions for Section 5.7.4.2 of this regulations are met again.

The target charging power (Tp) is gradually increased once per minute by 10% of the configured maximum charging power, starting with minimum charging power.