Thought I'd put this up since I've found little info on building more advanced circuits like what you can achieve with red power 2. I hope it helps someone out.
The following combination of circuits allows you to run a device for a certain amount of time, then turn off.
The following combination of circuits allows you to run a device for a certain amount of time, then turn off.
Code:
One Shop Pulse
I: (input side/colour) O: VARS 1
SR Latch
R: VARS 0 Q: (output side/colour) To DEVICE
S: VARS 1 Q#: NULL
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: 60 (seconds to keep the OUTPUT on for)
Greater then or Equal
A: VARS 4 Q: VARS 0 (resets SR Latch)
B: 59 (one less then your seconds above)