2022-05-04 17:37:01 +00:00
|
|
|
local config = {}
|
|
|
|
|
2022-01-22 19:47:54 +00:00
|
|
|
-- scada network listen for PLC's and RTU's
|
2022-05-04 17:37:01 +00:00
|
|
|
config.SCADA_DEV_LISTEN = 16000
|
2022-01-22 19:47:54 +00:00
|
|
|
-- listen port for SCADA supervisor access by coordinators
|
2022-05-04 17:37:01 +00:00
|
|
|
config.SCADA_SV_LISTEN = 16100
|
2023-02-07 22:31:22 +00:00
|
|
|
-- max trusted modem message distance (0 to disable check)
|
|
|
|
config.TRUSTED_RANGE = 0
|
2023-02-13 17:29:59 +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
|
|
|
|
|
2022-01-13 15:23:38 +00:00
|
|
|
-- expected number of reactors
|
2022-05-04 17:37:01 +00:00
|
|
|
config.NUM_REACTORS = 4
|
2022-05-18 17:28:43 +00:00
|
|
|
-- expected number of boilers/turbines for each reactor
|
|
|
|
config.REACTOR_COOLING = {
|
|
|
|
{ BOILERS = 1, TURBINES = 1 }, -- reactor unit 1
|
|
|
|
{ BOILERS = 1, TURBINES = 1 }, -- reactor unit 2
|
|
|
|
{ BOILERS = 1, TURBINES = 1 }, -- reactor unit 3
|
|
|
|
{ BOILERS = 1, TURBINES = 1 } -- reactor unit 4
|
|
|
|
}
|
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
|
|
|
|
|
|
|
|
return config
|