Page 1 of 1
How can i detect an inserter or pump is working ?
Posted: Tue Jun 21, 2016 11:53 pm
by erolerme
I want to use circuit network. I have some ideas. But how can i detect a machine working or not. Pump and inserter is primary for now. Thank you..
Re: How can i detect an inserter or pump is working ?
Posted: Wed Jun 22, 2016 12:24 am
by DaveMcW
You can't. Maybe in 0.13 next week.
Re: How can i detect an inserter or pump is working ?
Posted: Wed Jun 22, 2016 12:26 am
by erolerme
DaveMcW wrote:You can't. Maybe in 0.13 next week.
Thank you..
![Wink ;)](./images/smilies/icon_e_wink.gif)
Re: How can i detect an inserter or pump is working ?
Posted: Wed Jun 22, 2016 5:37 am
by Neotix
You can detect that but it require a lot of effort, space and materials.
Re: How can i detect an inserter or pump is working ?
Posted: Wed Jun 22, 2016 7:35 am
by Frightning
What exactly do you want to control with the circuit network? Maybe it can be done, but perhaps not in the way you were expecting?
Re: How can i detect an inserter or pump is working ?
Posted: Wed Jun 22, 2016 4:09 pm
by erolerme
Neotix wrote:You can detect that but it require a lot of effort, space and materials.
can you give me an example ?
Re: How can i detect an inserter or pump is working ?
Posted: Wed Jun 22, 2016 5:16 pm
by Neotix
Inserter is working when he move items. If he put item into smart chest and next inserter will take it, it will cause a pulse signal. That pulse signal can be used to detect if inserter is working for example by reseting timer.
One problem is that after each 9942 hours when inserter in not moving it will send one false signal because of integer overflow but i think that it's not really a problem
![Razz :P](./images/smilies/icon_razz.gif)
Re: How can i detect an inserter or pump is working ?
Posted: Wed Jun 22, 2016 5:31 pm
by erolerme
Neotix wrote:Inserter is working when he move items. If he put item into smart chest and next inserter will take it, it will cause a pulse signal. That pulse signal can be used to detect if inserter is working for example by reseting timer.
One problem is that after each 9942 hours when inserter in not moving it will send one false signal because of integer overflow but i think that it's not really a problem
![Razz :P](./images/smilies/icon_razz.gif)
hahhaah hard solution
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Re: How can i detect an inserter or pump is working ?
Posted: Wed Jun 22, 2016 5:34 pm
by Neotix
I didn't sad that it will be nice and compact, just possible.
Re: How can i detect an inserter or pump is working ?
Posted: Wed Jun 22, 2016 7:32 pm
by stellatedHex
Actually, it's much easier than that: just route the chest's signal through a delay and check if they are equal, then (optional) invert the signal. This will generate a pulse every time the inserter moves something into or out of the chest. If you need a continuous signal, there are numerous ways to convert a pulse into one of those.
Code: Select all
| ADD: item+0 |--+
+--| OUT: blue | |
[chest]--+ +--| IF: item=blue | | IF: blue=0 |
+----------------------| OUT: 1 blue |--| OUT: 1 blue |--
Re: How can i detect an inserter or pump is working ?
Posted: Fri Jun 24, 2016 9:21 pm
by Blurb
A pump is always on, unless hooked up to the circuit network - in which case it relies on a logic condition that can easily be checked.
For it to work, there must be a liquid on the input side and room for the liquid on the output side.
These above "liquid criteria" can be verified by using liquid storage tanks (unless you're crazy enough to pump multiple liquids in one pipe).
By placing a storage tank immediately before and after the pump of interest, one can measure the "liquid criteria" and can conclude the pump is working if:
- Input tank has liquid level>0
- Output tank has liquid level<2500
- Pump has power
- Optional pump conditional evaluates as true