v50 Steam/Premium information for editors
  • 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.
This notice may be cached—the current version can be found here.

Editing v0.31:Pre-Toggled Mechanical Logic

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.31"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 9: Line 9:
 
** Non-toggled gears are linked to by a lever or pressure plate, and left alone.  They transfer power when their truth state is true.
 
** Non-toggled gears are linked to by a lever or pressure plate, and left alone.  They transfer power when their truth state is true.
 
** Pre-toggled gears are linked to by a lever or pressure plate, then pre-toggled.  To pre-toggle a gear, you build a lever, link it to the gear to pre-toggle, then flip the lever and dismantle it.  As such, pre-toggled gears cost an extra mechanism.  Pre-toggled gears flip the logical truth state of their inputs.
 
** Pre-toggled gears are linked to by a lever or pressure plate, then pre-toggled.  To pre-toggle a gear, you build a lever, link it to the gear to pre-toggle, then flip the lever and dismantle it.  As such, pre-toggled gears cost an extra mechanism.  Pre-toggled gears flip the logical truth state of their inputs.
* Two gears are considered directly connected if they are either adjacent, above one another without an intervening floor, or if they are separated by only axles and/or undriven gears.
+
* Two gears are considered directly connected if they are either adjacent, or if they are separated by only axles and/or undriven gears.
* Two driven connected gears form an AND gate.  Power can flow through an AND gate only if both driven gears are in the true truth state.
+
* Two driven connected gears form an AND gate.  A gear one z-level above another one is adjacent only if the floor between them has been channeled out.  Power can flow through an AND gate only if both driven gears are in the true truth state.
* A single gear connected to two or more driven input gears forms an OR gate.  Power will flow through this gear if at least one of the driven source gears is in the true truth state.  If the gear is undriven, it forms a simple OR gate.  If, however, it is driven, its input is ANDed with whatever the output of the OR expression is.
+
* A single undriven gear connected to two or more driven input gears forms an OR gate.  Power will flow through this gear if at least one of the driven source gears is in the true truth state.
 
* A single gear can be driven by multiple inputs to form an XOR or NXOR gate.  For even numbers of inputs, the gear must be pre-toggled to form an XOR gate, non-toggled to form an NXOR gate.  For odd numbers of inputs, the gear must be non-toggled to form an XOR gate, pre-toggled to form an NXOR gate.  Power will flow through this gear only if it is in the true truth state.
 
* A single gear can be driven by multiple inputs to form an XOR or NXOR gate.  For even numbers of inputs, the gear must be pre-toggled to form an XOR gate, non-toggled to form an NXOR gate.  For odd numbers of inputs, the gear must be non-toggled to form an XOR gate, pre-toggled to form an NXOR gate.  Power will flow through this gear only if it is in the true truth state.
 
* Two connected driven gears, both having identical input links, with one being non-toggled, and the other being pre-toggled, are called ''out-of-phase''.  Out-of-phase gears will never transfer power through their connections.
 
* Two connected driven gears, both having identical input links, with one being non-toggled, and the other being pre-toggled, are called ''out-of-phase''.  Out-of-phase gears will never transfer power through their connections.
* Determining the qualities of a PTML circuit can be done on paper or in a spreadsheet.  Truth formulas for each gear can be devised to determine whether they are engaged or disengaged.  This need only be done for driven gears.  Power can only flow through engaged gears, i.e. gears whose truth state is true.  An output undriven gear will have power if an orthogonal line can be drawn from the power through any series of engaged gears.  This does not require the circuit to be built in game to verify that it works.
+
* Determining the qualities of a PTML circuit can be done on paper or in a spreadsheet.  Truth formulas for each gear can be devised to determine whether they are engaged or disengaged.  This need only be done for driven gears.  Power can only flow through true gears (engaged gears).  An output undriven gear will have power if an orthogonal line can be drawn from the power through any series of true gears.  This does not require the circuit to be built in game to verify that it works.
* Hybrid circuitry exists to allow the output of a gear train to be used to toggle other gears, or to open or close mechanically linked buildings, such as drawbridges, doors, floodgates, etc.  This hybrid circuitry uses water and pressure plates as a '''rotation sensor'''.  A design for a water preserving sensor exists, as does a design for a water preserving fluid memory cell.
+
* Hybrid circuitry exists to allow the output of a gear train to be used to toggle other gears, or to open or close mechanically linked buildings, such as drawbridges, doors, floodgates, etc.  This hybrid circuitry uses water and pressure plates as a '''rotation sensor'''.
 
=Diagram conventions=
 
=Diagram conventions=
 
In diagrams, gear assemblies are typically given a letter to represent them.  If uppercase, the gear is non-toggled.  If lowercase, the gear is pre-toggled.
 
In diagrams, gear assemblies are typically given a letter to represent them.  If uppercase, the gear is non-toggled.  If lowercase, the gear is pre-toggled.

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)