2022-05-04 17:37:01 +00:00
|
|
|
local config = {}
|
|
|
|
|
2023-06-05 05:13:22 +00:00
|
|
|
-- supervisor comms channel
|
|
|
|
config.SVR_CHANNEL = 16240
|
|
|
|
-- PLC comms channel
|
|
|
|
config.PLC_CHANNEL = 16241
|
|
|
|
-- RTU/MODBUS comms channel
|
|
|
|
config.RTU_CHANNEL = 16242
|
|
|
|
-- coordinator comms channel
|
|
|
|
config.CRD_CHANNEL = 16243
|
|
|
|
-- pocket comms channel
|
|
|
|
config.PKT_CHANNEL = 16244
|
2023-08-19 17:38:05 +00:00
|
|
|
-- max trusted modem message distance
|
|
|
|
-- (0 to disable check)
|
2023-02-07 22:31:22 +00:00
|
|
|
config.TRUSTED_RANGE = 0
|
2023-08-19 17:38:05 +00:00
|
|
|
-- time in seconds (>= 2) before assuming a remote
|
|
|
|
-- device is no longer active
|
2023-02-13 17:27:22 +00:00
|
|
|
config.PLC_TIMEOUT = 5
|
|
|
|
config.RTU_TIMEOUT = 5
|
|
|
|
config.CRD_TIMEOUT = 5
|
2023-04-18 17:49:59 +00:00
|
|
|
config.PKT_TIMEOUT = 5
|
2023-08-19 17:38:05 +00:00
|
|
|
-- facility authentication key
|
|
|
|
-- (do NOT use one of your passwords)
|
2023-06-25 18:00:18 +00:00
|
|
|
-- this enables verifying that messages are authentic
|
2023-08-19 17:38:05 +00:00
|
|
|
-- all devices on this network must use this key
|
2023-06-25 18:00:18 +00:00
|
|
|
-- config.AUTH_KEY = "SCADAfacility123"
|
2023-02-13 17:27:22 +00:00
|
|
|
|
2022-01-13 15:23:38 +00:00
|
|
|
-- expected number of reactors
|
2022-05-04 17:37:01 +00:00
|
|
|
config.NUM_REACTORS = 4
|
2023-08-19 17:38:05 +00:00
|
|
|
-- expected number of devices for each unit
|
2022-05-18 17:28:43 +00:00
|
|
|
config.REACTOR_COOLING = {
|
2023-08-19 17:38:05 +00:00
|
|
|
-- reactor unit 1
|
|
|
|
{ BOILERS = 1, TURBINES = 1, TANK = false },
|
|
|
|
-- reactor unit 2
|
|
|
|
{ BOILERS = 1, TURBINES = 1, TANK = false },
|
|
|
|
-- reactor unit 3
|
|
|
|
{ BOILERS = 1, TURBINES = 1, TANK = false },
|
|
|
|
-- reactor unit 4
|
|
|
|
{ BOILERS = 1, TURBINES = 1, TANK = false }
|
2022-05-18 17:28:43 +00:00
|
|
|
}
|
2023-08-19 17:38:05 +00:00
|
|
|
-- advanced facility dynamic tank configuration
|
|
|
|
-- (see wiki for details)
|
|
|
|
-- by default, dynamic tanks are for each unit
|
|
|
|
config.FAC_TANK_MODE = 0
|
|
|
|
config.FAC_TANK_LIST = { 0, 0, 0, 0 }
|
2023-02-13 17:27:22 +00:00
|
|
|
|
2022-04-29 17:36:00 +00:00
|
|
|
-- log path
|
2022-05-04 17:37:01 +00:00
|
|
|
config.LOG_PATH = "/log.txt"
|
2022-04-29 17:36:00 +00:00
|
|
|
-- log mode
|
|
|
|
-- 0 = APPEND (adds to existing file on start)
|
|
|
|
-- 1 = NEW (replaces existing file on start)
|
2022-05-04 17:37:01 +00:00
|
|
|
config.LOG_MODE = 0
|
2023-05-10 20:57:23 +00:00
|
|
|
-- true to log verbose debug messages
|
|
|
|
config.LOG_DEBUG = false
|
2022-05-04 17:37:01 +00:00
|
|
|
|
|
|
|
return config
|