NRGkick Wallbox| This
function block controls an NRGkick charging cable. In automatic
mode the charging current is controlled so that only the PV
surplus is charged. The block can talk to two device generations. The API variant parameter selects which one is used:
The device should have a fixed IP address in the local network. Communication is strictly local, an internet connection is not required. Important: If the connection to the device is lost, the charging cable keeps the last charging current that was sent and continues to charge. Charging is therefore not stopped automatically. The communication error output reports the failure. |
Inputs |
||
| BA |
Operating mode* |
Operating mode:
|
| LM |
Manual charging current A |
Charging current for manual mode in ampere. If the
input is not connected, the minimum charging current parameter is
used. |
| PU |
Current surplus* |
PV surplus in W. The input must not be limited to 0,
positive and negative values have to arrive at the input so that the
control can react correctly. The surplus type parameter defines
whether a positive or a negative value means surplus. The value has to be the balance at the grid connection point, so it must include the consumption of the wallbox. Otherwise the surplus does not drop while charging and the control ramps up to the maximum charging current. |
| LE | Session kWh setpoint | Maximum charging energy of the current session in kWh. When this value is reached, the operating mode is set to off and the input is reset to 0. At 0 the function is disabled. |
| FG | Enable | Additional enable for the surplus control. If the input is not connected, the control is always enabled. |
Outputs |
||
| ER |
Communication error |
Output is 1 if the device cannot be reached over the
network or if the local API has not been enabled in the NRGkick app.
In the second case the reason is written to the log in plain text. In the operating mode offline the output stays at 0 even if the charging cable cannot be reached. See input operating mode. |
| LA | Current charging energy | Energy charged during the running session in kWh. |
| LG | Total charging energy | Total energy charged with this charging cable in kWh. |
| LL | Current charging power | Current charging power in kW. This value also drives the control: only from 0.5 kW measured charging power onwards is the current raised above the minimum. As long as the vehicle is not charging yet, the setpoint stays at the minimum. |
| LS | Charging status | Output is 1 while charging is in progress. |
| UA | Surplus charging active | Output is 1 if the surplus control is active in automatic mode. |
| SS | Charging current setpoint A | Setpoint that is sent to the charging cable. |
| SI | Charging current setpoint status A | Feedback of the charging current set in the device. The feedback can differ from the setpoint, for example if it is changed in parallel through the NRGkick app. The block detects this and writes its setpoint again. |
| SC | Status code | State of the device:
|
| FC | Error code | Error code of the device, 0 = no error. The meaning of the other codes is listed in the table Error codes of the device further down. |
| LI | Actual charging current A | Charging current that actually flows, in ampere. It can be lower than the setpoint because many vehicles draw less than specified. |
Parameters |
||
| API variant | Type of connection: NRGkick gateway for existing
installations with the older gateway, that is devices of the first
generation (Gen1, V1). NRGkick local API for the current devices of
the second generation (Gen2, V2). A newly inserted block is preset to
the local API. Which generation is present is shown by calling the IP address with the addition /info in a browser, see the description at the beginning of this page. |
|
| IP address |
IP address of the device in the local network, or the
address of the gateway when connected through one. Port 80 is used.
If the port differs from that, it can be appended with a colon for
the local API, for example 192.168.1.30:8080. This is not possible
with the connection through the gateway, there port 80 is always
used. An IP address belongs here and not a device name. The device should always get the same address, so set up a fixed assignment in the router. |
|
| BT MAC charging cable | Bluetooth address of the charging cable. The
parameter is only required for the connection through the gateway
and is therefore only visible when the API variant is set to NRGkick
gateway. The gateway itself is not the charging cable, it only mediates: it is connected to the network and addresses the charging cable through Bluetooth. Several charging cables can be registered on one gateway, so its IP address alone is not sufficient. Only the Bluetooth address determines which charging cable is meant. If a wrong address is entered here, the gateway does answer but does not deliver any measured values, and the output communication error is set. The address consists of six two-digit hexadecimal numbers separated by colons, for example 00:1E:C0:59:30:A0. It can be found with a browser: call the IP address of the gateway with the addition /api/devices, for example http://192.168.1.200/api/devices. The gateway answers with the list of the charging cables registered on it together with their Bluetooth addresses. If only one charging cable is registered, only one address is listed. The devices of the second generation have neither a gateway nor a Bluetooth connection, the parameter does not apply there. |
|
| User local API | User name if authentication has been switched on for the local API in the NRGkick app. If the field stays empty, access is made without authentication. The parameter is only visible when the API variant is set to NRGkick local API, the gateway has no user name. | |
| Password | Password of the device. With the local API it belongs to the user name, with the gateway it is the device password. | |
| Minimum charging current |
Minimum charging current in ampere. Less than 6 A is
not possible, below that no vehicle charges. If less surplus is
available, charging is switched off instead of lowering the current
further. How much power this current means depends on the number of phases of the connection. At 230 V, 6 A result in about 1.4 kW single-phase, about 2.8 kW two-phase and about 4.1 kW three-phase. At least this much has to be available before charging is possible at all. The function block does not take the number of phases into account by itself, it has to be considered for the parameter start at surplus. The number of phases of the attached attachment is shown in the documentation of the local API on the device, under connector at phase_count. |
|
| Maximum charging current |
Maximum charging current in ampere, up to 32 A depending on charging cable and connection. If the device reports a lower value, that value applies. | |
| Gain P |
Speed of the control, with a higher value the output reacts faster to a change at the input. | |
| Surplus type | Setting whether a positive or a negative value at the current surplus input means surplus. | |
| Start at surplus | Threshold in W. This surplus has to be exceeded
before the charging control starts. At least the power that results from the minimum charging current is a sensible value, see parameter minimum charging current. A smaller value does let the control start, but the vehicle then draws the missing power from the grid. |
|
| Control on time | Time in seconds the surplus has to stay above the threshold before the control starts. | |
| Control off time | Time in seconds without surplus until the control is stopped. | |
| Minimum surplus | Minimum surplus in W that is kept as a reserve during control, for example for loads that are switched on for a short time. | |
| Charging current dead band | Only from this deviation in ampere onwards is a new setpoint sent to the device. A small value controls more finely, a larger one reduces the network traffic. | |
| Repeat setpoint | Time in seconds after which the setpoint is sent again even without a change. | |
| Polling interval | Time in seconds between two readings of the measured values. 2 to 60 seconds can be set. With a weak WLAN a larger value helps. | |
| Debug | With On the sent and received data are written to the log. | |
Troubleshooting |
|
| The
first look goes to the outputs communication error, status code
and error code. This already tells whether the connection to the
device cannot be established, whether no vehicle is plugged in at
all, or whether the charging cable itself reports a fault. For everything else set the parameter Debug to On. The requests that are sent (OUT) and the answers of the device (IN) are then written to the program log. Switch Debug off again after troubleshooting, otherwise entries are written on every polling interval. A simple test independent of the function block: open the IP address of the charging cable in a browser, from a device that is in the same network as the controller. If the local API is enabled, a documentation page with the live values of the device appears. If no page comes up, the problem is in the network or in the device and not in the function block. Why a test from a mobile phone can be misleading is described in the section The controller cannot reach the charging cable. |
Messages in the program log
The controller cannot reach the charging cable
The function block always establishes
the connection from the controller to the charging cable. The charging
cable therefore has to be directly reachable from the network of the
controller. This is the most frequent source of errors, because the
charging cable is connected by WLAN while the controller usually sits on
the wired network. If a router separates the two, no connection is
established even though both devices work perfectly on their own.
Testing it correctly: a test with a mobile phone says nothing in
this case, because the phone is in the WLAN and therefore on the side of
the charging cable. The test has to be made from a device that is in the
same network as the controller, ideally from the controller itself. For
this the function block network
monitoring can be added to the project with the IP address of the
charging cable. If it reports the device as not reachable, the fault is
in the network and not in the NRGkick function block.
Common symptoms
Error codes of the device (output error code)
| 0 | No error. |
| 1 | General fault. Disconnect the charging cable from the vehicle and from the supply line and plug it in again. |
| 2 | 32 A attachment on a 16 A unit. Use a matching attachment. |
| 3 | Voltage drop detected. Check the supply line, the plug connection and the fuse protection, frequently the connection is dimensioned too weak. |
| 4 | Unplugging during charging detected. Charging is stopped for safety reasons. Check the plug connection, a loose contact triggers this as well. |
| 5 | Type 2 attachment not authorized. |
| 16 | Residual current detected. The residual current protection of the charging cable has tripped because the vehicle caused a residual current that was too high. If this happens repeatedly, the vehicle has to be checked. |
| 32 | Voltage error in the CP signal (control line to the vehicle). |
| 33 | Impermissible CP signal. |
| 34 | Diode fault in the vehicle. The vehicle does not comply with the standard or is defective. |
| 48 | Self test of the protective earth conductor failed. Have the electrical installation and the connection of the protective earth conductor checked by a qualified electrician. |
| 49 | Self test of the residual current protection failed. |
| 50 | Self test of the relay failed. |
| 51 | Self test of protective earth conductor and residual current protection failed. |
| 52 | Self test of protective earth conductor and relay failed. |
| 53 | Self test of residual current protection and relay failed. |
| 54 | Self test of protective earth conductor, residual current protection and relay failed. |
| 64 | Error of the supply voltage. |
| 65 | Phase shift error. |
| 66 | Overvoltage detected. |
| 67 | Undervoltage detected. At a voltage that is too low the charging cable reduces the charging current by itself in order to support the grid. If the error persists, the supply line is too weak or loaded too heavily. |
| 68 | Overvoltage without protective earth conductor detected. |
| 69 | Undervoltage without protective earth conductor detected. |
| 70 | Underfrequency detected. |
| 71 | Overfrequency detected. |
| 72 | Unknown frequency type. |
| 73 | Unknown grid type. Occurs with grid forms that the charging cable does not know, for example an IT grid or an inverter in island operation. |
| 80 | General overtemperature. Let the charging cable and the attachment cool down, make sure they are laid out freely and reduce the charging current. |
| 81 | Overtemperature in the housing. |
| 82 | Overtemperature in the attachment. |
| 83 | Overtemperature in the domestic plug. If this occurs repeatedly, the socket has to be checked, it is not suitable for the permanent charging current. |
The codes apply to the connection
through the local API. With the older gateway the value comes from the
charging cable itself, the assignment can differ there.
Temperature and protective earth conductor errors as well as a tripped
residual current protection are faults of the installation, of the
socket or of the vehicle. They cannot be solved through the function
block.
Notes from the manufacturer
Help from the manufacturer