Jump to content

How do I set this up? First time messing with logic gates


Recommended Posts

The nat-gas logic port is an input, not an output. It disables.enables the generator. You need to determine absence of nat-gas with a sensor instead. Other than that, use gates. As in "no nat-gas, battery not full enough" -> "turn on coal generator"
 

The Power Buildings have just Input signals!

So, the easiest way is to use a gas sensor, set it to methane, than connect it to a NOT-Gate and then to an OR-Gate (Or a XOR, your decision) with inputs from the Not-gate and your battery and then to the coal gen. you connect also the battery with the nat gas gen.

17 minutes ago, LeandroBraz said:

 I want my coal generator to turn on only if my natural generator runs out of gas. I also want the smart battery to do its thing. How should I connect this stuff to make it work as intended?

 

Smart batteries already have logic for this.  Build another one in the gap there.  Hook one to the coal and one to the NG.  Set the NG battery to kick in at 50% charge and the coal battery at 25%. 

The coal-connected battery will only switch it on when the total charge is 25% or lower, which will only happen if the NG gen is out of gas or can't keep up.

Thanks for the answer, it make sense now. I'm trying to set it up, I'll say if I managed to do it when its done. I have another problem though, that smart battery "died". It just stopped charging for no apparent reason. It's set up in the exactly same way it's on that screenshot, I merely disconnected the logic gate. I tried to rebuild it, completely remove the automated wires, it just won't charge. Why? It was working before and I didn't change anything aside from adding the coal generator and trying to use the logic gate.

 

Edit: Could it be because the coal generator give 600w while I was getting 800w from the NG generator?

RIP_Battery.png

20190711170054_1.thumb.jpg.f50d93f8ef8c57be0caa0f26c71fa9eb.jpg

20190711170120_1.thumb.jpg.84c70eb3e79e85c8451c84220520b516.jpg

 

i also had problems with fuel resource consumption. the primary system is hydrogen, secondary system is ethanol. since the ethanol generates more power than the hydrogen generators, i had problems with hydrogen filling up to the gas filter which stops the oxygen supply.
this leads to the necessity to manually deactivating the ethanol gen' every now and then. there is also the problem that it might not be enough power generation with one system being deactivated. so i automated my energy system too.

the left smart battery has the standard setup (on: 6% , off: 98%) and controls the whole power generation.

the left gas pipe element sensor checks, if there is no hydrogen for more than 3 seconds. if this is the case, the SR is switched on and the secondary system is enabled. it is reset if there is hydrogen for more than 3 seconds on the right gas pipe element sensor. this prevents the hydrogen from backlogging too much.

as a bonus: the OR works like an emergency system. the right smart battery has a different setup with 3/98. if there is a power spike and the hydrogen energy generation is not enough, the secondary system will activate in any case.

 

there are other ways though. you could also connect certain batteries with certain generators per automation wire and set them up individually. for example the ethanol battery can be set to turn off at 50, so the rest of every battery is loaded by other generators. but that might need a bit of fine tuning.

It seems that the batteries not charging was a bug, it started charged when I opened my save after the update. Idk if the update fixed it or if it was just because I restarted the game but it's fixed.

 

9 hours ago, snoozer said:

Unbenannt.thumb.png.3ceac7aece4b503e30e4ef872a204658.png

 

I managed to build this in a new save on sandbox mode, to properly understand it. I'll apply it later to my colony. Thanks to everyone, it was really helpful.

Maybe Im to late to the party. The cheap / early solution would be to use two Smart Batteries both connected to the same electrical powernet but automation is triggering the wanted generator depending on how high the stored power is:

Smart Battery 1 (25%) >> Natural Gas Generator is starting
Smart Battery 2 (0%) >> Coal Generator will come online

Coal Generator wont start ever as long as the Natural Gas Generator is working. That is working great for a later power / backup systems as well :)

17 minutes ago, ONIfreak said:

Is it not easier just to put gas sensor on input natural gas pipe = if empty turn on coal generator ( not gate) ?

Plausible, although "staging" i.e more than X turn off A, more than X+Y turn off B, more than X+Y+Z turn off C tends to work best since that prevents wasteful consumption. Smart Batteries are made for that since the signal does not switch constantly but has a buffer. You could also combine yours with that and have the NG Generator turn still off, however consumption must be less than what the NG generators produce.

Like, you have Solar Panels to keep the Batteries supplied. Upon reaching down to 85% the Natural Gas Generators are turned on and at 95% they are turned off. Upon reaching down to 70% Coal Generators turn on and at 85% turn off. Hydrogen after that and finally you go with Petroleum Generators to kickstart in case of system failure when Solar Panels can't make it or you can not wait.

In some cases solar panels can be replaced by Steam Turbines rather than it being somewhere on that hierarchy, totally depends on whether you got enough heat or not. On Rime with a Frozen Core and Glaciers? Probably not. Of course on can also say that Hydrogen is too valuable to be burnt.

13 hours ago, Nightinggale said:

I meant OP tries to use the "output" from the generator. I'm fairly confident you know the difference. Sorry I wasn't clear on that one.

Ah, sorry. My mistake. With that your statement makes perfect sense.

7 hours ago, ONIfreak said:

Is it not easier just to put gas sensor on input natural gas pipe = if empty turn on coal generator ( not gate) ?

If the coal generator stops when the batteries are full, yes. No idea whether it does, have not used the coal generator for ages.

1 hour ago, Gurgel said:

If the coal generator stops when the batteries are full, yes. No idea whether it does, have not used the coal generator for ages.

The only generator that instantly stops when batteries are full are Manual Generators. Coal simply does not get supplied when batteries are full but will use up its current contents.

Also, I personally use Coal a lot, early on, ASAP, for it saves the manual labor (similarly I get a Smart Battery even if I have to waste-crush ore)~

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...