- 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.
Difference between revisions of "User:Hussell/SetResetLatch"
(Set/Reset Latch) |
m (smaller but less reusable version) |
||
(One intermediate revision by the same user not shown) | |||
Line 40: | Line 40: | ||
{{Raw Tile|┼|#F00|#000}} is a door controlled by the Reset input. | {{Raw Tile|┼|#F00|#000}} is a door controlled by the Reset input. | ||
− | {{Raw Tile|^|#0FF|#000}} is a 7-7 pressure plate controlling {{Raw Tile|┼|#0FF|#000}} | + | {{Raw Tile|^|#0FF|#000}} is a 7-7 pressure plate controlling door {{Raw Tile|┼|#0FF|#000}}, and acting as the open-when-set output. |
− | {{Raw Tile|^|#FF0|#000}} is a 7-7 pressure plate controlling {{Raw Tile|┼|#FF0|#000}} | + | {{Raw Tile|^|#FF0|#000}} is a 7-7 pressure plate controlling door {{Raw Tile|┼|#FF0|#000}}, and acting as the close-when-set output. |
{{Raw Tile|.|#FFF|#000}} is plain cavern floor. | {{Raw Tile|.|#FFF|#000}} is plain cavern floor. | ||
Line 155: | Line 155: | ||
− | {{Raw Tile|^|#FF0|#000}} sends the | + | {{Raw Tile|^|#FF0|#000}} sends the CLOSE signal, because it is now covered by either 3/7 or 4/7 of water: |
{| style="border-spacing: 0" | {| style="border-spacing: 0" | ||
Line 299: | Line 299: | ||
− | {{Raw Tile|^|#0FF|#000}} sends the | + | {{Raw Tile|^|#0FF|#000}} sends the CLOSE signal because its water spreads out: |
{| style="border-spacing: 0" | {| style="border-spacing: 0" | ||
Line 373: | Line 373: | ||
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. | 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: | ||
+ | |||
+ | {| style="border-spacing: 0" | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |- | ||
+ | |{{H2O}} | ||
+ | |{{RT0|┼|#0F0}} | ||
+ | |{{RT0|^|#F0F}} | ||
+ | |{{RT0|┼|#F00}} | ||
+ | |{{888}} | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |} | ||
+ | |||
+ | Where {{Raw Tile|┼|#0F0|#000}} is controlled by the Set lever, {{Raw Tile|┼|#F00|#000}} is controlled by the Reset lever, and {{Raw Tile|^|#F0F|#000}} is the output. |
Latest revision as of 13:52, 11 November 2009
Set/Reset Latch[edit]
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
┼
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
┼
|
^
|
█
|
█
|
█
|
█
|
█
|
█
|
≈ 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.