stationeers.de Mod workshop · Dominik1199
DE Sign in
  1. Home
  2. IC10 academy
  3. Day 267

Day 267 of 365 · Pro · Month 9: Logistics and greenhouse

Recap: energy

Looking back on three months of energy: solar, batteries, load shedding, transformers and grids joined in one chip, with a stricter reserve at night.

Lesson 20 min Week 39

What you learn today

  • Connect solar and batteries
  • Combine load shedding and grids
  • Spot gaps

The pro level is heading for the exam. This week you bring back the big topics and connect them. Today: energy. You already know every part, what is new is how they play together.

The toolbox

TopicCoreDay
Sun positiondaylight sensor, converting angles185–188
BatteriesRatio; station battery Mode = charge level 0–6190
Area power controlMode = PowerMode (Idle 0 … Charged 4)191
Load sheddingstages with hysteresis, unimportant things first192
Generatoron with little reserve, off when full193
TransformerSetting limits the power passed on, in W199
Cablesnormal 5,000 W, heavy 100,000 W, super heavy 500,000 W200
Gridsmeasure separately, control the transfer207

Connecting solar and batteries

During the day the sun recharges, at night it does not. The same reserve therefore means something different at different times of day: 35 % at noon is comfortable, 35 % in the evening gets tight. A chip can take that into account by making the shedding limit depend on daylight:

lbn night SENSOR HASH("Sonne") SolarIrradiance Average
sgt night night SUN
seqz night night                     # 1 = night or no sensor
select limit night C_NIGHT C_DAY

If the sensor fails, sgt returns 0 and seqz turns that into “night”. That is the careful direction: better to shed too early than to sit in the dark without power.

Combining load shedding and grids

Load shedding switches loads off. A transformer can do more: it throttles a whole grid without switching it off. If the workshop hangs behind a transformer, it only gets 1,000 W instead of 5,000 W when the reserve is low. Lights and ventilation there keep running, the arc furnace has to wait.

slt tmp level W_OFF
seqz power ok                        # batteries missing?
or tmp tmp power
select power tmp W_SAVE W_FULL
sbn TRAFO HASH("Werkstatt") Setting power
Warning

A NaN in the transformer's Setting is not a safe state. If the batteries are missing, the chip therefore explicitly writes the saving value – not the result of a calculation with NaN.

Spotting gaps

Go through the table above and ask yourself for each row: could I write this now without looking it up? Wherever you hesitate, a look back at the given day is worth it. Typical gaps at this point:

  • Why does load shedding need a hysteresis too?
  • What does Average over batteries return when none is on the network?
  • What happens behind a transformer when the supply exactly equals the demand?

Exercise

Task

Connect batteries, daylight and workshop grid:

  • light “Komfort” off below the limit (day 30 %, night or without sensor 50 %), back on from limit + 15 %
  • transformer “Werkstatt”: Setting 5000, below 20 % reserve or without batteries 1000
  • display “Reserve” in whole percent, −1 without batteries
  • without batteries comfort stays off

Hints

Hint 1

Night: sgt with SUN, then seqz – this turns NaN into night. Limit with select.

Hint 2

Comfort like load shedding: sge/and with the limit, sge/or with limit + BAND, then and … ok.

Hint 3

Transformer: slt with W_OFF or missing batteries, then select power tmp W_SAVE W_FULL.

Quiz

4 questions. You pass from 60 % – the server does the grading.

Complete the day

  • Passed the simulator exercise
  • Passed the quiz with at least 60 %

Without an account progress is saved in this browser only.

Report a mistake in this lesson

Please sign in to report. Sign in

Esc
↑ ↓ selectEnter open/ opens search anywhere