Scrap Mechanic

Scrap Mechanic

Switch logic
Hey all I haven't played for almost a year I think, just wanted to get back in to using my mind a bit more then usual. But my latest work has been a simple elevator.

Now I've seen some where it has like level stop piston for like 3 floors and such I have a simple up down one. And for the life of me I cannot find a straight up answer or anything that has worked.

So I'm making it look very much like a elevator you go in door, elevator goes up and now your on second floor. But the problem there in lies with I have a switch inside to go up but no way to go down unless your already In or on second floor, no essentially asking for elevator to return.

Now tbh I think it's a little ridiculous that there's not just a switch to switch shut off option or just simple like that, but I can't attach another switch to pistons so that's gone, and the main option I saw was a timer with logic gates, they said timer to switch and both connecter to XOR gates and nothing I then played around a bit and no combo or setup of gates or timers or anything seemed to switch off the switch.

Does anyone have some kinda solution I get I'd need either a timed switch to send it back down and then another setup to raise it up if your stuck up top. But just something other then up right now would be great.
< >
Showing 1-8 of 8 comments
Sphere Mar 31 @ 5:45pm 
Your looking for an RS latch circuit. RS stands for Reset Set. Push the button and the circuit output latches on. Push the reset button and it resets and turns off. If you need a "call" button for when the elevator isn't there, use an OR for each input so you can have two buttons that do the same thing. The Fant mod has one a memory block as a monolithic block that works as a RS. In vanilla you have to make an RS circuit from logic blocks. Don't forget to put a block on your piston when testing ( I always forget that.)
Last edited by Sphere; Mar 31 @ 5:46pm
no timer. you are not looking to switch off the switch. that is not possible. what you need to do is connect 2 switches to an XOR gate and connect the XOR gate to the piston. be mindful of the tiny arrows on the connection line when setting up logic. that is the signal direction. whichever switch you flip it will toggle the XOR gate back ad forth. "on" or "off" on the switches does not matter. the XOR gate will go on/off and that will drive the piston.
Khaylain Mar 31 @ 7:35pm 
Originally posted by Sphere:
Your looking for an RS latch circuit. RS stands for Reset Set. Push the button and the circuit output latches on. Push the reset button and it resets and turns off. If you need a "call" button for when the elevator isn't there, use an OR for each input so you can have two buttons that do the same thing. The Fant mod has one a memory block as a monolithic block that works as a RS. In vanilla you have to make an RS circuit from logic blocks. Don't forget to put a block on your piston when testing ( I always forget that.)
SR latch
You don't reset something before you've set it. You set it, and then you can reset it.
Last edited by Khaylain; Apr 1 @ 10:57am
Sphere Mar 31 @ 10:07pm 
Originally posted by Khaylain:
Originally posted by Sphere:
Your looking for an RS latch circuit. RS stands for Reset Set. Push the button and the circuit output latches on. Push the reset button and it resets and turns off. If you need a "call" button for when the elevator isn't there, use an OR for each input so you can have two buttons that do the same thing. The Fant mod has one a memory block as a monolithic block that works as a RS. In vanilla you have to make an RS circuit from logic blocks. Don't forget to put a block on your piston when testing ( I always forget that.)
SR latch
You don't reset something before[/i}]

Every electronics book I have calls it an RS. Yeah, I agree it sounds weird, but it is what it is.
Last edited by Sphere; Mar 31 @ 10:08pm
Khaylain Apr 1 @ 11:03am 
Originally posted by Sphere:
Originally posted by Khaylain:
SR latch
You don't reset something before you've set it. You set it, and then you can reset it.

Every electronics book I have calls it an RS. Yeah, I agree it sounds weird, but it is what it is.
https://en.wikipedia.org/wiki/Flip-flop_(electronics)?useskin=vector seems to mostly, if not only use SR.
https://www.realdigital.org/doc/8ee36c2a5221c0c118aa3d363c4f1df4 also uses SR, I didn't really find that many primary sources using RS when I searched "sr vs rs latch"
Sphere Apr 1 @ 11:13am 
Good ♥♥♥♥♥♥♥ grief. You win the pedantic award of the week.
Originally posted by Sphere:
Good ♥♥♥♥♥♥♥ grief. You win the pedantic award of the week.
Congratulations on lowering yourself to going after the person not the ball, to take a football metaphor. Do better.
Soupster Apr 1 @ 11:30pm 
You should have 3 switches, one on the upper floor, one on the lower floor, and one in the cab. Connect all 3 to an XOR gate, and connect the gate to the piston. Simple as that.
< >
Showing 1-8 of 8 comments
Per page: 1530 50