Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
data.nodescript.signals.DR_HL_Signale.nodescript Maven / Gradle / Ivy
### Dieses Script definiert Accessories,
### um Signalbilder eines DR HL Signals anzusteuern
###
### Hardware: 2 - 7 Lightports (Port 0 = red (Main), 1 = green, 2 = yellow low, 3 = yellow high, 4 = green strip, 5 = yellow strip, 6 = red (spare), 7 = white low, 8 = white up)
### Software: 1 accessory
### 1 - 7 Makros, Zuordnung der Macros hängt von der Auswahl ab.
###
###
### history: 2019-03-13 V 0.0.1, A.Tillner, inital Version
### 2019-03-17 V 0.0.2, A.Tillner, fix wrong LED-Name at Ra12- and Zs1-Macro
### 2019-03-21 V 0.0.3, A.Tillner, new Dimmvalues and fix error at Hl1, Hl4 Hl7 and Hl10 (Check for led_main_red was wrong)
### 2019-03-21 V 0.0.4, A.Tillner, Show the max. allowed number of aspects and fix error in Zs1
### 2019-03-24 V 0.0.5, A.Tillner, fix error in Zs1 (Blinka for white)
###
###
### -------------- 1. Select Target
##application(text:de="DR HL Haupt- / Vorsignal", text:en="DR HL Mainsignal")
##instruction(text:de="HL Haupt- / Vorsignal: Lichtausgänge = Rot, Gruen, Gelb(u), Gelb(o), gruener Streifen, gelber Streifen, Rot (Ersatz), Weiss(u), Weiss(o) Macros = Hp0, Hl 1, Hl 2, Hl 3a, Hl 3b, Hl 4, Hl 5, Hl 6a, Hl 6b, Hl 7, Hl 8, Hl 9a, Hl 9b Hl 10, Hl 11 Hl 12a, Hl 12b, Hp0 (Ersatzrot), Zs 1, Ra 12 Auf diesem Knoten können max. ${node_accessory_macro_mapped} Signalbegriffe ausgewählt werden.")
##instruction(text:en="HL Mainsignal: lightport = red, green, yellow(low), yellow(up), green strip, yellow strip, red (spare), white(low), white(up) macros = Hp0, Hl 1, Hl 2, Hl 3a, Hl 3b, Hl 4, Hl 5, Hl 6a, Hl 6b, Hl 7, Hl 8, Hl 9a, Hl 9b Hl 10, Hl 11 Hl 12a, Hl 12b, Hp0 (Spare), Zs 1, Ra 12 The max. number of aspects in this node is ${node_accessory_macro_mapped}")
###
##input($my_SignalName:string, text:de="Name des Signal-Accessories: ", text:en="Name of the signal accessory: ", default="Ausfahrsignal")
##input($my_accessory:accessory, text:de="Nummer des zu erzeugenden Accessory: ", text:en="Nummber of the Accessory: ", default=0)
##input($my_macro:macro, text:de="Nummer des ersten Macros (Vr0): ", text:en="Number of the first macro (Vr0): ", default=0)
##input($start_led:light, text:de="Nummer des ersten Lightport (gr): ", text:en="Number of the first Lightport (gr): ", default=0)
##input($Hp0:boolean, text:de="Hp0 (Hauptrot)", text:en="Hp0 (main)", default=false)
##input($Hl1:boolean, text:de="Hl 1", text:en="Hl 1", default=false)
##input($Hl2:boolean, text:de="Hl 2", text:en="Hl 2", default=false)
##input($Hl3a:boolean, text:de="Hl 3a", text:en="Hl 3a", default=false)
##input($Hl3b:boolean, text:de="Hl 3b", text:en="Hl 3b", default=false)
##input($Hl4:boolean, text:de="Hl 4", text:en="Hl 4", default=false)
##input($Hl5:boolean, text:de="Hl 5", text:en="Hl 5", default=false)
##input($Hl6a:boolean, text:de="Hl 6a", text:en="Hl 6a", default=false)
##input($Hl6b:boolean, text:de="Hl 6b", text:en="Hl 6b", default=false)
##input($Hl7:boolean, text:de="Hl 7", text:en="Hl 7", default=false)
##input($Hl8:boolean, text:de="Hl 8", text:en="Hl 8", default=false)
##input($Hl9a:boolean, text:de="Hl 9a", text:en="Hl 9a", default=false)
##input($Hl9b:boolean, text:de="Hl 9b", text:en="Hl 9b", default=false)
##input($Hl10:boolean, text:de="Hl 10", text:en="Hl 10", default=false)
##input($Hl11:boolean, text:de="Hl 11", text:en="Hl 11", default=false)
##input($Hl12a:boolean, text:de="Hl 12a", text:en="Hl 12a", default=false)
##input($Hl12b:boolean, text:de="Hl 12b", text:en="Hl 12b", default=false)
##input($Hp0s:boolean, text:de="Hp0 (Ersatzrot)", text:en="Hp0 (spare)", default=false)
##input($Zs1:boolean, text:de="Zs1", text:en="Zs1", default=false)
##input($Ra12:boolean, text:de="Ra 12", text:en="Ra 12", default=false)
##input($prevent_replace_labels:boolean, text:de="Keine Namen für Accessory, Makros, Ports ersetzen", text:en="Prevent replace labels for accessory, macro and ports", default=false)
#set($led_gap = 1) ### die anderen vier LED sind an den folgenden vier Lightports angeschlossen
###
### Flags for every used LED
###
#set ($red_main_flag = 0)
#set ($green_flag = 0)
#set ($yellow_low_flag = 0)
#set ($green_strip_flag = 0)
#set ($yellow_strip_flag = 0)
#set ($yellow_up_flag = 0)
#set ($red_spare_flag = 0)
#set ($white_up_flag = 0)
#set ($white_low_flag = 0)
###
### -------------- 2. set Parameters for Ports
#set($WertbeiOff = 0)
#set($WertbeiOn = 200)
#set($Ueberblenden = 15)
#set($Pause = 30)
#set($OnTime = 0)
#set($signalDelay = 0)
#if (${dimm_range} == 8) ### Es handelt sich um einen Knoten mit 8 Bit Dimming
#set($DimmzeitOff = 7)
#set($DimmzeitOn = 7)
#set($DimmzeitOffParam = "DimmOff=${DimmzeitOff}")
#set($DimmzeitOnParam = "DimmOn=${DimmzeitOn}")
#else ### Es handelt sich um einen Knoten mit 16 Bit Dimming
#set($DimmzeitOff = 1750)
#set($DimmzeitOn = 1750)
#set($DimmzeitOffParam = "DimmOff88=${DimmzeitOff}")
#set($DimmzeitOnParam = "DimmOn88=${DimmzeitOn}")
#end
### -------------- 3. execute part of the script
#set ( $nextLed = $start_led)
### Hp0 ?
#if (($Hp0) || ($Ra12) || ($Zs1))
#set($led_main_red = $nextLed)
#set($nextLed = $nextLed + 1)
#set($red_main_flag = 1)
set light ${led_main_red} name="${my_SignalName}_${led_main_red}_rot"
config port ptype=light ValueOff=${WertbeiOff} ValueOn=${WertbeiOn} ${DimmzeitOffParam} ${DimmzeitOnParam} number=${led_main_red}
#end
### Do we need the green LED ?
#if (($Hl1) || ($Hl2) || ($Hl3a) || ($Hl3b) || ($Hl4) || ($Hl5) || ($Hl6a) || ($Hl6b))
#set($led_green = $nextLed)
#set($nextLed = $nextLed + 1)
#set($green_flag = 1)
set light ${led_green} name="${my_SignalName}_${led_green}_gruen"
config port ptype=light ValueOff=${WertbeiOff} ValueOn=${WertbeiOn} ${DimmzeitOffParam} ${DimmzeitOnParam} number=${led_green}
#end
### Do we need the lower yellow led ?
#if (($Hl2) || ($Hl3a) || ($Hl3b) || ($Hl5) || ($Hl6a) || ($Hl6b) || ($Hl8) || ($Hl9a) || ($Hl9b) || ($Hl11) || ($Hl12a) || ($Hl12b))
#set($led_yellow_low = $nextLed)
#set($nextLed = $nextLed + 1)
#set($yellow_low_flag = 1)
set light ${led_yellow_low} name="${my_SignalName}_${led_yellow_low}_gelb_unten"
config port ptype=light ValueOff=${WertbeiOff} ValueOn=${WertbeiOn} ${DimmzeitOffParam} ${DimmzeitOnParam} number=${led_yellow_low}
#end
### Do we need the upper yellow led ?
#if (($Hl7) || ($Hl8) || ($Hl9a) || ($Hl9b) || ($Hl10) || ($Hl11) || ($Hl12a) || ($Hl12b))
#set($led_yellow_up = $nextLed)
#set($nextLed = $nextLed + 1)
#set($yellow_up_flag = 1)
set light ${led_yellow_up} name="${my_SignalName}_${led_yellow_up}_gelb_oben"
config port ptype=light ValueOff=${WertbeiOff} ValueOn=${WertbeiOn} ${DimmzeitOffParam} ${DimmzeitOnParam} number=${led_yellow_up}
#end
### Do we need the green strip led ?
#if (($Hl2) || ($Hl5) || ($Hl8) || ($Hl11))
#set($led_green_strip = $nextLed)
#set($nextLed = $nextLed + 1)
#set($green_strip_flag = 1)
set light ${led_green_strip} name="${my_SignalName}_${led_green_strip}_gruen_streifen"
config port ptype=light ValueOff=${WertbeiOff} ValueOn=${WertbeiOn} ${DimmzeitOffParam} ${DimmzeitOnParam} number=${led_green_strip}
#end
### Do we need the yellow strip led ?
#if (($Hl3b) || ($Hl6b) || ($Hl9b) || ($Hl12b))
#set($led_yellow_strip = $nextLed)
#set($nextLed = $nextLed + 1)
#set($yellow_strip_flag = 1)
set light ${led_yellow_strip} name="${my_SignalName}_${led_yellow_strip}_gelb_streifen"
config port ptype=light ValueOff=${WertbeiOff} ValueOn=${WertbeiOn} ${DimmzeitOffParam} ${DimmzeitOnParam} number=${led_yellow_strip}
#end
### Do we need the spare red LED ?
#if ($Hp0s)
#set($led_spare_red = $nextLed)
#set($nextLed = $nextLed + 1)
#set($red_spare_flag = 1)
set light ${led_spare_red} name="${my_SignalName}_${led_spare_red}_rot_ersatz"
config port ptype=light ValueOff=${WertbeiOff} ValueOn=${WertbeiOn} ${DimmzeitOffParam} ${DimmzeitOnParam} number=${led_spare_red}
#end
### Do we need the white led's ?
#if (($Ra12) || ($Zs1))
#set($led_white_low = $nextLed)
#set($nextLed = $nextLed + 1)
#set($white_low_flag = 1)
set light ${led_white_low} name="${my_SignalName}_${led_white_low}_weiss_unten"
config port ptype=light ValueOff=${WertbeiOff} ValueOn=${WertbeiOn} ${DimmzeitOffParam} ${DimmzeitOnParam} number=${led_white_low}
#if ($Ra12)
#set($led_white_up = $nextLed)
#set($nextLed = $nextLed + 1)
#set($white_up_flag = 1)
set light ${led_white_up} name="${my_SignalName}_${led_white_up}_weiss_oben"
config port ptype=light ValueOff=${WertbeiOff} ValueOn=${WertbeiOn} ${DimmzeitOffParam} ${DimmzeitOnParam} number=${led_white_up}
#end
#end
########################################
### Setzt label, wenn ${prevent_replace_labels} NICHT true
#if (!${prevent_replace_labels})
###
### Set label of Accessories
set accessory ${my_accessory} name="${my_SignalName}"
#end
########################################
#################################################
#####
##### Signal Macros
#####
#################################################
#set ( $nextMacro = $my_macro)
#if ($Hp0)
#################################################
### Macro Hp0
###
#set ($macro_hp0 = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hp0} name="${my_SignalName}_Hp0"
#end
select macro ${macro_hp0}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($green_flag == 1)
add step ptype=light action=down number=${led_green}
#end
#if ($yellow_low_flag == 1)
add step ptype=light action=down number=${led_yellow_low}
#end
#if ($yellow_up_flag == 1)
add step ptype=light action=down number=${led_yellow_up}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=up delay=${signalDelay} number=${led_main_red}
###
### Ende Macro Hp0
###
################################################/
#end
#if ($Hl1)
#################################################
### Macro H11
###
#set ($macro_hl1 = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl1} name="${my_SignalName}_Hl1"
#end
select macro ${macro_hl1}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($yellow_low_flag == 1)
add step ptype=light action=down number=${led_yellow_low}
#end
#if ($yellow_up_flag == 1)
add step ptype=light action=down number=${led_yellow_up}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=up delay=${signalDelay} number=${led_green}
###
### Ende Macro Hl1
###
################################################/
#end
#if ($Hl2)
#################################################
### Macro H12
###
#set ($macro_hl2 = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl2} name="${my_SignalName}_Hl2"
#end
select macro ${macro_hl2}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($yellow_up_flag == 1)
add step ptype=light action=down number=${led_yellow_up}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=up delay=${signalDelay} number=${led_green}
add step ptype=light action=up number=${led_yellow_low}
add step ptype=light action=up number=${led_green_strip}
###
### Ende Macro Hl2
###
################################################/
#end
#if ($Hl3a)
#################################################
### Macro H13a
###
#set ($macro_hl3a = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl3a} name="${my_SignalName}_Hl3a"
#end
select macro ${macro_hl3a}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($yellow_up_flag == 1)
add step ptype=light action=down number=${led_yellow_up}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=up delay=${signalDelay} number=${led_green}
add step ptype=light action=up number=${led_yellow_low}
###
### Ende Macro Hl3a
###
################################################/
#end
#if ($Hl3b)
#################################################
### Macro H13b
###
#set ($macro_hl3b = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl3b} name="${my_SignalName}_Hl3b"
#end
select macro ${macro_hl3b}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($yellow_up_flag == 1)
add step ptype=light action=down number=${led_yellow_up}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=up delay=${signalDelay} number=${led_green}
add step ptype=light action=up number=${led_yellow_low}
add step ptype=light action=up number=${led_yellow_strip}
###
### Ende Macro Hl3b
###
################################################/
#end
#if ($Hl4)
#################################################
### Macro H11
###
#set ($macro_hl4 = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl4} name="${my_SignalName}_Hl4"
#end
select macro ${macro_hl4}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($yellow_low_flag == 1)
add step ptype=light action=down number=${led_yellow_low}
#end
#if ($yellow_up_flag == 1)
add step ptype=light action=down number=${led_yellow_up}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=blinka delay=${signalDelay} number=${led_green}
###
### Ende Macro Hl4
###
################################################/
#end
#if ($Hl5)
#################################################
### Macro H15
###
#set ($macro_hl5 = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl5} name="${my_SignalName}_Hl5"
#end
select macro ${macro_hl5}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($yellow_up_flag == 1)
add step ptype=light action=down number=${led_yellow_up}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=blinka delay=${signalDelay} number=${led_green}
add step ptype=light action=up number=${led_yellow_low}
add step ptype=light action=up number=${led_green_strip}
###
### Ende Macro Hl5
###
################################################/
#end
#if ($Hl6a)
#################################################
### Macro H16a
###
#set ($macro_hl6a = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl6a} name="${my_SignalName}_Hl6a"
#end
select macro ${macro_hl6a}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($yellow_up_flag == 1)
add step ptype=light action=down number=${led_yellow_up}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=blinka delay=${signalDelay} number=${led_green}
add step ptype=light action=up number=${led_yellow_low}
###
### Ende Macro Hl6a
###
################################################/
#end
#if ($Hl6b)
#################################################
### Macro H16b
###
#set ($macro_hl6b = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl6b} name="${my_SignalName}_Hl6b"
#end
select macro ${macro_hl6b}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($yellow_up_flag == 1)
add step ptype=light action=down number=${led_yellow_up}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=blinka delay=${signalDelay} number=${led_green}
add step ptype=light action=up number=${led_yellow_low}
add step ptype=light action=up number=${led_yellow_strip}
###
### Ende Macro Hl6b
###
################################################/
#end
#if ($Hl7)
#################################################
### Macro H17
###
#set ($macro_hl7 = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl7} name="${my_SignalName}_Hl7"
#end
select macro ${macro_hl7}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($yellow_low_flag == 1)
add step ptype=light action=down number=${led_yellow_low}
#end
#if ($green_flag == 1)
add step ptype=light action=down number=${led_green}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=blinka delay=${signalDelay} number=${led_yellow_up}
###
### Ende Macro Hl7
###
################################################/
#end
#if ($Hl8)
#################################################
### Macro H18
###
#set ($macro_hl8 = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl8} name="${my_SignalName}_Hl8"
#end
select macro ${macro_hl8}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($green_flag == 1)
add step ptype=light action=down number=${led_green}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=blinka delay=${signalDelay} number=${led_yellow_up}
add step ptype=light action=up number=${led_yellow_low}
add step ptype=light action=up number=${led_green_strip}
###
### Ende Macro Hl8
###
################################################/
#end
#if ($Hl9a)
#################################################
### Macro H19a
###
#set ($macro_hl9a = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl9a} name="${my_SignalName}_Hl9a"
#end
select macro ${macro_hl9a}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($green_flag == 1)
add step ptype=light action=down number=${led_green}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=blinka delay=${signalDelay} number=${led_yellow_up}
add step ptype=light action=up number=${led_yellow_low}
###
### Ende Macro Hl9a
###
################################################/
#end
#if ($Hl9b)
#################################################
### Macro H19b
###
#set ($macro_hl9b = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl9b} name="${my_SignalName}_Hl9b"
#end
select macro ${macro_hl9b}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($green_flag == 1)
add step ptype=light action=down number=${led_green}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=blinka delay=${signalDelay} number=${led_yellow_up}
add step ptype=light action=up number=${led_yellow_low}
add step ptype=light action=up number=${led_yellow_strip}
###
### Ende Macro Hl9b
###
################################################/
#end
#if ($Hl10)
#################################################
### Macro H110
###
#set ($macro_hl10 = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl10} name="${my_SignalName}_Hl10"
#end
select macro ${macro_hl10}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($yellow_low_flag == 1)
add step ptype=light action=down number=${led_yellow_low}
#end
#if ($green_flag == 1)
add step ptype=light action=down number=${led_green}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=up delay=${signalDelay} number=${led_yellow_up}
###
### Ende Macro Hl10
###
################################################/
#end
#if ($Hl11)
#################################################
### Macro H111
###
#set ($macro_hl11 = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl11} name="${my_SignalName}_Hl11"
#end
select macro ${macro_hl11}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($green_flag == 1)
add step ptype=light action=down number=${led_green}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=up delay=${signalDelay} number=${led_yellow_up}
add step ptype=light action=up number=${led_yellow_low}
add step ptype=light action=up number=${led_green_strip}
###
### Ende Macro Hl11
###
################################################/
#end
#if ($Hl12a)
#################################################
### Macro H19a
###
#set ($macro_hl12a = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl12a} name="${my_SignalName}_Hl12a"
#end
select macro ${macro_hl12a}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($green_flag == 1)
add step ptype=light action=down number=${led_green}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=up delay=${signalDelay} number=${led_yellow_up}
add step ptype=light action=up number=${led_yellow_low}
###
### Ende Macro Hl12a
###
################################################/
#end
#if ($Hl12b)
#################################################
### Macro H112b
###
#set ($macro_hl12b = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hl12b} name="${my_SignalName}_Hl12b"
#end
select macro ${macro_hl12b}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($red_main_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($green_flag == 1)
add step ptype=light action=down number=${led_green}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=up delay=${signalDelay} number=${led_yellow_up}
add step ptype=light action=up number=${led_yellow_low}
add step ptype=light action=up number=${led_yellow_strip}
###
### Ende Macro Hl12b
###
################################################/
#end
#if ($Hp0s)
#################################################
### Macro Hp0 (Ersatz)
###
#set ($macro_hp0s = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_hp0s} name="${my_SignalName}_Hp0_Ersatzrot"
#end
select macro ${macro_hp0s}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($green_flag == 1)
add step ptype=light action=down number=${led_green}
#end
#if ($yellow_low_flag == 1)
add step ptype=light action=down number=${led_yellow_low}
#end
#if ($yellow_up_flag == 1)
add step ptype=light action=down number=${led_yellow_up}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_main_red}
#end
#if ($white_low_flag == 1)
add step ptype=light action=down number=${led_white_low}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=up delay=${signalDelay} number=${led_spare_red}
###
### Ende Macro Hp0s
###
################################################/
#end
#if ($Zs1)
#################################################
### Macro Zs1
###
#set ($macro_zs1 = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_zs1} name="${my_SignalName}_zs1"
#end
select macro ${macro_zs1}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($yellow_low_flag == 1)
add step ptype=light action=down number=${led_yellow_low}
#end
#if ($yellow_up_flag == 1)
add step ptype=light action=down number=${led_yellow_up}
#end
#if ($green_flag == 1)
add step ptype=light action=down number=${led_green}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
#if ($white_up_flag == 1)
add step ptype=light action=down number=${led_white_up}
#end
add step ptype=light action=up delay=${signalDelay} number=${led_main_red}
add step ptype=light action=blinka number=${led_white_low}
###
### Ende Macro Zs1
###
################################################/
#end
#if ($Ra12)
#################################################
### Macro Ra12
###
#set ($macro_ra12 = $nextMacro)
#set($nextMacro = $nextMacro + 1)
#if (!${prevent_replace_labels})
set macro ${macro_ra12} name="${my_SignalName}_Ra12"
#end
select macro ${macro_ra12}
### macro laeuft einmal
config macro repeat=1 slowdown=1
#if ($yellow_low_flag == 1)
add step ptype=light action=down number=${led_yellow_low}
#end
#if ($yellow_up_flag == 1)
add step ptype=light action=down number=${led_yellow_up}
#end
#if ($green_flag == 1)
add step ptype=light action=down number=${led_green}
#end
#if ($green_strip_flag == 1)
add step ptype=light action=down number=${led_green_strip}
#end
#if ($yellow_strip_flag == 1)
add step ptype=light action=down number=${led_yellow_strip}
#end
#if ($red_spare_flag == 1)
add step ptype=light action=down number=${led_spare_red}
#end
add step ptype=light action=up delay=${signalDelay} number=${led_main_red}
add step ptype=light action=up number=${led_white_low}
add step ptype=light action=up number=${led_white_up}
###
### Ende Macro Ra12
###
################################################/
#end
### Define Accessory
#set ($aspectNum = 0)
#set ($aspectError = 0)
select accessory ${my_accessory}
####################### Hp0
#if (${Hp0} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hp0}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 1
#if (${Hl1} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl1}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 2
#if (${Hl2} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl2}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 3a
#if (${Hl3a} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl3a}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 3b
#if (${Hl3b} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl3b}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 4
#if (${Hl4} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl4}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 5
#if (${Hl5} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl5}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 6a
#if (${Hl6a} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl6a}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 6b
#if (${Hl6b} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl6b}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 7
#if (${Hl7} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl7}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 8
#if (${Hl8} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl8}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 9a
#if (${Hl9a} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl9a}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 9b
#if (${Hl9b} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl9b}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 10
#if (${Hl10} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl10}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 11
#if (${Hl11} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl11}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 12a
#if (${Hl12a} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl12a}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hl 12b
#if (${Hl12b} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hl12b}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Hp0s
#if (${Hp0s} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_hp0s}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Zs1
#if (${Zs1} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_zs1}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
####################### Ra 12
#if (${Ra12} && ($aspectError == 0))
add aspect ${aspectNum} macronumber=${macro_ra12}
#if (${aspectNum} >= ${node_accessory_macro_mapped})
#set ($aspectError = 1)
#end
#set ($aspectNum = $aspectNum + 1)
#end
#if (${aspectError} == 1)
$exceptionThrower.throwUserDefined("Die Anzahl der max. Begriffe je Accessory (${node_accessory_macro_mapped}) wurde überschritten.")
#end