- 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:Kami/Logic gates"
m |
|||
Line 1: | Line 1: | ||
'''''ToDo''''' | '''''ToDo''''' | ||
== General == | == General == | ||
− | + | This is a collection of different usefull logic gates for [[computing]]. It does not stick to a special ([[mechanical logic|mechanical]], [[fluid logic|fluid]], ...) logic but tries to measure the adventages, disadventages and best practices from all [[Computing#Disciplines|disciplines]]. For mechanical logic gates it is assumed that you provide enough power to run all connected components. | |
== Key == | == Key == | ||
{| style="border-spacing:0; padding:0;" | {| style="border-spacing:0; padding:0;" | ||
Line 11: | Line 11: | ||
|any tile | |any tile | ||
|- | |- | ||
− | |{{RTL|# | + | |{{RTL|#DDD}} |
|{{RTL|#FFF}} | |{{RTL|#FFF}} | ||
|{{RTL|#FFF}} | |{{RTL|#FFF}} | ||
Line 17: | Line 17: | ||
|floor | |floor | ||
|- | |- | ||
− | |{{RTL|# | + | |{{RTL|#BBB}} |
|{{RTL|#FFF}} | |{{RTL|#FFF}} | ||
|{{RTL|#FFF}} | |{{RTL|#FFF}} | ||
Line 41: | Line 41: | ||
|[[axle]] | |[[axle]] | ||
|- | |- | ||
− | |{{RTL|#222|·|# | + | |{{RTL|#222|·|#BBB}} |
|{{RTL|#FFF}} | |{{RTL|#FFF}} | ||
|{{RTL|#FFF}} | |{{RTL|#FFF}} | ||
Line 71: | Line 71: | ||
|[[magma]] depth | |[[magma]] depth | ||
|- | |- | ||
− | |{{RTL|#222|▲|# | + | |{{RTL|#222|▲|#DDD}} |
|{{RTL|#FFF}} | |{{RTL|#FFF}} | ||
− | |{{RTL|#222|▼|# | + | |{{RTL|#222|▼|#BBB}} |
|{{RTL|#FFF}} | |{{RTL|#FFF}} | ||
|[[ramp]] | |[[ramp]] | ||
|- | |- | ||
− | |{{RTL|#00A|^|# | + | |{{RTL|#00A|^|#DDD}} |
|{{RTL|#FFF}} | |{{RTL|#FFF}} | ||
|{{RTL|#FFF}} | |{{RTL|#FFF}} | ||
Line 83: | Line 83: | ||
|[[pressure plate]] (reacting on water) | |[[pressure plate]] (reacting on water) | ||
|- | |- | ||
− | |{{RTL|#444|÷|# | + | |{{RTL|#444|÷|#DDD}} |
|{{RTL|#444|÷||►|#00A|center|►|#00A|center}} | |{{RTL|#444|÷||►|#00A|center|►|#00A|center}} | ||
|{{RTL|#FFF}} | |{{RTL|#FFF}} | ||
Line 97: | Line 97: | ||
== Logic gates == | == Logic gates == | ||
=== Power to signal converter === | === Power to signal converter === | ||
− | When you are dealing with [[mechanical logic]], you'll want to trigger something else than machine components, like doors or bridges. Currently, there doesn't exist any trigger in dwarf fortress that reacts on the working state of machine components, thus power. So, you'll have to convert power via pressure plates, screw pumps and fluid into | + | When you are dealing with [[mechanical logic]], you'll finally want or have to trigger something else than machine components, like doors or bridges. Currently, there doesn't exist any trigger in dwarf fortress that reacts on the working state of machine components, thus power on/off. So, you'll have to convert power via pressure plates, screw pumps and fluid into an on/off signal. |
<div style="position:relative; float:left;"> | <div style="position:relative; float:left;"> | ||
'''Z 0''' | '''Z 0''' | ||
Line 104: | Line 104: | ||
{| cellpadding="0" cellspacing="0" style="border-spacing:0; padding:0; margin:0; vertical-align:middle;" | {| cellpadding="0" cellspacing="0" style="border-spacing:0; padding:0; margin:0; vertical-align:middle;" | ||
|- | |- | ||
− | |{{RTL|# | + | |{{RTL|#DDD}} |
− | |{{RTL|# | + | |{{RTL|#DDD}} |
− | |{{RTL|# | + | |{{RTL|#DDD}} |
|{{RTL|#222}} | |{{RTL|#222}} | ||
|{{RTL|#222}} | |{{RTL|#222}} | ||
|{{RTL|#222}} | |{{RTL|#222}} | ||
|- | |- | ||
− | |{{RTL|# | + | |{{RTL|#DDD}} |
− | |{{RTL|#222|·|# | + | |{{RTL|#222|·|#BBB}} |
− | |{{RTL|#444|÷|# | + | |{{RTL|#444|÷|#DDD}} |
− | |{{RTL|#444|÷|# | + | |{{RTL|#444|÷|#DDD|►|#00A|center|►|#00A|center}} |
− | |{{RTL|#222|·|# | + | |{{RTL|#222|·|#BBB}} |
|{{RTL|#222}} | |{{RTL|#222}} | ||
|- | |- | ||
− | |{{RTL|# | + | |{{RTL|#DDD}} |
− | |{{RTL|# | + | |{{RTL|#DDD}} |
− | |{{RTL|# | + | |{{RTL|#DDD}} |
|{{RTL|#222}} | |{{RTL|#222}} | ||
|{{RTL|#222}} | |{{RTL|#222}} | ||
Line 142: | Line 142: | ||
|- | |- | ||
|{{RTL|#222}} | |{{RTL|#222}} | ||
− | |{{RTL|#00A|^|# | + | |{{RTL|#00A|^|#DDD||||7|#88F|left}} |
− | |{{RTL|# | + | |{{RTL|#DDD||||||7|#88F|left}} |
− | |{{RTL|# | + | |{{RTL|#DDD||||||7|#88F|left}} |
− | |{{RTL|# | + | |{{RTL|#DDD||||||7|#88F|left}} |
|{{RTL|#222}} | |{{RTL|#222}} | ||
|- | |- | ||
Line 160: | Line 160: | ||
<div style="clear:left;"> | <div style="clear:left;"> | ||
<br /> | <br /> | ||
− | When the pump is connected to power | + | When the pump is connected to power, it will suck water from the pressure plate and pump it to the right. The water level on the pressure plate will fall to 0. The plate can be constructed to react on 0…3 water. You can invert it to get an off signal instead setting it to 4…7. In both cases the ''off signal'' will have a delay of 100 steps. This gate is fluid conserving. |
</div> | </div> | ||
+ | === Binary logic === | ||
[[Category:Guides]] | [[Category:Guides]] | ||
[[Category:Computing]] | [[Category:Computing]] |
Revision as of 16:17, 16 December 2009
ToDo
General
This is a collection of different usefull logic gates for computing. It does not stick to a special (mechanical, fluid, ...) logic but tries to measure the adventages, disadventages and best practices from all disciplines. For mechanical logic gates it is assumed that you provide enough power to run all connected components.
Key
█
|
█
|
█
|
█
|
any tile |
█
|
█
|
█
|
█
|
floor |
█
|
█
|
█
|
█
|
no floor |
█
|
█
|
█
|
█
|
solid |
█
|
█
|
█
|
█
|
█
|
║
|
█
|
o
|
█
|
axle |
·
|
█
|
█
|
█
|
channel |
┼
|
█
|
█
|
█
|
door |
X
|
█
|
█
|
█
|
flood gate |
*
|
█
|
█
|
█
|
gear assembly |
█
1 |
█
… |
█
7 |
█
|
magma depth |
▲
|
█
|
▼
|
█
|
ramp |
^
|
█
|
█
|
█
|
pressure plate (reacting on water) |
÷
|
÷
► ► |
█
|
█
|
screw pump (pumping right) |
█
1 |
█
… |
█
7 |
█
|
water depth |
Logic gates
Power to signal converter
When you are dealing with mechanical logic, you'll finally want or have to trigger something else than machine components, like doors or bridges. Currently, there doesn't exist any trigger in dwarf fortress that reacts on the working state of machine components, thus power on/off. So, you'll have to convert power via pressure plates, screw pumps and fluid into an on/off signal.
Z 0
|
Z-1
|
When the pump is connected to power, it will suck water from the pressure plate and pump it to the right. The water level on the pressure plate will fall to 0. The plate can be constructed to react on 0…3 water. You can invert it to get an off signal instead setting it to 4…7. In both cases the off signal will have a delay of 100 steps. This gate is fluid conserving.