SmartLine Controller Examples - joe7575/techpack GitHub Wiki


Flashing Signal Tower

A simple example with 4 rules to generate a flashing Signal Tower. The rules are executed every 4 seconds, each rule with a different delay time ("after"), which leads to this flashing pattern.


Hello World

"Hello world" example with output on the Display. Both rules are executed only once ("Initial after start").


Monitoring Chest & Furnace

More realistic example to output Pusher states on the Display. If the Pusher state is not running, output the state to the display. The three rules request the Pusher states every 10 seconds and output the retrieved state to the display, referenced via the '*' character.


Monitoring your machinery by means of the Collector

Assuming you have a Harvester/Fermenter/Reformer machinery according to the following picture.

To be able to monitor all 7 active blocks (Harvester, 3x Pusher, Distributor, Fermenter, Reformer) you would need 7 rules for your SmartLine Controller. This could be simplified by means of a SmartLine Collector block.

  • Place the SmartLine Collector near by the SmartLine Controller
  • Collect all 7 numbers by means of the Tubelib Programmer
  • Program the SmartLine Collector with the seven numbers and with the number of the SmartLine Controller (here '0345')
  • set the error level to "3 fault" and press "Save"

The Collector will cyclically monitor your machinery and send an "on" event to the SmartLine Controller if something happens.

  • Program the SmartLine Controller according to the following image:

  • The SmartLine Controller with turn on the red tower light if something happens
  • In addition an "on" event is sent to the central SmartLine Controller in your "office"

Remarks:

  • '0344' is the number of the Collector
  • '0346' is the number of the Signal Tower
  • '0347' is the number of your central Controller
  • "Cycle/s" = 0 means, execute the rule only if an event occurred.

Harvester Fuel Control

To pump only the necessary amount of fuel into the Harvester (or Quarry), the following example can be used. It uses two rules, executed every 30 seconds. One rule turns the fuel Pusher on, the other rule turns the Pusher off after 28 seconds. The second rule will be executed if condition 1 was true (condition reference).


Balancer

The Autocrafter need one or more items depending on the recipe to craft the output. For example the rail recipe need 2 wood and 6 steel items to generate 18 rail items. This unequal ratio of items could lead to the situation that the Autocrafter inventory is full of wood but has no steel.

To prevent inventory overloads, the following "balancer" example can be used.
It reads the counters of the input Pushers to control the item flow ratio, which in this case has to be 2:6

The balancer rule checks the both Pushers every 10 seconds. It the configured ratio is missed, one Pusher will be stopped for 9 seconds.

⚠️ **GitHub.com Fallback** ⚠️