- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
User:Hussell/SetResetLatch
Set/Reset Latch
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
┼
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
┼
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
≈ is a water source (preferably infinite)
┼ is a door controlled by the Set input.
┼ is a door controlled by the Reset input.
^ is a 7-7 pressure plate controlling door ┼, and acting as the open-when-set output.
^ is a 7-7 pressure plate controlling door ┼, and acting as the close-when-set output.
. is plain cavern floor.
3 is 3/7 water.
Initial state. There must be 7 water on ^. (Either make a special lever to open ┼, or have your dwarves drop water in from above). Pulling the Reset lever has no effect in this state, but remember to never, ever, put the Set and Reset levers in the OPEN position at the same time. They should both be in the CLOSED position now.
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
.
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
┼
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
First transition: pull the Set lever to the OPEN position:
█
|
█
|
█
|
█
|
█
|
≈
|
7
|
7
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
┼
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
^ sends the OPEN signal:
█
|
█
|
█
|
█
|
█
|
≈
|
7
|
7
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
3
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
^ sends the CLOSE signal, because it is now covered by either 3/7 or 4/7 of water:
█
|
█
|
█
|
█
|
█
|
≈
|
7
|
┼
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
4
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
This is the stable "Set" state. The Set lever has no effect in this state. But, again, remember to put it in the CLOSED position before pulling the Reset lever:
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
┼
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
4
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
Second transition: pull the Reset lever to the OPEN position:
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
┼
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
≈
|
7
|
7
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
^ sends the OPEN signal:
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
3
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
≈
|
7
|
7
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
^ sends the CLOSE signal because its water spreads out:
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
3
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
≈
|
7
|
┼
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
After putting the Reset lever back in the CLOSED position:
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
4
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
┼
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
The Set/Reset Latch is now fully reset.
Possible use: use a pressure plate triggered by goblins as the Set signal, and you won't have to worry about your bridges going up and down or doors opening and closing as the goblins mill around, and your dwarves can pull the Reset lever after the siege is over.
Note that the above is intended to be used a component in a bigger circuit. If all you want is the Set/Reset functionality, try this:
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
^
|
┼
|
█
|
█
|
█
|
█
|
█
|
█
|
Where ┼ is controlled by the Set lever, ┼ is controlled by the Reset lever, and ^ is the output.