Actions

Editing Logic Sorter

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 1: Line 1:
 
[[Category:Machines]]
 
[[Category:Machines]]
 
[[Category:Import/Export]]
 
[[Category:Import/Export]]
 +
{{Itembox
 +
| name = Kit (Sorter)
 +
| image = [[File:ItemKitSorter.png]]
 +
| prefabhash = 969522478
 +
| prefabname = ItemKitSorter
 +
| stacks = 10
 +
| recipe_machine1 = Autolathe
 +
| recipe_cost1 = 10g [[Iron]], 1g [[Gold]], 5g [[Copper]]
 +
| constructs = [[Sorter]], [[Logic Sorter]]
 +
}}
 +
{{Structurebox
 +
| name = Sorter
 +
| image = [[File:StructureSorter.png]]
 +
| prefab_hash = -1009150565
 +
| prefab_name = StructureSorter
 +
| power_usage = 5W
 +
| placed_on_grid = Small Grid
 +
| decon_with_tool1 = [[Hand Drill]]
 +
| placed_with_item = [[Kit (Sorter)]]
 +
| item_rec1 = [[Kit (Sorter)]]
 +
}}
 
{{Structurebox
 
{{Structurebox
 
| name = Logic Sorter
 
| name = Logic Sorter
Line 12: Line 33:
 
| item_rec1 = [[Kit (Sorter)]]
 
| item_rec1 = [[Kit (Sorter)]]
 
}}
 
}}
{{Distinguish|Sorter}}
+
 
  
 
==Description==
 
==Description==
 
<blockquote><q>Contains an Internal Memory which is assessed to check whether something should be sorted. When an item is in the Import slot Slot, the stack is checked and if result is true the thing is moved to the Export2 slot slot, otherwise it is moved to the Export slot slot. The Mode is used in how the stack is assessed, by default the mode is ALL, so every instruction in the stack would need to return true.</q><br>
 
'''- Stationpedia'''</blockquote>
 
 
 
*This section is still a work in progress.  
 
*This section is still a work in progress.  
 
Logic sorter is similar in almost every way to the previous sorter but has a internal memory, a.k.a stack, that can be accessed with logic and bit shifting to sort items passing through. When an item enters the import slot, its checked against the stack and if the result is true, moves the item to the export 2 slot, otherwise its moved to the export slot. The mode is how the stack is assessed. If mode is set to "ALL", every instruction in the stack would need to return as true.
 
Logic sorter is similar in almost every way to the previous sorter but has a internal memory, a.k.a stack, that can be accessed with logic and bit shifting to sort items passing through. When an item enters the import slot, its checked against the stack and if the result is true, moves the item to the export 2 slot, otherwise its moved to the export slot. The mode is how the stack is assessed. If mode is set to "ALL", every instruction in the stack would need to return as true.
  
==Stack Logic Parameters==
+
==Logic Parameters==
 
Check the in game Stationpedia [F1 on your keyboard] for formatting and instruction sizes to determine how to construct the stack information.  
 
Check the in game Stationpedia [F1 on your keyboard] for formatting and instruction sizes to determine how to construct the stack information.  
  
Line 44: Line 61:
 
{{Data Network Header}}
 
{{Data Network Header}}
  
{{Data Parameters|
+
{{Data Parameters}}
{{Data Parameters/row|Power|Boolean|w=0|Can be read to return if the Logic Sorter is correctly powered or not, set via the power system, return 1 if powered and 0 if not|multiple=2|0|Unpowered|1|Powered}}
+
{| class="wikitable"
{{Data Parameters/row|Mode|Integer|The mode of the Logic Sorter.|multiple=3|0|All|1|Any|2|None}}
+
|-
{{Data Parameters/row|Error|Boolean|w=0|1 if device is in error state, otherwise 0|multiple=2|0|<p></p>|1|Error}}
+
! Parameter Name !! Data Type !! Description
{{Data Parameters/row|Lock|Boolean|Disable manual operation of the Logic Sorter.|multiple=2|0|Unlocked|1|Locked}}
+
|-
{{Data Parameters/row|On|Boolean|The current state of the Logic Sorter.|multiple=2|0|Off|1|On}}
+
| Mode || Integer || 0 = All, 1 = Any, 2 = None; Set to 0 by default.
{{Data Parameters/row|RequiredPower|Integer|w=0|Idle operating power quantity, does not necessarily include extra demand power}}
+
|-
{{Data Parameters/row|ClearMemory|Integer|r=0|When set to 1, clears the counter memory (e.g. ExportCount). Will set itself back to 0 when actioned}}
+
| Lock || Boolean || Disable manual control of surface buttons
{{Data Parameters/row|ExportCount|Integer|w=0|How many items exported since last ClearMemory}}
+
|-
{{Data Parameters/row|ImportCount|Integer|w=0|How many items imported since last ClearMemory}}
+
| On || Boolean ||  
{{Data Parameters/row|PrefabHash|Integer|w=0|The hash of the structure}}
+
|-
{{Data Parameters/row|ReferenceId|Integer|w=0|Unique Reference Identifier for this object}}
+
| ClearMemory || Boolean || Writing on this Parameter will reset the ExportCount and ImportCount values to zero.
{{Data Parameters/row|NameHash|Integer|w=0|Provides the hash value for the name of the object as a 32 bit integer.}}
+
|-
}}
+
|}
 +
 
 +
{{Data Outputs}}
 +
{| class="wikitable"
 +
|-
 +
! Output Name !! Data Type !! Description
 +
|-
 +
| Mode || Integer ||
 +
|-
 +
| Lock || Boolean ||
 +
|-
 +
| ImportCount || Integer || Incremented each time an item stack enter by the Import slot
 +
|-
 +
| ExportCount || Integer || Incremented each time an item stack exit by the rejected Export Slot (as in : every time a non whitelisted item is sorted.
 +
|-
 +
| Error || Boolean ||  
 +
|-
 +
| Requiredpower || Integer || In Watts. The Sorter requires 100W of power to function
 +
|-
 +
| PrefabHash || Integer || Returns [[ItemHash]] of device
 +
|-
 +
| Power || Boolean || Device on and receiving power (true\false)
 +
|-
 +
| On || Boolean ||  
 +
|-
 +
|}
  
=== Data Slots ===
+
==== Data Slots ====
 
These are all parameters, that can be read with a [[Kit_(Logic_I/O)#Slots_Reader|Slots Reader]]. The outputs are listed in the order a Slots Reader's "VAR" setting cycles through them.
 
These are all parameters, that can be read with a [[Kit_(Logic_I/O)#Slots_Reader|Slots Reader]]. The outputs are listed in the order a Slots Reader's "VAR" setting cycles through them.
 
{| class="wikitable"
 
{| class="wikitable"
Line 133: Line 175:
 
| ScanningHead || 36 || || Flare || 37 || || Blocked || 38 ||
 
| ScanningHead || 36 || || Flare || 37 || || Blocked || 38 ||
 
|-
 
|-
| SuitMod || 39 || || Crate || 40 || || Portables || 41 ||
+
| SuitMod || 39 || || || || ||
 
|}
 
|}

Please note that all contributions to Unofficial Stationeers Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, 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 (see Unofficial Stationeers Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)