mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
56 lines
1.3 KiB
Lua
56 lines
1.3 KiB
Lua
local rsio = require("scada-common.rsio")
|
|
|
|
local config = {}
|
|
|
|
-- port to send packets TO server
|
|
config.SERVER_PORT = 16000
|
|
-- port to listen to incoming packets FROM server
|
|
config.LISTEN_PORT = 15001
|
|
-- log path
|
|
config.LOG_PATH = "/log.txt"
|
|
-- log mode
|
|
-- 0 = APPEND (adds to existing file on start)
|
|
-- 1 = NEW (replaces existing file on start)
|
|
config.LOG_MODE = 0
|
|
-- RTU peripheral devices (named: side/network device name)
|
|
config.RTU_DEVICES = {
|
|
{
|
|
name = "boiler_1",
|
|
index = 1,
|
|
for_reactor = 1
|
|
},
|
|
{
|
|
name = "turbine_1",
|
|
index = 1,
|
|
for_reactor = 1
|
|
}
|
|
}
|
|
-- RTU redstone interface definitions
|
|
config.RTU_REDSTONE = {
|
|
{
|
|
for_reactor = 1,
|
|
io = {
|
|
{
|
|
channel = rsio.IO.WASTE_PO,
|
|
side = "top",
|
|
bundled_color = colors.blue,
|
|
for_reactor = 1
|
|
},
|
|
{
|
|
channel = rsio.IO.WASTE_PU,
|
|
side = "top",
|
|
bundled_color = colors.cyan,
|
|
for_reactor = 1
|
|
},
|
|
{
|
|
channel = rsio.IO.WASTE_AM,
|
|
side = "top",
|
|
bundled_color = colors.purple,
|
|
for_reactor = 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
return config
|