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

Day 220 of 365 · Pro · Month 8: Production

Recycler and centrifuge

Recyclers break down, centrifuges separate. The chip lets the centrifuge fill, empties it before the limit, closes it without getting stuck on rests and detects a jam.

Lesson 20 min Week 32

What you learn today

  • Control throughput
  • Monitor output
  • Detect jams

Old parts and slag become ore again: the recycler breaks down, the centrifuge separates. Both work in a flow – and both stop when nothing drains away behind them.

Recycler

The recycler (StructureRecycler) breaks inserted items down into their materials. Printed parts give back half of their material. An ingot gives back the materials of its furnace recipe – for superalloys, which need 4 units per ingot, that is only a quarter. It collects the materials and outputs them as a reagent mix. Readable are Reagents, ImportCount, ExportCount and slots 0 (input) and 1 (output).

Centrifuge

The centrifuge (StructureCentrifuge) separates reagent mix, slag from the furnace and dirty ore from the deep miner into pure ores. It works in two phases, controlled via Open:

  • Closed (Open 0): it takes in and spins while it is on and has power. Reagents rises meanwhile.
  • Open (Open 1): the drum runs down, which takes up to about 30 seconds. Only when it stands still does it output one ore stack per reagent – whole units only.

From 400 units it is full and reports Error 1 – then it processes nothing more. But it also reports Error 1 while it is open. When emptying, that is normal.

Controlling the flow

The chip empties in time before the limit and closes again when nothing more comes out. That is a state with memory:

sge tmp content REST
and empty empty tmp
sge tmp content FULL
or empty empty tmp

From 350 units it opens, below 1 it closes again. In between it stays as it is. Why not only at 0? The centrifuge never outputs a material of which less than one unit is inside. Reagents then stays at, say, 0.4. The rests simply stay inside and come out with the next filling.

Warning

A chip that waits for Reagents 0 can keep the centrifuge open forever. While open it takes in nothing – the whole chain stands still.

Safety net: nothing comes out any more

If rests of several materials are inside, their sum can be above 1, for example 0.6 carbon and 0.6 silicon. Then the threshold alone does not help. A second counter measures how long Reagents stays unchanged while the centrifuge is open:

seq tmp content before
and tmp tmp empty
add wait wait 1
mul wait wait tmp
move before content
slt tmp wait STILL
and empty empty tmp

Because the drum runs down for up to 67 ticks before the first output, the limit has to lie well above that: 120 ticks, one minute.

Detecting a jam

A jam shows at the output: slot 1 stays occupied because the chute behind it is full. A briefly occupied slot is normal, a long occupied one is not. A counter measures how long:

add count count 1
mul count count tmp

If the slot is free (tmp 0), the multiplication sets the counter to 0. If it is occupied, it keeps counting. Above 20 ticks, i.e. ten seconds, the light reports a jam.

Tip

The jam counter works on every machine with an output slot: furnace, recycler, lathe. A jam is almost always a full store at the end of the chain, rarely the machine itself.

Exercise

Task

The centrifuge is named “Zentrifuge”. Open it (Open 1) as soon as Reagents reaches 350 and close it again only when Reagents drops below 1 – or when Reagents stays unchanged for 120 ticks while it is open. The light “Stau” is on when slot 1 has been occupied for more than 20 ticks in a row. “Inhalt” shows Reagents, −1 without a centrifuge.

Hints

Hint 1

Empty: and with “content from REST”, or with “content from FULL”.

Hint 2

Standstill: seq with the value of the last tick, counter with add/mul, from STILL set empty to 0.

Hint 3

Jam: lbns … 1 Occupied, then count up with add and reset by the slot with mul.

Hint 4

Display: select content ok content -1.

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