Actions

Difference between revisions of "Integrated Circuit (IC10)"

From Unofficial Stationeers Wiki

(Deleted a stupid remark that helps nobody.)
(How to flash program onto the IC chip: added some clarification)
Line 34: Line 34:
  
 
= How to flash program onto the IC chip =
 
= How to flash program onto the IC chip =
# Setup a [[computer]], wire it to power.
+
# Setup a [[Computer]], wire it to power.
# Insert a [[Motherboard (IC Editor)]] in.
+
# Insert a [[Motherboard (IC Editor)]] in it.
 
# Place [[Kit (IC Housing)|IC Housing]].
 
# Place [[Kit (IC Housing)|IC Housing]].
 
# Wire DATA (green, right) port of the computer to DATA (green, bottom) port on the IC Housing.
 
# Wire DATA (green, right) port of the computer to DATA (green, bottom) port on the IC Housing.
# Unless you're going to actually use/test your program in this particular IC Housing you do not need to power it.
+
## Unless you're going to actually use/test your program in this particular IC Housing you do not need to power it.
# Turn on the computer and see if your IC Housing is listed and selected in the drop-down selector. You can have several IC Housings on the same data network, in that case better be renaming them using [[Labeller]]. The IC10 Integrated Circuit itself can also be labeled (and painted).
+
# Insert [[Integrated Circuit (IC10)]] into [[Kit (IC Housing)|IC Housing]].
# Write/download a program and click "Export" on the computer. If IC housing is powered the program will immediately run.
+
# Turn on the Computer, look at its screen and see if your IC Housing is listed and selected in the drop-down selector. You can have several IC Housings on the same data network, in that case better be renaming them using [[Labeller]]. The IC10 Integrated Circuit itself can also be labeled (and painted).
# When Circuit is picked up size of the program in bytes is shown.
+
## Optional: click "Import" to retrieve a program from the [[Integrated Circuit (IC10)]] into the computer.
 +
# Click "Edit" to open the code editor. Write/load from "Library"/paste your program, click "Confirm".
 +
# Now Computer contains the new program and Integrated Circuit still contains old one (or empty program). Click "Export" on the computer to copy the program into the Circuit. If the IC housing is powered the program will immediately run. You can repeat "Export" as many times as you want and reuse old Circuits.
 +
# When Circuit is picked up size of the stored program in bytes is shown.
  
 
= How to make use of programmed IC Integrated Circuit =
 
= How to make use of programmed IC Integrated Circuit =

Revision as of 15:26, 22 June 2021

Other languages:
English • ‎français
Integrated Circuit (IC10)
IC Housing and IC10 disassembled
Properties
Stacks No
Recipe
Created With Electronics Printer
Cost 10 Gold, 4 Steel, 5 Electrum, 2 Solder


A chip that is programmed with a computer. Place the circuit in a IC Housing. The MIPS language is used.

Where to get programs

  • Write one by yourself using the computer.
  • Paste whatever you have found on the internet into your computer.
  • Load from your private library program you have saved previously (even from different savegame).
  • Get one from Steam Workshop (first subscribe in steam, then in game it will be available in "library" on computer).

How to create programs

You'll need

  1. Basic knowledge about math and logic
  2. Whatever you're intending to program (e.g.: cycling airlock) you must be learnt to do manually (e.g.: close doors, turn on vents, etc)
  3. Learn the MIPS programming language. MIPS is real world low-level (i.e. close to hardware) programming language. IC10 is MIPS with some Stationeers flavor added. It is fairly simple and compact. Due to its simplicity MIPS is not suitable for big programs but you re not going to develop those in the game anyways.

How to start getting in the MIPS programing

Get some simple program (even 10 lines will do), run it in Stationeers to see what it does and then read the text. Look into ingame editor help pages to decrypt keywords. MIPS keywords are abbreviations of English words and mostly make sense, eg. beqz r0 foobar means "Branch (jump) to line labeled foobar if r0 EQuals to Zero".

How to flash program onto the IC chip

  1. Setup a Computer, wire it to power.
  2. Insert a Motherboard (IC Editor) in it.
  3. Place IC Housing.
  4. Wire DATA (green, right) port of the computer to DATA (green, bottom) port on the IC Housing.
    1. Unless you're going to actually use/test your program in this particular IC Housing you do not need to power it.
  5. Insert Integrated Circuit (IC10) into IC Housing.
  6. Turn on the Computer, look at its screen and see if your IC Housing is listed and selected in the drop-down selector. You can have several IC Housings on the same data network, in that case better be renaming them using Labeller. The IC10 Integrated Circuit itself can also be labeled (and painted).
    1. Optional: click "Import" to retrieve a program from the Integrated Circuit (IC10) into the computer.
  7. Click "Edit" to open the code editor. Write/load from "Library"/paste your program, click "Confirm".
  8. Now Computer contains the new program and Integrated Circuit still contains old one (or empty program). Click "Export" on the computer to copy the program into the Circuit. If the IC housing is powered the program will immediately run. You can repeat "Export" as many times as you want and reuse old Circuits.
  9. When Circuit is picked up size of the stored program in bytes is shown.

How to make use of programmed IC Integrated Circuit

  1. Place IC Housing, wire it to power, insert the Circuit
  2. Connect DATA (green, bottom) port on the IC Housing to machines you want to control. Some machines like an Autolathe have a DATA port, you need to use it (or both DATA and POWER). Some machines like a Stacker only have "universal" port.
  3. Unless you're going to modify/debug your program on place you do not require a Computer here.
  4. Using Screwdriver adjust six (or less) screws according to program description/purpose. Many programs do assign labels to screws using alias command (that's considered good style), to take benefit of it you can turn on IC Housing for a short time (that way it will blink yellow, it's okay). If all screws are set to "None" a misconfigured program can do no harm.
  5. Turn on the IC Housing.

How large a program can be

There are 128 lines each being 52 characters long. Each character (incl. line break) takes 2 bytes. Maximum size IC chip will show is 13566.

See also