-------------------------------------------------------------------------------- -- 81-508t controller panel -------------------------------------------------------------------------------- -- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o. -- Contains proprietary code. See license.txt for additional information. -------------------------------------------------------------------------------- Metrostroi.DefineSystem("81_508T_Panel") function TRAIN_SYSTEM:Initialize() -- Выключатель батареи (ВБ) self.Train:LoadSystem("VB","Relay","VB-11", {bass = true}) -- Buttons on the panel self.Train:LoadSystem("V4","Relay","Switch", {bass = true}) --LOn self.Train:LoadSystem("V5","Relay","Switch", {bass = true}) --LOff self.Train:LoadSystem("KU9","Relay","Switch", {bass = true}) --VRP self.Train:LoadSystem("KU15","Relay","Switch", {bass = true}) --RezMK self.Train:LoadSystem("V1","Relay","Switch", {bass = true}) --VMK self.Train:LoadSystem("VU14","Relay","Switch", {bass = true}) --VUS self.Train:LoadSystem("V2","Relay","Switch", {bass = true }) --VDL1 self.Train:LoadSystem("V3","Relay","Switch", { normally_closed = true, bass = true }) --VDL2 self.Train:LoadSystem("V6","Relay","Switch", {bass = true}) --VDL self.Train:LoadSystem("KU12","Relay","Switch", {bass = true}) --KDL self.Train:LoadSystem("KU7","Relay","Switch", {bass = true}) --KDP self.Train:LoadSystem("V10","Relay","Switch", {bass = true}) --KRZD self.Train:LoadSystem("KU8","Relay","Switch", {bass = true}) --KSN self.Train:LoadSystem("KU11","Relay","Switch", {bass = true}) --KSD -- Автоматические выключатели (АВ) self.Train:LoadSystem("VU1","Relay","Switch", {bass = true}) self.Train:LoadSystem("VU2","Relay","Switch", {bass = true, normally_closed = false}) self.Train:LoadSystem("VU3","Relay","Switch", {bass = true}) self.Train:LoadSystem("AV","Relay","Switch", {bass = true}) self.Train:LoadSystem("VU","Relay","Switch", {bass = true, normally_closed = false}) self.Train:LoadSystem("Ring","Relay","Switch", {bass = true}) --Предохранители высоковольтные self.Train:LoadSystem("PR1","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PR2","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PR5","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PR11","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PR4","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PR9","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PR6","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PR8","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PR12","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PR1Cap","Relay","Switch", {normally_closed = false,bass = true}) self.Train:LoadSystem("PR2Cap","Relay","Switch", {normally_closed = false,bass = true}) self.Train:LoadSystem("PR5Cap","Relay","Switch", {normally_closed = false,bass = true}) self.Train:LoadSystem("PR11Cap","Relay","Switch", {normally_closed = false,bass = true}) self.Train:LoadSystem("PR4Cap","Relay","Switch", {normally_closed = false,bass = true}) self.Train:LoadSystem("PR9Cap","Relay","Switch", {normally_closed = false,bass = true}) self.Train:LoadSystem("PR6Cap","Relay","Switch", {normally_closed = false,bass = true}) self.Train:LoadSystem("PR8Cap","Relay","Switch", {normally_closed = false,bass = true}) self.Train:LoadSystem("PR12Cap","Relay","Switch", {normally_closed = false,bass = true}) --Предохранители низковольтные self.Train:LoadSystem("PRL13","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL31","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL17","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL25","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL18","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL24","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL19","Relay","Switch", {normally_closed = true,bass = true}) --self.Train:LoadSystem("PRL6A","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL4A","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL16","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL28","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL2A","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL34","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL23","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL15","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL22","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL20","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL21","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL32","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL30","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL1A","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL14","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL26","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL12","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL29","Relay","Switch", {normally_closed = true,bass = true}) self.Train:LoadSystem("PRL33","Relay","Switch", {normally_closed = true,bass = true}) self.V1 = 0 self.GRP = 0 self.RRP = 0 self.TW18 = 0 self.SD = 0 self.Headlights1 = 0 self.Headlights2 = 0 self.RedLight1 = 0 self.RedLight2 = 0 self.EmergencyLights2 = 0 self.EmergencyLights1 = 0 self.MainLights1 = 0 self.MainLights2 = 0 self.LightPower = 0 self.PanelLights = 0 self.GaugeLights = 0 self.Ring = 0 self.AnnouncerPlaying = 0 self.BatteryVoltmeter = 0 self.PCBKPower = 0 end function TRAIN_SYSTEM:Outputs() return {"V1","GRP","RRP","TW18","SD","Headlights1","Headlights2","RedLight1","RedLight2","EmergencyLights2","EmergencyLights1","MainLights1","MainLights2","PanelLights","GaugeLights","AnnouncerPlaying","BatteryVoltmeter","PCBKPower","LightPower","Ring"} end