2022-03-15 16:02:31 +00:00
|
|
|
-- #REQUIRES rsio.lua
|
|
|
|
|
2022-04-11 15:08:46 +00:00
|
|
|
-- port to send packets TO server
|
|
|
|
SERVER_PORT = 16000
|
|
|
|
-- port to listen to incoming packets FROM server
|
|
|
|
LISTEN_PORT = 15001
|
2022-04-29 17:36:00 +00:00
|
|
|
-- log path
|
|
|
|
LOG_PATH = "/log.txt"
|
|
|
|
-- log mode
|
|
|
|
-- 0 = APPEND (adds to existing file on start)
|
|
|
|
-- 1 = NEW (replaces existing file on start)
|
|
|
|
LOG_MODE = 0
|
2022-04-11 15:08:46 +00:00
|
|
|
-- RTU peripheral devices (named: side/network device name)
|
2022-03-15 16:02:31 +00:00
|
|
|
RTU_DEVICES = {
|
2022-01-13 15:12:44 +00:00
|
|
|
{
|
|
|
|
name = "boiler_0",
|
2022-03-15 16:02:31 +00:00
|
|
|
index = 1,
|
|
|
|
for_reactor = 1
|
2022-01-13 15:12:44 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "turbine_0",
|
2022-03-15 16:02:31 +00:00
|
|
|
index = 1,
|
|
|
|
for_reactor = 1
|
2022-01-13 15:12:44 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-11 15:08:46 +00:00
|
|
|
-- RTU redstone interface definitions
|
2022-03-15 16:02:31 +00:00
|
|
|
RTU_REDSTONE = {
|
|
|
|
{
|
2022-03-23 19:41:08 +00:00
|
|
|
for_reactor = 1,
|
|
|
|
io = {
|
|
|
|
{
|
2022-04-18 02:34:31 +00:00
|
|
|
channel = rsio.RS_IO.WASTE_PO,
|
2022-03-23 19:41:08 +00:00
|
|
|
side = "top",
|
|
|
|
bundled_color = colors.blue,
|
|
|
|
for_reactor = 1
|
|
|
|
},
|
|
|
|
{
|
2022-04-18 02:34:31 +00:00
|
|
|
channel = rsio.RS_IO.WASTE_PU,
|
2022-03-23 19:41:08 +00:00
|
|
|
side = "top",
|
|
|
|
bundled_color = colors.cyan,
|
|
|
|
for_reactor = 1
|
|
|
|
},
|
|
|
|
{
|
2022-04-18 02:34:31 +00:00
|
|
|
channel = rsio.RS_IO.WASTE_AM,
|
2022-03-23 19:41:08 +00:00
|
|
|
side = "top",
|
|
|
|
bundled_color = colors.purple,
|
|
|
|
for_reactor = 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-15 16:02:31 +00:00
|
|
|
}
|