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

Day 225 of 365 · Pro · Month 8: Production

The arc furnace

The arc furnace melts ore with electricity instead of gas. Every stack needs an Activate, on a power shortage it switches itself off – the chip releases it by battery level and starts the stacks.

Lesson 18 min Week 33

What you learn today

  • Smelt ore with electricity
  • Power and throughput
  • Plan the power demand

No fuel, no pressure, no explosion risk: the arc furnace simply melts pure ore with electricity. In return it wants the power exactly when it needs it – and if the grid does not give it, it calls it a day.

What it can do

The arc furnace (StructureArcFurnace) takes ore in slot 0 and outputs ingots in slot 1. It melts one piece of ore after the other. The game's recipe data give per piece:

OreTimeEnergy
Iron1 s200 J
Silicon3 s100 J
Copper3 s500 J
Lead, nickel, silver5 s1,000 J
Gold6 s2,000 J

So a stack of 50 iron ore needs 50 seconds and 10,000 J. It cannot do alloys – for those you still need the furnace with gas.

Readable are On, Power, Activate, Reagents, RecipeHash, ImportCount, ExportCount and both slots. Idle exists as well, but on the arc furnace the game never changes the value: it is always 1, whether the furnace smelts or not.

Activate: every stack needs a start

On 1 alone smelts nothing. The furnace only begins when Activate goes to 1 – by hand with the button on the device or from the chip. Then it smelts the whole stack from slot 0, piece by piece. When the stack is through, it sets Activate back to 0 by itself and outputs the ingots. The next stack needs Activate 1 again.

lbns tmp ARC HASH("Lichtbogen") 0 Occupied Average
and tmp tmp power
and tmp tmp free
seqz ok act
and tmp tmp ok
beqz tmp count
sbn ARC HASH("Lichtbogen") Activate START
count:

So the chip only writes Activate when ore is waiting, the furnace is on and released and no stack is running. That also makes Activate your “smelting right now” signal.

Tip

The game only accepts a written Activate when the furnace is already on. If you switch On and Activate in the same tick, On has not gone through yet – the start is lost. That is why the chip reads On back and starts one tick later at the earliest. And never write Activate 0 while it smelts: that aborts the stack.

Planning the power demand

This is where the trap lies. Before every piece the furnace checks whether the grid still has enough power left for that piece. If it is not enough – or it has no power at all –, it switches itself off: On jumps to 0, and it stays off until someone switches it on again.

The chip takes care of that. It releases the furnace by battery level, with hysteresis:

sgt tmp level OFF
and free free tmp
sgt tmp level ON
or free free tmp
sbn ARC HASH("Lichtbogen") On free

Because the chip writes On every tick, it switches the furnace back on by itself after a self shutdown – but only when the battery really has enough. The aborted stack is then restarted by Activate.

Throughput

ExportCount counts how often the furnace has output something. That is not the number of ingots but the number of outputs: an ore stack can come out as one ingot stack. For real piece counts you count in storage tomorrow.

Warning

For every piece the furnace releases 20 times the recipe energy as heat with sparks into the air around it – 200,000 J for 50 iron ore. Gas from the ore ends up in the room as well. An arc furnace does not belong in a room with combustible gas – no methane, no hydrogen nearby.

Diagram

Temperature curve with hysteresis 21 °C 19 °C band: state is kept Heater on on off off On at 19 °C, off only at 21 °C – nothing switches in between.
From 50 % battery it may smelt, below 20 % it stops. In between the last decision stays.

Exercise

Task

The arc furnace “Lichtbogen” may smelt (On 1) as soon as the batteries “Akku” are above 50 %, and has to be off below 20 %. In between the last state stays. If ore lies in slot 0, the furnace is on and released and Activate is 0, the chip starts the stack with Activate 1. “Durchlauf” shows ExportCount (−1 without furnace), the light “Schmilzt” is on while Activate is 1.

Hints

Hint 1

Release: sgt/and with OFF, then sgt/or with ON.

Hint 2

Guard the throughput with snanz and select … -1.

Hint 3

Stack: read On, Activate and slot 0. Only when on, released, occupied and Activate 0, write Activate 1 once.

Hint 4

Smelting = Activate greater than 0: sgtz tmp act.

Quiz

5 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