I've been attempting to use various SR latch setups (with 3 Deciders and single decider w/multiple conditions) to test the process of relieving tank volume to another tank. Goal was to verify the process to keep a tank from getting full by enabling a pump to offload fluid when the tank reaches 2300 units and stop pumping when the volume drops down to 2000 units. My designs has included direct connections to the pump and using a on/off switch to control the power to the pump.
None of these setups were working so when i started troubleshooting this issue, i found that the R (reset) latch output was never being triggered. The pump would turn on but not turn off until the tank was empty. Specifically - when watching the process, the R decider unit would hit 19k volume but the R output would not enable. Since the Reset trigger was never received, the pump never stops pumping.
This appears to be happening with any combo decider unit i attach to this tank (deleting and reposting). I've even deleted everything in the attached blueprint below, and rebuilt the BP only to see the same issue where that R latch not triggering when its condition is met. I'm pretty sure of the logic of the SR latch but even if its wrong, that R output should trigger when its condition is met. (if you do find the logic to be wrong please feel free to show the correct setup - Thank you!)
side note: I've been switching direction of the pump to test my logic, pushing the water between the tanks to reset or run the test.
Blueprint string
0eNrNlktu2zAQhq9CcE0H1suxvOgJukqyMwKBlkYxUYoUSMquYegAPUgv1pN0KMVS6hJNGqBBVxoRM5/+eVDkme5kB60RytHNmVZgSyNaJ7SiG3p/RyR35X5DHgxXtgZDnCacxKoijqsv5LgHRdweSC2MdeOasCROlkvSKeEsqTspb8i90+3g5y6cITK6xBjg5R4wcHkJpIyKUitLN9szteJJcen1Kd4ACrNOG/4ECx9Me3RVFXylm6h/ZBSUE07AGDm8nArVNTsw6MAuhFYfwSzsUWB6+K1WWzEmfaYIWiQJoyd8plmMeBTijJbFDvb8ILTxXqUwZSdcAYrvJFR040wHbFrGkGoiDtUp5izcqfUaDsK4DlcmUaPH4t6nZMEj3h50RwehTcsNd14i/UR7zxlSLKzjDr1rLi307LfCxDOu4VIuQELpjCgXrZYQqs/yJrtUKLrJ+gAyYcFuBVjpxErXyGK0EgY/P7ikAXI6d1G0QXXxTMzD6rKZ0TVtiBG9JLyqafXWbOP1r9kGWLcTq4JSVDin2NedUENf/zCraXqtNIrDw/vMnafUDiP94m37MVO7DE0tbmLdubZz17v/LQpK3Z4wr065oja6KYRC0GXwH/tQvdd/We9pMrKPqHctO1HNuR5xH5sxUYWb2v+2/V/z3UW7e2fR8gnUQCW65vVfRjIPfhIe/Gj53k4k/0kn8OC7mucf377/64lG+hEz9+xtxGJ2y9JHhlbGcpYN1gpXveWfaxY/W1hub96yCBeTZwsXR3PkIFs4aFDSfE9gVPIdyPGC8NlfEMgD4FFeazMe5/oAppb6iJ5o2aEh2SrO0zzPVus4j9Zp3/8EJw7Vbg==
Snapshot
Decider Combinator not pushing output when conditions are met
Decider Combinator not pushing output when conditions are met
- Attachments
-
- factorio-current.log
- (9.44 KiB) Downloaded 24 times
-
- sandbox2.zip
- (8.67 MiB) Downloaded 26 times
Re: [2.0.43] Decider Combinator not pushing output when conditions are met
Thanks for the report, however everything here works correctly. Most likely you are confused by the left decider which gets S and R signals on its input but has signal-0 in its condition. Most likely you wanted to use signal-R instead of signal-0 here.
Re: [2.0.43] Decider Combinator not pushing output when conditions are met
Some hints:
To remember the signal-on state, you need to wire a loopback wire from the output to the input of the combinator.
Connect the pump to the combinator output with a circuit wire and set the pump activation condition to signal-on > 0.
Connect the storage tank you want to measure with a circuit wire to the input of the combinator.
- pumps can be controlled on/off if connected to the circuit network. You don't need the power switch.
- Don't confuse the 0 signal with value 0.
- A latch can be constructed with 1 decider. Think about what you want. We want to decide when to turn on the pump.
- there is a lower and an upper threshold
- if the fluid is above the upper threshold, the pump should turn on
- if the pump is already on, it should stay on as long as the fluid is above the lower threshold
- conditions:
- signal-water > 2300 [this is checking the upper threshold]
- OR
- signal-on > 0
- AND
- signal-water > 2000 [this is checking if the pump is already on and above lower threshold]
- output: signal-on=1
To remember the signal-on state, you need to wire a loopback wire from the output to the input of the combinator.
Connect the pump to the combinator output with a circuit wire and set the pump activation condition to signal-on > 0.
Connect the storage tank you want to measure with a circuit wire to the input of the combinator.
Re: Decider Combinator not pushing output when conditions are met
Thank you guys - you are both correct..
- Changing S > R worked instead of 0 (as you mentioned .. that 0 in that box was a signal, not a value - missed that point at first)
- cant believe i missed the value threshold error.. its 20,000, not 2000.. what a dumb mistake on my part
- Correct that I dont need a power switch, i wasn't sure if the pump was taking the signals to turn on or not so was thinking i had to force it by controlling the power
everything worked once i made the corrections. Much appreciated you taking the time to discuss it with me.
- Changing S > R worked instead of 0 (as you mentioned .. that 0 in that box was a signal, not a value - missed that point at first)
- cant believe i missed the value threshold error.. its 20,000, not 2000.. what a dumb mistake on my part
- Correct that I dont need a power switch, i wasn't sure if the pump was taking the signals to turn on or not so was thinking i had to force it by controlling the power
everything worked once i made the corrections. Much appreciated you taking the time to discuss it with me.


