How can i detect an inserter or pump is working ?
How can i detect an inserter or pump is working ?
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 ?
DaveMcW wrote:You can't. Maybe in 0.13 next week.
Thank you..
Re: How can i detect an inserter or pump is working ?
You can detect that but it require a lot of effort, space and materials.
-
- Filter Inserter
- Posts: 813
- Joined: Fri Apr 29, 2016 5:27 pm
- Contact:
Re: How can i detect an inserter or pump is working ?
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 ?
can you give me an example ?Neotix wrote: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 ?
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
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
Re: How can i detect an inserter or pump is working ?
hahhaah hard solutionNeotix 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
Re: How can i detect an inserter or pump is working ?
I didn't sad that it will be nice and compact, just possible.
- stellatedHex
- Inserter
- Posts: 27
- Joined: Wed Jun 15, 2016 1:39 am
- Contact:
Re: How can i detect an inserter or pump is working ?
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 |--
stellatedHexahedron wrote:I'm the kind of person who makes Conway's Game of Life in Factorio, but forgets what they are doing halfway through typing their username.
Re: How can i detect an inserter or pump is working ?
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:
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