mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Добавлены - Предохранители Обновление схем: - КРУ перенесено на 14-й провод - Контроль тормоза на 21-й провод - Запитка ВЗ-1 от АРС на 29-й провод - Небольшой фикс сопротивления резисторов Все схемы приведены к московской версии Еж3 от середины 80-ых до наших дней.
165 lines
9.4 KiB
Lua
165 lines
9.4 KiB
Lua
--------------------------------------------------------------------------------
|
||
-- 81-710 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_710_Panel")
|
||
|
||
function TRAIN_SYSTEM:Initialize()
|
||
-- Выключатель батареи (ВБ)
|
||
self.Train:LoadSystem("VB","Relay","VB-11", {bass = true})
|
||
|
||
-- Buttons on the panel
|
||
self.Train:LoadSystem("DoorSelect","Relay","Switch", {bass = true, normally_closed = false })
|
||
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("OtklAVU","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("KU10","Relay","Switch", {bass = true}) --KRP
|
||
self.Train:LoadSystem("KU11","Relay","Switch", {bass = true}) --KSD
|
||
self.Train:LoadSystem("KRR","Relay","Switch", {bass = true})
|
||
|
||
self.Train:LoadSystem("R_UNch","Relay","Switch", {bass = true,})
|
||
self.Train:LoadSystem("R_ZS","Relay","Switch", {bass = true, normally_closed = false})
|
||
self.Train:LoadSystem("R_G","Relay","Switch", {bass = true,})
|
||
self.Train:LoadSystem("R_Radio","Relay","Switch", {bass = true, normally_closed = false})
|
||
self.Train:LoadSystem("R_Program1","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("R_Program2","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("R_Program1H","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("R_Program2H","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("Ring","Relay","Switch", {bass = true})
|
||
|
||
-- АРС
|
||
self.Train:LoadSystem("PB","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("RUM","Relay","Switch",{bass = true, normally_closed = true })
|
||
self.Train:LoadSystem("VAH","Relay","Switch", {bass = true,})
|
||
self.Train:LoadSystem("VAD","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("ARS","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("ALS","Relay","Switch", {bass = true })
|
||
self.Train:LoadSystem("KVT","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("KB","Relay","Switch", {bass = true})
|
||
|
||
--САММ
|
||
self.Train:LoadSystem("SAMMSchemeOff","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("SAMMStart","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("SAMMReset","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("SAMMOn","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("SAMMX2","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("SAMMAhead","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("SAMMAccept","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("SAMMUnit","Relay","Switch", {bass = true})
|
||
|
||
|
||
-- Автоматические выключатели (АВ)
|
||
self.Train:LoadSystem("VU1","Relay","Switch", {bass = true})
|
||
self.Train:LoadSystem("VU2","Relay","Switch", {bass = true})
|
||
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 = true})
|
||
self.Train:LoadSystem("PLights","Relay","Switch",{bass = true})
|
||
self.Train:LoadSystem("GLights","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("PRL3A","Relay","Switch", {normally_closed = true,bass = true})
|
||
self.Train:LoadSystem("PRL33","Relay","Switch", {normally_closed = true,bass = true})
|
||
|
||
self.Train:LoadSystem("RST","Relay","Switch", {bass = true, normally_closed = true})
|
||
|
||
self.V1 = 0
|
||
self.GRP = 0
|
||
self.RRP = 0
|
||
self.TW18 = 0
|
||
self.SD = 0
|
||
self.LKVT = 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.PanelLights = 0
|
||
self.GaugeLights = 0
|
||
self.LightPower = 0
|
||
self.Ring = 0
|
||
self.KT = 0
|
||
self.AVU = 0
|
||
|
||
self.VPR = 0
|
||
|
||
self.AR04 = 0
|
||
self.AR0 = 0
|
||
self.AR40 = 0
|
||
self.AR60 = 0
|
||
self.AR70 = 0
|
||
self.AR80 = 0
|
||
self.KT = 0
|
||
self.KVD = 0
|
||
self.LPU = 0
|
||
|
||
self.AnnouncerPlaying = 0
|
||
|
||
self.CBKIPower = 0
|
||
self.PCBKPower = 0
|
||
end
|
||
|
||
function TRAIN_SYSTEM:Outputs()
|
||
return { "V1","GRP","RRP","TW18","SD","LKVT","Headlights1","Headlights2","RedLight1","RedLight2","EmergencyLights2","EmergencyLights1","MainLights1","MainLights2","Ring","KT","AnnouncerPlaying","AVU","PanelLights","GaugeLights","VPR","AR04","AR0","AR40","AR60","AR70","AR80","KT","KVD","CBKIPower","PCBKPower","LightPower","LPU"}
|
||
end |