Stationeers

Stationeers

View Stats:
Jebbster Oct 3, 2018 @ 10:30pm
Setting the state of memory or batch writer with IC ?
Ive googled it a couple times and searched the forums but couldt quite find it.

What variables do I use when I want to write a code to change the state on the batch writer?
I want the batch writer to output 1 to all my coolers or 0 to turn em off. But my coding just turn the batch writer itself on or off.

Same with a memory actually, how do I change the state of it with the IC coding?
thankful for help!
< >
Showing 1-9 of 9 comments
Bigfoot Oct 4, 2018 @ 1:41am 
You can use the IC as input for the batch writer and use
s db Setting r?
or you can use a memory as input for the batch writer an use
s d0 Setting r? # d0 is the memory
.
Jebbster Oct 4, 2018 @ 5:30am 
Thx!
This works for the memory I found out but I cant get it to work for the batch writer.
The memory changes state when I write it like that but nothing happends with the batch writer. Will keep trying though
Bigfoot Oct 4, 2018 @ 6:22am 
You must use the IC or the memory as input for the batch writer.

This is my solar control
https://steamcommunity.com/sharedfiles/filedetails/?id=1530065592
alias Sensor d0 alias MemOutH d1 # Output Horizontal to Memory # db Output Vertical to Setting s Sensor Mode 1 # Horizontal yield l r0 Sensor SolarAngle mul r0 r0 -1 s MemOutH Setting r0 s Sensor Mode 0 # Vertical yield l r0 Sensor SolarAngle div r0 r0 1.5 sub r0 50 r0 s db Setting r0 j 0
Last edited by Bigfoot; Oct 4, 2018 @ 6:23am
Mad_Shooter Apr 1, 2020 @ 4:20pm 
I am also having issues with this. I want a batch writer to turn on 2 sets of 2 or more active vents from an ic to push and pull and push air. Please keep in mind I am code dumb and I am still learning...
Last edited by Mad_Shooter; Apr 1, 2020 @ 4:20pm
Sinclair Sep 26, 2020 @ 1:48am 
Originally posted by Mad_Shooter:
I am also having issues with this. I want a batch writer to turn on 2 sets of 2 or more active vents from an ic to push and pull and push air. Please keep in mind I am code dumb and I am still learning...

Had the same problem with using the chip for temperature control. We managed to solve it thus:

  1. The IC chip sets the Open state of two switches, one for heaters, one for coolers
  2. The state of each switch is read by a dedicated logic reader and sent to a corresponding batch writer
  3. Each batch writer controls the machines themselves

This requires a bit more than a single block of wall space to set up. I believe it should work for your setup as well.
rGlory Sep 26, 2020 @ 3:00pm 
Originally posted by Jebbster:
Thx!
This works for the memory I found out but I cant get it to work for the batch writer.
The memory changes state when I write it like that but nothing happends with the batch writer. Will keep trying though
You make batch writer to read its value from IC housing itself, also connect one of D? from housing to batch writer as well and keep batch writer off. In IC code you change IC housing "Settings" by writing to "db"and turn on batch writer for some time through that D? channel using "On" property.
Shanna Sep 27, 2020 @ 4:14pm 
Perhaps an all to obvious one, yet I feel the need to mention it, just to exclude the obvious. Don't forget to jump back to the beginning of the code after reaching the end. Otherwise every task in the code is executed only once.
DanVegaJAX Jul 10, 2021 @ 3:56pm 
There are two commands I found for batch: sb and lb

# Close Silo
define Silo 1155865682 # Silo Hash Value
move r1 0
sb Silo Open r1
# Close Silo

# Load Sum of all silos to r0
define Silo 1155865682 # Silo Hash Value
alias SiloTotal r0
lb r0 Silo Quantity 1 # Batch Mode for Sum is 1
# Load Sum of all silos

Hope this helps. I had to find it myself.
Last edited by DanVegaJAX; Jul 10, 2021 @ 4:14pm
Like what DanVegaJAX pointed out, the batch commands in IC10 is a game-changer. I got back into the game about a month ago and recently found out about this command that was added.
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Oct 3, 2018 @ 10:30pm
Posts: 9