flex-tariff-green-slot
The flex-tariff-green-slot block is used to indicate periods during the day when electricity is priced at the lowest or highest level. Electricity price information is determined based on the Day-Ahead Market (RDN). This block allows users to optimize electricity consumption by adjusting its use to periods with the lowest or highest prices.
Configuration parameters
| Parameter name |
Value |
Start time (start_time) |
A field specifying the exact time, including minutes, from which the block should analyze electricity prices. |
End time (end_time) |
A field with the end time, including minutes. The final minute is included, for example 12:00-12:30 = 31 minutes. |
Cheapest/most expensive energy time in minutes (cheapest_time) |
A numeric field specifying the length of the searched period in minutes. Example: for the range 8:00-15:59 and the value 60, the block searches for the best 60-minute period within that range. |
Optimize in continuous mode (continuous_optimization) |
Enabled: for example, for the value 60 minutes, the block finds one best continuous 60-minute slot between the specified start and end times. Disabled: the block searches for multiple shorter periods with the lowest/highest price, without requiring continuity. |
Expected cost (expecting_cost) |
Select whether the block should search for the lowest or the highest energy cost. |
The flex-tariff-green-slot block reads values from input lines marked using the tag block. The table below describes the meaning of individual inputs:
| Input number and name |
Description |
| tag1: Change cheapest/most expensive energy time in minutes |
A value in minutes specifying the length of the searched period. After being sent, the value is remembered by the block until the project is restarted. The block accepts it only if such a period can be found within the configured range, with a 10-minute tolerance. |
| tag2: Optimize in continuous mode |
Sending the value true enables optimization in continuous mode, while sending false disables it. After being sent, the value is remembered by the block until the project is restarted. |
Block outputs
| Output number and name |
Output description |
| 1. Expected cost. |
Returns true when the data indicates that the current time falls within a period matching the requested criterion. Otherwise it returns false. |
| 2. No data. |
Returns false when electricity prices are available. Returns true when electricity prices are not available. |
| 3. Elapsed time. |
The number of minutes already used today while searching for the period with the lowest or highest price. |
| 4. Remaining time. |
The number of minutes still left to use today. |