Help me with a RedNet controlled drawbridge

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Agito

New Member
Jul 29, 2019
6
0
0
I am trying to set up a drawbridge controlled by the PRC.
Basically, I want the drawbridges to stay active until I push a button, then after ten to twelve seconds, activate again.

Drawbridge raised -> Button -> Drawbridge lowers -> 10-12 seconds -> Drawbridge raises

I'm having trouble figuring out what features in the PRC I need to use to achieve this.

I've tried looking at various posts and tutorials in regards to the PRC, but they barely ever scratch the surface. I got so far as to set up a 4input XOR, but that's quite a bit easier than what I had in mind.

I would appreciate if anyone could point me in the right direction.
And please, dumb it down for me.
 

Agito

New Member
Jul 29, 2019
6
0
0
Update:

I found the answer to my question thanks to romolous75 and his excellent how-to.

Code:
One Shop Pulse
I: (input side/colour) O: VARS 1

Wave (Square) [Timer]
Pd: 10        Q: VARS 2

One Shot Pusle
I: VARS 2    O: VARS 3

Counter
INC: VARS 3  Q: NULL
DEC: CNST 0  V: VARS 4
PRE: 30 (seconds to keep the OUTPUT on for)

Greater then or Equal
A: VARS 4    Q: VARS 0 (resets SR Latch)
B: 29 (one less then your seconds above)    

SR Latch
R: VARS 0    Q: VARS 5
S: VARS 1    Q#: NULL

Inverter
IO: VARS 5   Q: Output to Drawbridges