mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
fixed bug with automatic limit update
This commit is contained in:
parent
41838ee340
commit
a1c1125d54
@ -42,8 +42,8 @@ function logic.update_annunciator(self)
|
||||
local plc_db = self.plc_i.get_db()
|
||||
|
||||
-- update auto control limit
|
||||
if self.db.control.limit == 0.0 or self.db.control.limit > plc_db.mek_struct.max_burn then
|
||||
self.db.control.limit = plc_db.mek_struct.max_burn
|
||||
if (self.db.control.lim_br10 == 0) or ((self.db.control.lim_br10 / 10) > plc_db.mek_struct.max_burn) then
|
||||
self.db.control.lim_br10 = math.floor(plc_db.mek_struct.max_burn * 10)
|
||||
end
|
||||
|
||||
-- record reactor start time (some alarms are delayed during reactor heatup)
|
||||
|
@ -14,7 +14,7 @@ local svsessions = require("supervisor.session.svsessions")
|
||||
local config = require("supervisor.config")
|
||||
local supervisor = require("supervisor.supervisor")
|
||||
|
||||
local SUPERVISOR_VERSION = "beta-v0.9.3"
|
||||
local SUPERVISOR_VERSION = "beta-v0.9.4"
|
||||
|
||||
local print = util.print
|
||||
local println = util.println
|
||||
|
Loading…
Reference in New Issue
Block a user