Neue Demo: MultiOn_KS_Vorsignal_GK3

This commit is contained in:
Nero 2023-07-23 11:18:00 +00:00
parent fa650867fb
commit 674e055fe1
8 changed files with 41 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,21 @@
clearlog()
require("kskit\\On")
-- Unsere Funktion hängt am Hauptsignal (1) UND am daranhängenden Zusatzanzeiger (2)
-- Als Parameter bekommen wir die jeweiligen Stellungen übergeben
MultiOn({1,2}, function(HS, Zs3)
print("Hauptsignal = ",HS,", Zs3 = ",Zs3)
if HS==2 then -- Wenn Hauptsignal Fahrt zeigt
if Zs3>1 then -- Wenn Zs3 was anzeigt
EEPSetSignal(3, 4, 1) -- Ks1 / Grün blinkend
EEPSetSignal(4, Zs3, 1) -- Zs3v = Zs3
else
EEPSetSignal(3, 3, 1) -- Ks1 / Grün
EEPSetSignal(4, 1, 1) -- Zs3v aus
end
else
EEPSetSignal(3, 1, 1) -- Ks2 / Gelb: Halt erwarten
EEPSetSignal(4, 1, 1) -- Zs3v aus
EEPSetSignal(2, 1, 1) -- Zs3 am Hauptsignal ebenfalls aus
end
end)

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB