Logic Sorter
From Unofficial Stationeers Wiki
Constructing Options | Sorter, Logic Sorter |
---|---|
Properties | |
Stacks | Yes (10) |
Recipes | |
Autolathe | 10g Iron, 1g Gold, 5g Copper |
Logic | |
Item Hash | 969522478 |
Item Name | ItemKitSorter |
Operation | |
---|---|
Power Usage | 5W |
Prefab Hash | -1009150565 |
Prefab Name | StructureSorter |
Construction | |
Placed with | Kit (Sorter) |
Placed on | Small Grid |
Stage 1 | |
Deconstruction | |
Deconstructed with | Hand Drill |
Item received | Kit (Sorter) |
File:StructureLogicSorter.png | |
Operation | |
---|---|
Power Usage | 5W |
Prefab Hash | 873418029 |
Prefab Name | StructureLogicSorter |
Construction | |
Placed with | Kit (Sorter) |
Placed on | Small Grid |
Stage 1 | |
Deconstruction | |
Deconstructed with | Hand Drill |
Item received | Kit (Sorter) |
Contents
Description
- 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 Parameters
Sorter Instruction | OP Code | Description |
---|---|---|
FilterPrefabHashEquals | 1 | Compares Hash of item in import slot to the set hash and returns true if equal. |
FilterPrefabHashNotEquals | 2 | Compares Hash of item in import slot to the set hash and returns true if not equal. |
FilterSortingClassCompare | 3 | Compares the sorting class of an object in input slot. Example would be all ores. |
FilterSlotTypeCompare | 4 | Compares the item type of an object in the input slot. See slot type table below for item comparisons. |
FilterQuantityCompare | 5 | Compares the stack size of the items in the import slot. |
LimitNextExecutionCount | 6 | Ensures the next executable instruction will only return true a specified number of times. Each time it returns true, it decrements by one. |
Data Network Properties
These are all Data Network properties of this device.
Data Parameters
These are all parameters that can be written with a Logic Writer, Batch Writer, or Integrated Circuit (IC10).
Parameter Name | Data Type | Description |
---|---|---|
Mode | Integer | 0 = All, 1 = Any, 2 = None; Set to 0 by default. |
Lock | Boolean | Disable manual control of surface buttons |
On | Boolean | |
ClearMemory | Boolean | Writing on this Parameter will reset the ExportCount and ImportCount values to zero. |
Data Outputs
These are all parameters, that can be read with a Logic Reader or a Slot Reader. The outputs are listed in the order a Logic Reader's "VAR" setting cycles through them.
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
These are all parameters, that can be read with a Slots Reader. The outputs are listed in the order a Slots Reader's "VAR" setting cycles through them.
Number | Name | Description |
---|---|---|
0 | Import | Import slot. |
1 | Export (reject) | Export slot. |
2 | Export (accept) | Export slot. |
3 | Data Disk | Diskslot |
Name | Data Type | Description |
---|---|---|
MaxQuantity | Integer | Returns maximum stacksize. |
Damage | Integer | Item durability in percent. |
Class | Integer | Item class ID for slot type comparison. |
SortingClass | Integer | Class group of items. |
Quantity | Integer | Size of stack. |
PrefabHash | Integer | Returns ItemHash of item in slot. |
Occupied | Boolean | Returns whether the slot occupied. (0 for no, 1 for yes). |
OccupantHash | Integer | Returns ItemHash of item in slot. |
Item Slot Classes / Types
Reading the class attribute of the input slot will give one of the following values:
Note that you can useSlotClass.<Item>directly in IC code instead of the numeric value
- NOTE The classes listed in this section are FilterSlotTypeCompare and NOT sorting class. eg: SortingClass.Ores vs SlotClass.Ore
Item | Value | Description | Item | Value | Description | Item | Value | Description |
---|---|---|---|---|---|---|---|---|
None | 0 | Helmet | 1 | Suit | 2 | |||
Back | 3 | GasFilter | 4 | GasCanister | 5 | |||
Motherboard | 6 | Circuitboard | 7 | DataDisk | 8 | |||
Organ | 9 | Ore | 10 | Includes reagent mixes from recycler and ices | Plant | 11 | ||
Uniform | 12 | Entity | 13 | Battery | 14 | |||
Egg | 15 | Belt | 16 | Tool | 17 | |||
Appliance | 18 | Ingot | 19 | Torpedo | 20 | |||
Cartridge | 21 | AccessCard | 22 | Magazine | 23 | |||
Circuit | 24 | Bottle | 25 | ProgrammableChip | 26 | |||
Glasses | 27 | CreditCard | 28 | DirtCanister | 29 | |||
SensorProcessingUnit | 30 | LiquidCanister | 31 | LiquidBottle | 32 | |||
Wreckage | 33 | SoundCartridge | 34 | DrillHead | 35 | |||
ScanningHead | 36 | Flare | 37 | Blocked | 38 | |||
SuitMod | 39 |