Stationeers

Stationeers

View Stats:
Are digital valves edge-triggered?
The wiki says about digital valves:
On = 1 means flow
On = 0 means no flow
Simple, but I have a logic writer writing a 0 to variable on, the valve stays on and it also allows flow. There are two more variables "lock" and "setting". I have no idea what those are doing.

Help?

EDIT: that's odd. I had set it to "on" manually to test switching off, and it stayed on. Then I wrote a 1 before writing a 0, and it worked. Seems like some kind of bug?
EDIT 2: Could it be that switching off is actually encoded as a /change/ from 1 to 0 ("falling edge"), not just a plain 0?
Last edited by moira.lachesis; May 1, 2018 @ 4:11am
Originally posted by CaptainCamembert:
Writers don't actually write anything as long as their state does not change. So if the writer says 0 and you turn the device on manually, the writer will not turn it off unless it's own state changes to "something" and then back to 0.

Turning the writer off and on again does not change its state, so it will not update the connected device.
< >
Showing 1-5 of 5 comments
Weyland-Yutani HR Apr 22, 2018 @ 4:39pm 
Actually I think that's fairly normal behavior for logic circuits at this time.

You're better off setting up to turn on the valve when your desired conditions exist. That way when the conditions change the valve will switch off automatically.

Logic writers work on the "affirmative" using the On variable for valves and pumps. If you write a 0 to the On variable, nothing will change.
moira.lachesis May 1, 2018 @ 3:50am 
Amallore, thank you for your advice, but that's what I did. However there is no use to turn it on when conditions are met, if you dont also turn it off when conditions are no longer met. This is what writing to the "On" variable achieves: writing a 1 (condition met) switches on, writing a 0 (condition no longer met) turns it off. It actually works that way right now, i just had to prime it the way I described.
The reason I think there is a bug is that you shouldn't need to prime it in the first place. If we agree that "writing a 1" and "switching it on manually" should do the same thing, then "writing a 1, followed by writing a zero" and "switching it on manually, followed by writing a zero" should also do the same thing. But they don't. Writing a 0 only switches off if the valve was turned on by writing a 1.
EDIT: Maybe it's an edge-triggered device. I always thought it was level-triggered.
Last edited by moira.lachesis; May 1, 2018 @ 3:57am
The author of this thread has indicated that this post answers the original topic.
CaptainCamembert May 1, 2018 @ 7:06am 
Writers don't actually write anything as long as their state does not change. So if the writer says 0 and you turn the device on manually, the writer will not turn it off unless it's own state changes to "something" and then back to 0.

Turning the writer off and on again does not change its state, so it will not update the connected device.
BigBen2k May 1, 2018 @ 11:14am 
It can be tricky to get used to, but the logic in this game is "transactional" not "steady state", meaning that signals are transmitted on a change of state only, not constantly, as one might expect, like in IRL TTL electronic circuits.
moira.lachesis May 1, 2018 @ 2:16pm 
State could have more than 0 and 1 though, in order to achieve more intuitive (and more detailed) behavior. For instance, high impedance (no signal), could be different from a signal with meaning zero.
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Apr 22, 2018 @ 2:37pm
Posts: 5