diff --git a/configurations/swtbahn-full/bidib_train_config.yml b/configurations/swtbahn-full/bidib_train_config.yml index 59b81014..cc62c5d3 100644 --- a/configurations/swtbahn-full/bidib_train_config.yml +++ b/configurations/swtbahn-full/bidib_train_config.yml @@ -20,7 +20,7 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g + weight: 77.0g length: 13.0cm type: cargo - id: cargo_bayern @@ -43,7 +43,7 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g + weight: 72.0g length: 13.0cm type: cargo - id: cargo_green @@ -63,7 +63,7 @@ trains: - id: head_light bit: 4 initial: 1 - weight: 100.0g + weight: 80.0g length: 13.0cm type: cargo - id: regional_odeg @@ -86,7 +86,7 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g + weight: 194.0g length: 25.0cm type: passenger - id: regional_brengdirect @@ -109,6 +109,46 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g - length: 23.0cm + weight: 236.0g + length: 35.0cm + type: passenger + - id: cargo_g1000bb + dcc-address: 0x0050 + dcc-speed-steps: 126 + calibration: + - 5 + - 15 + - 30 + - 45 + - 60 + - 75 + - 90 + - 105 + - 120 + peripherals: + - id: head_light + bit: 4 + initial: 1 + weight: 35.0g + length: 10.0cm + type: cargo + - id: perso_sbb + dcc-address: 0x004F + dcc-speed-steps: 126 + calibration: + - 5 + - 15 + - 30 + - 45 + - 60 + - 75 + - 90 + - 105 + - 120 + peripherals: + - id: head_light + bit: 4 + initial: 1 + weight: 81.0g + length: 12.0cm type: passenger diff --git a/configurations/swtbahn-full/config.bahn b/configurations/swtbahn-full/config.bahn index 10e20c46..e57260c2 100644 --- a/configurations/swtbahn-full/config.bahn +++ b/configurations/swtbahn-full/config.bahn @@ -806,21 +806,21 @@ module SWTbahnFull trains cargo_db 0x007F # addr high | addr low - steps 126 - calibration - 5 - 15 - 30 - 45 - 60 - 75 - 90 - 105 - 120 - end - weight 100g - length 13cm - type cargo + steps 126 + calibration + 5 + 15 + 30 + 45 + 60 + 75 + 90 + 105 + 120 + end + weight 77g + length 13cm + type cargo peripherals head_light bit 4 # a value in range 0..31 @@ -829,28 +829,38 @@ module SWTbahnFull bit 0 # a value in range 0..31 initial 1 end - - cargo_bayern 0x0070 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 13cm type cargo + + cargo_bayern 0x0070 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 72g length 13cm type cargo peripherals head_light bit 4 initial 1 cabin_light bit 0 initial 1 end - - cargo_green 0x006F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 13cm type cargo + + cargo_green 0x006F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 80g length 13cm type cargo peripherals head_light bit 4 initial 1 end - regional_odeg 0x0060 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 25cm type passenger + regional_odeg 0x0060 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 194g length 25cm type passenger peripherals head_light bit 4 initial 1 cabin_light bit 0 initial 1 end - - regional_brengdirect 0x005F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 23cm type passenger + + regional_brengdirect 0x005F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 236g length 35cm type passenger peripherals head_light bit 4 initial 1 cabin_light bit 0 initial 1 end + + cargo_g1000bb 0x0050 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 35g length 10cm type cargo + peripherals + head_light bit 4 initial 1 + end + + perso_sbb 0x004F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 81g length 12cm type passenger + peripherals + head_light bit 4 initial 1 + end end end diff --git a/configurations/swtbahn-lite/bidib_train_config.yml b/configurations/swtbahn-lite/bidib_train_config.yml index 59b81014..cc62c5d3 100644 --- a/configurations/swtbahn-lite/bidib_train_config.yml +++ b/configurations/swtbahn-lite/bidib_train_config.yml @@ -20,7 +20,7 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g + weight: 77.0g length: 13.0cm type: cargo - id: cargo_bayern @@ -43,7 +43,7 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g + weight: 72.0g length: 13.0cm type: cargo - id: cargo_green @@ -63,7 +63,7 @@ trains: - id: head_light bit: 4 initial: 1 - weight: 100.0g + weight: 80.0g length: 13.0cm type: cargo - id: regional_odeg @@ -86,7 +86,7 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g + weight: 194.0g length: 25.0cm type: passenger - id: regional_brengdirect @@ -109,6 +109,46 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g - length: 23.0cm + weight: 236.0g + length: 35.0cm + type: passenger + - id: cargo_g1000bb + dcc-address: 0x0050 + dcc-speed-steps: 126 + calibration: + - 5 + - 15 + - 30 + - 45 + - 60 + - 75 + - 90 + - 105 + - 120 + peripherals: + - id: head_light + bit: 4 + initial: 1 + weight: 35.0g + length: 10.0cm + type: cargo + - id: perso_sbb + dcc-address: 0x004F + dcc-speed-steps: 126 + calibration: + - 5 + - 15 + - 30 + - 45 + - 60 + - 75 + - 90 + - 105 + - 120 + peripherals: + - id: head_light + bit: 4 + initial: 1 + weight: 81.0g + length: 12.0cm type: passenger diff --git a/configurations/swtbahn-lite/config.bahn b/configurations/swtbahn-lite/config.bahn index d5062966..9fd7242a 100644 --- a/configurations/swtbahn-lite/config.bahn +++ b/configurations/swtbahn-lite/config.bahn @@ -1,191 +1,201 @@ module SWTbahnLite - boards - master 0xDA000D680052EF - features - 0x03:0x14 # seckack on, 200ms - 0x6E:0x00 # track output default off - end - lightcontrol 0x45000D6B0083EC - onecontrol 0x05000D7500DBED - end - - segments master - seg1 0x00 length 10cm - seg2 0x01 length 57.5cm - seg3 0x02 length 11.95cm - seg4 0x03 length 19cm - seg5 0x04 length 11.95cm - seg6 0x05 length 61.4cm - seg7 0x06 length 10cm - seg8 0x07 length 13cm - seg9 0x08 length 8cm - seg10 0x09 length 70.75cm - seg11 0x0A length 15.85cm - seg12 0x0B length 11.3cm - seg13 0x0C length 10.9cm - seg14 0x0D length 8cm - seg15 0x0E length 56cm - seg16 0x0F length 8.15cm - seg17 0x10 length 11.3cm - seg18 0x11 length 20.2cm - seg19 0x12 length 40.8cm - seg20 0x13 length 10.2cm - seg21 0x14 length 10.9cm - seg22 0x15 length 11.3cm - seg23 0x16 length 5cm - seg24 0x17 length 50cm - seg25 0x18 length 8cm - seg26 0x19 length 17.3cm - seg27 0x1A length 10cm - seg28 0x1B length 50cm - seg29 0x1C length 10cm - end - - signals lightcontrol - entry signal1 0x00 - entry signal2 0x01 - entry signal3 0x02 - entry signal4 0x03 - entry signal5 0x04 - entry signal6 0x05 - block signal7 0x06 - block signal8 0x07 - block signal9 0x08 - block signal10 0x09 - block signal11 0x0A - halt signal12 0xF0 # Physically part of signalends - halt signal13 0xF1 # Physically part of signalends - block signal14 0x0B - halt signal15 0xF2 # Physically part of signalends - halt signalends 0x12 - end - - points onecontrol - point1 0x00 segment seg4 normal 0x01 reverse 0x00 initial normal - point2 0x01 segment seg8 normal 0x01 reverse 0x00 initial normal - point3 0x02 segment seg12 normal 0x01 reverse 0x00 initial normal - point4 0x03 segment seg13 normal 0x01 reverse 0x00 initial normal - point5 0x04 segment seg17 normal 0x01 reverse 0x00 initial normal - point6 0x05 segment seg21 normal 0x01 reverse 0x00 initial normal - point7 0x06 segment seg22 normal 0x01 reverse 0x00 initial normal - end - - peripherals lightcontrol - onebit lanterns 0x13 port 0x00FF # Exact port address is not essential - end - - blocks - # Clockwise reading direction - - # Regular blocks - block1 overlap seg18 main seg19 overlap seg20 - block2 overlap seg5 main seg6 overlap seg7 - block3 overlap seg1 main seg2 overlap seg3 - block4 overlap seg14 main seg15 overlap seg16 - block5 overlap seg9 main seg10 overlap seg11 + boards + master 0xDA000D680052EF + features + 0x03:0x14 # seckack on, 200ms + 0x6E:0x00 # track output default off + end + lightcontrol 0x45000D6B0083EC + onecontrol 0x05000D7500DBED + end - # buffer blocks - buffer main seg26 - end - - platforms - platform1 overlap seg29 main seg28 overlap seg27 - platform2 overlap seg23 main seg24 overlap seg25 - end - - layout - # Clockwise reading direction - - block1.up -- point6.stem - block1.down -- point5.stem + segments master + seg1 0x00 length 10cm + seg2 0x01 length 57.5cm + seg3 0x02 length 11.95cm + seg4 0x03 length 19cm + seg5 0x04 length 11.95cm + seg6 0x05 length 61.4cm + seg7 0x06 length 10cm + seg8 0x07 length 13cm + seg9 0x08 length 8cm + seg10 0x09 length 70.75cm + seg11 0x0A length 15.85cm + seg12 0x0B length 11.3cm + seg13 0x0C length 10.9cm + seg14 0x0D length 8cm + seg15 0x0E length 56cm + seg16 0x0F length 8.15cm + seg17 0x10 length 11.3cm + seg18 0x11 length 20.2cm + seg19 0x12 length 40.8cm + seg20 0x13 length 10.2cm + seg21 0x14 length 10.9cm + seg22 0x15 length 11.3cm + seg23 0x16 length 5cm + seg24 0x17 length 50cm + seg25 0x18 length 8cm + seg26 0x19 length 17.3cm + seg27 0x1A length 10cm + seg28 0x1B length 50cm + seg29 0x1C length 10cm + end - block2.up -- point2.stem - block2.down -- point1.stem + signals lightcontrol + entry signal1 0x00 + entry signal2 0x01 + entry signal3 0x02 + entry signal4 0x03 + entry signal5 0x04 + entry signal6 0x05 + block signal7 0x06 + block signal8 0x07 + block signal9 0x08 + block signal10 0x09 + block signal11 0x0A + halt signal12 0xF0 # Physically part of signalends + halt signal13 0xF1 # Physically part of signalends + block signal14 0x0B + halt signal15 0xF2 # Physically part of signalends + halt signalends 0x12 + end - block3.up -- point1.straight - block3.down -- point3.straight - - block4.up -- point1.side - block4.down -- point4.stem + points onecontrol + point1 0x00 segment seg4 normal 0x01 reverse 0x00 initial normal + point2 0x01 segment seg8 normal 0x01 reverse 0x00 initial normal + point3 0x02 segment seg12 normal 0x01 reverse 0x00 initial normal + point4 0x03 segment seg13 normal 0x01 reverse 0x00 initial normal + point5 0x04 segment seg17 normal 0x01 reverse 0x00 initial normal + point6 0x05 segment seg21 normal 0x01 reverse 0x00 initial normal + point7 0x06 segment seg22 normal 0x01 reverse 0x00 initial normal + end - block5.up -- point3.stem - block5.down -- point2.straight + peripherals lightcontrol + onebit lanterns 0x13 port 0x00FF # Exact port address is not essential + end + + blocks + # Clockwise reading direction - platform1.up -- point5.straight - platform2.down -- point7.stem - buffer.up -- point7.straight + # Regular blocks + block1 overlap seg18 main seg19 overlap seg20 + block2 overlap seg5 main seg6 overlap seg7 + block3 overlap seg1 main seg2 overlap seg3 + block4 overlap seg14 main seg15 overlap seg16 + block5 overlap seg9 main seg10 overlap seg11 + + # buffer blocks + buffer main seg26 + end - # signals - signal1 -- block3.down - signal2 -- block3.up - signal3 -- block2.down - signal4 -- block2.up - signal5 -- block5.down - signal6 -- block5.up - signal7 -- block4.down - signal8 -- block4.up - signal9 -- block1.down - signal10 -- block1.up - signal11 -- platform2.down - signal12 -- platform2.up - signal13 -- buffer.down - signal14 -- platform1.up - signal15 -- platform1.down + platforms + platform1 overlap seg29 main seg28 overlap seg27 + platform2 overlap seg23 main seg24 overlap seg25 + end - # points - point5.side -- point2.side - point6.straight -- point4.straight - point6.side -- point7.side - point3.side -- point4.side - end + layout + # Clockwise reading direction + + block1.up -- point6.stem + block1.down -- point5.stem + + block2.up -- point2.stem + block2.down -- point1.stem - trains - cargo_db 0x007F # addr high | addr low - steps 126 - calibration - 5 - 15 - 30 - 45 - 60 - 75 - 90 - 105 - 120 - end - weight 100g - length 13cm - type cargo - peripherals - head_light - bit 4 # a value in range 0..31 - initial 1 - cabin_light - bit 0 # a value in range 0..31 - initial 1 - end + block3.up -- point1.straight + block3.down -- point3.straight - cargo_bayern 0x0070 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 13cm type cargo - peripherals - head_light bit 4 initial 1 - cabin_light bit 0 initial 1 - end + block4.up -- point1.side + block4.down -- point4.stem - cargo_green 0x006F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 13cm type cargo - peripherals - head_light bit 4 initial 1 - end + block5.up -- point3.stem + block5.down -- point2.straight + + platform1.up -- point5.straight + platform2.down -- point7.stem + buffer.up -- point7.straight + + # signals + signal1 -- block3.down + signal2 -- block3.up + signal3 -- block2.down + signal4 -- block2.up + signal5 -- block5.down + signal6 -- block5.up + signal7 -- block4.down + signal8 -- block4.up + signal9 -- block1.down + signal10 -- block1.up + signal11 -- platform2.down + signal12 -- platform2.up + signal13 -- buffer.down + signal14 -- platform1.up + signal15 -- platform1.down - regional_odeg 0x0060 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 25cm type passenger - peripherals - head_light bit 4 initial 1 - cabin_light bit 0 initial 1 + # points + point5.side -- point2.side + point6.straight -- point4.straight + point6.side -- point7.side + point3.side -- point4.side end - - regional_brengdirect 0x005F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 23cm type passenger - peripherals - head_light bit 4 initial 1 - cabin_light bit 0 initial 1 + + trains + cargo_db 0x007F # addr high | addr low + steps 126 + calibration + 5 + 15 + 30 + 45 + 60 + 75 + 90 + 105 + 120 + end + weight 77g + length 13cm + type cargo + peripherals + head_light + bit 4 # a value in range 0..31 + initial 1 + cabin_light + bit 0 # a value in range 0..31 + initial 1 + end + + cargo_bayern 0x0070 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 72g length 13cm type cargo + peripherals + head_light bit 4 initial 1 + cabin_light bit 0 initial 1 + end + + cargo_green 0x006F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 80g length 13cm type cargo + peripherals + head_light bit 4 initial 1 + end + + regional_odeg 0x0060 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 194g length 25cm type passenger + peripherals + head_light bit 4 initial 1 + cabin_light bit 0 initial 1 + end + + regional_brengdirect 0x005F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 236g length 35cm type passenger + peripherals + head_light bit 4 initial 1 + cabin_light bit 0 initial 1 + end + + cargo_g1000bb 0x0050 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 35g length 10cm type cargo + peripherals + head_light bit 4 initial 1 + end + + perso_sbb 0x004F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 81g length 12cm type passenger + peripherals + head_light bit 4 initial 1 + end end - end end diff --git a/configurations/swtbahn-standard/bidib_train_config.yml b/configurations/swtbahn-standard/bidib_train_config.yml index 59b81014..cc62c5d3 100644 --- a/configurations/swtbahn-standard/bidib_train_config.yml +++ b/configurations/swtbahn-standard/bidib_train_config.yml @@ -20,7 +20,7 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g + weight: 77.0g length: 13.0cm type: cargo - id: cargo_bayern @@ -43,7 +43,7 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g + weight: 72.0g length: 13.0cm type: cargo - id: cargo_green @@ -63,7 +63,7 @@ trains: - id: head_light bit: 4 initial: 1 - weight: 100.0g + weight: 80.0g length: 13.0cm type: cargo - id: regional_odeg @@ -86,7 +86,7 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g + weight: 194.0g length: 25.0cm type: passenger - id: regional_brengdirect @@ -109,6 +109,46 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g - length: 23.0cm + weight: 236.0g + length: 35.0cm + type: passenger + - id: cargo_g1000bb + dcc-address: 0x0050 + dcc-speed-steps: 126 + calibration: + - 5 + - 15 + - 30 + - 45 + - 60 + - 75 + - 90 + - 105 + - 120 + peripherals: + - id: head_light + bit: 4 + initial: 1 + weight: 35.0g + length: 10.0cm + type: cargo + - id: perso_sbb + dcc-address: 0x004F + dcc-speed-steps: 126 + calibration: + - 5 + - 15 + - 30 + - 45 + - 60 + - 75 + - 90 + - 105 + - 120 + peripherals: + - id: head_light + bit: 4 + initial: 1 + weight: 81.0g + length: 12.0cm type: passenger diff --git a/configurations/swtbahn-standard/config.bahn b/configurations/swtbahn-standard/config.bahn index 20e696e6..bed7c8aa 100644 --- a/configurations/swtbahn-standard/config.bahn +++ b/configurations/swtbahn-standard/config.bahn @@ -1,238 +1,238 @@ module SWTbahnStandard - boards - onecontrol1 0x05000D7500E8ED - onecontrol2 0x05000D7500DAED - lightcontrol1 0x45000D6B0072EC - lightcontrol2 0x45000D6B0067EC - master 0xDA000D680001EE - features - 0x03:0x14 # seckack on, 200ms - 0x6E:0x00 # track output default off - end - end - - segments master - seg1 0x00 length 20cm - seg2 0x01 length 11.3cm - seg3 0x02 length 10cm - seg4 0x03 length 72.5cm - seg5 0x04 length 10cm - seg6 0x05 length 13cm - seg7 0x06 length 17.2cm - seg8 0x07 length 71.1cm - seg9 0x08 length 17.2cm - seg10 0x09 length 13cm - seg11 0x0A length 10cm - seg12 0x0B length 113.7cm - seg13 0x0C length 18.4cm - seg14 0x0D length 26cm - seg15 0x0E length 23.9cm - seg16 0x0F length 77.6cm - seg17 0x20 length 10.3cm - seg18 0x26 length 20.4cm - seg19 0x22 length 12cm - seg20 0x23 length 17.1cm - seg21 0x24 length 84.1cm - seg22 0x25 length 31.35cm - seg23 0x21 length 21.3cm - seg24 0x10 length 40.5cm - seg25 0x11 length 51.4cm - seg26 0x12 length 30.7cm - seg27 0x13 length 10.2cm - seg28 0x27 length 80.8cm - seg29 0x28 length 10cm - seg30a 0x1C length 4cm # GBM16T: OFF sensor only - seg30b 0x1D length 5cm # Kehrschleife: OFF sensor, reversible polarity - seg31 0x1E length 55.1cm # Kehrschleife: main, reversible polarity - seg32a 0x1B length 6cm # Kehrschleife: ON sensor, reversible polarity - seg32b 0x1F length 4cm # GBM16T: ON sensor only - seg33 0x14 length 20.9cm - seg34 0x15 length 14.1cm - seg35 0x16 length 21cm - seg36 0x17 length 11.2cm - seg37 0x18 length 55cm - seg38 0x19 length 10cm - seg39 0x1A length 17.1cm - seg40 0x29 length 56.7cm - seg41 0x2A length 10cm - end - - reversers master - reverser 20051 block7 - end - - signals lightcontrol1 - entry signal3 0x00 - entry signal4 0x01 - entry signal5 0x02 - entry signal6 0x03 - entry signal7 0x04 - entry signal11 0x05 - entry signal12 0x06 - entry signal13 0x07 - halt signal17 0x08 - halt signal19 0x09 - platformlight platformlights 0x0A - end - - signals lightcontrol2 - halt signal1 0x00 - entry signal2 0x01 - entry signal8 0x02 - entry signal9 0x03 - entry signal10 0x04 - entry signal14 0x05 - entry signal15 0x06 - entry signal16 0x07 - entry signal18 0x08 - end - - points onecontrol1 - point2 0x00 segment seg6 normal 0x01 reverse 0x00 initial normal - point3 0x01 segment seg10 normal 0x01 reverse 0x00 initial normal - point4 0x02 segment seg23 normal 0x01 reverse 0x00 initial normal - point5 0x03 segment seg24 normal 0x01 reverse 0x00 initial normal - point7 0x04 segment seg19 normal 0x01 reverse 0x00 initial normal - point8 0x05 segment seg18 normal 0x01 reverse 0x00 initial normal - end - - points onecontrol2 - point1 0x00 segment seg2 normal 0x01 reverse 0x00 initial normal - point6 0x01 segment seg14 normal 0x01 reverse 0x00 initial normal - point9 0x02 segment seg25 normal 0x01 reverse 0x00 initial normal - point10 0x03 segment seg26 normal 0x01 reverse 0x00 initial normal - point11 0x04 segment seg33 normal 0x01 reverse 0x00 initial normal - point12 0x05 segment seg34 normal 0x01 reverse 0x00 initial normal - end - - peripherals onecontrol1 - onebit sync1 0x06 port 0x0027 # Exact port address is not essential for output-only behaviour - onebit lanterns1 0x07 port 0x0018 # Exact port address is not essential for output-only behaviour - end - - peripherals onecontrol2 - onebit sync2 0x06 port 0x0027 - onebit lanterns2 0x07 port 0x0018 # Exact port address is not essential for output-only behaviour - end - - blocks - # Anti-clockwise reading direction - - # blocks - block1 overlap seg3 main seg4 overlap seg5 limit 300km/h trains cargo passenger end - block2 overlap seg7 main seg8 overlap seg9 limit 350km/h - block3 overlap seg11 main seg12 overlap seg13 trains cargo end - block4 overlap seg15 main seg16 overlap seg17 - block5 overlap seg27 main seg28 overlap seg29 - block6 overlap seg20 main seg21 overlap seg22 - - # Kehrschleifenmodul: actively reverses the block's orientation. - block7 overlap seg30b main seg31 overlap seg32b - - # buffers - buffer main seg1 - end - - crossings - crossing1 segment seg35 - end - - platforms - platform1 overlap seg36 main seg37 overlap seg38 reversed - platform2 overlap seg39 main seg40 overlap seg41 reversed - end - - layout - # Anti-clockwise reading direction - - # blocks - block1.down -- point1.stem - block1.up -- point2.straight - - block2.down -- point2.stem - block2.up -- point3.stem - - block3.down -- point3.straight - block3.up -- point6.stem - - block4.down -- point6.side - block4.up -- point8.side - - block5.down -- point10.straight - block5.up -- point7.stem - - block6.down -- point7.straight - block6.up -- point4.straight - - block7.down -- point10.side - block7.up -- point12.down2 - - platform2.down -- point12.up2 - - # crossings - crossing1.down1 -- point11.side - crossing1.down2 -- point12.up1 - crossing1.up1 -- point5.side - crossing1.up2 -- platform1.down - - # points - point1.straight -- buffer.up - point1.side -- point6.straight - - point2.side -- point8.stem - - point3.side -- point4.side - - point4.stem -- point5.stem - - point5.straight -- point9.straight - - point7.side -- point8.straight - - point9.stem -- point10.stem - point9.side -- point11.stem - - point11.straight -- point12.down1 - - # signals - signal1 -- buffer.down - signal2 -- block1.down - signal3 -- block1.up - signal4 -- block2.down - signal5 -- block6.up - signal6 -- block2.up - signal7 -- block3.down - signal8 -- block3.up - signal9 -- block5.down - signal10 -- block4.down - signal11 -- block5.up - signal12 -- block4.up - signal13 -- block6.down - signal14 -- block7.down - signal15 -- block7.up - signal16 -- platform1.down - signal17 -- platform1.up - signal18 -- platform2.down - signal19 -- platform2.up - end + boards + onecontrol1 0x05000D7500E8ED + onecontrol2 0x05000D7500DAED + lightcontrol1 0x45000D6B0072EC + lightcontrol2 0x45000D6B0067EC + master 0xDA000D680001EE + features + 0x03:0x14 # seckack on, 200ms + 0x6E:0x00 # track output default off + end + end + + segments master + seg1 0x00 length 20cm + seg2 0x01 length 11.3cm + seg3 0x02 length 10cm + seg4 0x03 length 72.5cm + seg5 0x04 length 10cm + seg6 0x05 length 13cm + seg7 0x06 length 17.2cm + seg8 0x07 length 71.1cm + seg9 0x08 length 17.2cm + seg10 0x09 length 13cm + seg11 0x0A length 10cm + seg12 0x0B length 113.7cm + seg13 0x0C length 18.4cm + seg14 0x0D length 26cm + seg15 0x0E length 23.9cm + seg16 0x0F length 77.6cm + seg17 0x20 length 10.3cm + seg18 0x26 length 20.4cm + seg19 0x22 length 12cm + seg20 0x23 length 17.1cm + seg21 0x24 length 84.1cm + seg22 0x25 length 31.35cm + seg23 0x21 length 21.3cm + seg24 0x10 length 40.5cm + seg25 0x11 length 51.4cm + seg26 0x12 length 30.7cm + seg27 0x13 length 10.2cm + seg28 0x27 length 80.8cm + seg29 0x28 length 10cm + seg30a 0x1C length 4cm # GBM16T: OFF sensor only + seg30b 0x1D length 5cm # Kehrschleife: OFF sensor, reversible polarity + seg31 0x1E length 55.1cm # Kehrschleife: main, reversible polarity + seg32a 0x1B length 6cm # Kehrschleife: ON sensor, reversible polarity + seg32b 0x1F length 4cm # GBM16T: ON sensor only + seg33 0x14 length 20.9cm + seg34 0x15 length 14.1cm + seg35 0x16 length 21cm + seg36 0x17 length 11.2cm + seg37 0x18 length 55cm + seg38 0x19 length 10cm + seg39 0x1A length 17.1cm + seg40 0x29 length 56.7cm + seg41 0x2A length 10cm + end + + reversers master + reverser 20051 block7 + end + + signals lightcontrol1 + entry signal3 0x00 + entry signal4 0x01 + entry signal5 0x02 + entry signal6 0x03 + entry signal7 0x04 + entry signal11 0x05 + entry signal12 0x06 + entry signal13 0x07 + halt signal17 0x08 + halt signal19 0x09 + platformlight platformlights 0x0A + end + + signals lightcontrol2 + halt signal1 0x00 + entry signal2 0x01 + entry signal8 0x02 + entry signal9 0x03 + entry signal10 0x04 + entry signal14 0x05 + entry signal15 0x06 + entry signal16 0x07 + entry signal18 0x08 + end + + points onecontrol1 + point2 0x00 segment seg6 normal 0x01 reverse 0x00 initial normal + point3 0x01 segment seg10 normal 0x01 reverse 0x00 initial normal + point4 0x02 segment seg23 normal 0x01 reverse 0x00 initial normal + point5 0x03 segment seg24 normal 0x01 reverse 0x00 initial normal + point7 0x04 segment seg19 normal 0x01 reverse 0x00 initial normal + point8 0x05 segment seg18 normal 0x01 reverse 0x00 initial normal + end + + points onecontrol2 + point1 0x00 segment seg2 normal 0x01 reverse 0x00 initial normal + point6 0x01 segment seg14 normal 0x01 reverse 0x00 initial normal + point9 0x02 segment seg25 normal 0x01 reverse 0x00 initial normal + point10 0x03 segment seg26 normal 0x01 reverse 0x00 initial normal + point11 0x04 segment seg33 normal 0x01 reverse 0x00 initial normal + point12 0x05 segment seg34 normal 0x01 reverse 0x00 initial normal + end + + peripherals onecontrol1 + onebit sync1 0x06 port 0x0027 # Exact port address is not essential for output-only behaviour + onebit lanterns1 0x07 port 0x0018 # Exact port address is not essential for output-only behaviour + end + + peripherals onecontrol2 + onebit sync2 0x06 port 0x0027 + onebit lanterns2 0x07 port 0x0018 # Exact port address is not essential for output-only behaviour + end + + blocks + # Anti-clockwise reading direction + + # blocks + block1 overlap seg3 main seg4 overlap seg5 limit 300km/h trains cargo passenger end + block2 overlap seg7 main seg8 overlap seg9 limit 350km/h + block3 overlap seg11 main seg12 overlap seg13 trains cargo end + block4 overlap seg15 main seg16 overlap seg17 + block5 overlap seg27 main seg28 overlap seg29 + block6 overlap seg20 main seg21 overlap seg22 + + # Kehrschleifenmodul: actively reverses the block's orientation. + block7 overlap seg30b main seg31 overlap seg32b + + # buffers + buffer main seg1 + end + + crossings + crossing1 segment seg35 + end + + platforms + platform1 overlap seg36 main seg37 overlap seg38 reversed + platform2 overlap seg39 main seg40 overlap seg41 reversed + end + + layout + # Anti-clockwise reading direction + + # blocks + block1.down -- point1.stem + block1.up -- point2.straight + + block2.down -- point2.stem + block2.up -- point3.stem + + block3.down -- point3.straight + block3.up -- point6.stem + + block4.down -- point6.side + block4.up -- point8.side + + block5.down -- point10.straight + block5.up -- point7.stem + + block6.down -- point7.straight + block6.up -- point4.straight + + block7.down -- point10.side + block7.up -- point12.down2 + + platform2.down -- point12.up2 + + # crossings + crossing1.down1 -- point11.side + crossing1.down2 -- point12.up1 + crossing1.up1 -- point5.side + crossing1.up2 -- platform1.down + + # points + point1.straight -- buffer.up + point1.side -- point6.straight + + point2.side -- point8.stem + + point3.side -- point4.side + + point4.stem -- point5.stem + + point5.straight -- point9.straight + + point7.side -- point8.straight + + point9.stem -- point10.stem + point9.side -- point11.stem + + point11.straight -- point12.down1 + + # signals + signal1 -- buffer.down + signal2 -- block1.down + signal3 -- block1.up + signal4 -- block2.down + signal5 -- block6.up + signal6 -- block2.up + signal7 -- block3.down + signal8 -- block3.up + signal9 -- block5.down + signal10 -- block4.down + signal11 -- block5.up + signal12 -- block4.up + signal13 -- block6.down + signal14 -- block7.down + signal15 -- block7.up + signal16 -- platform1.down + signal17 -- platform1.up + signal18 -- platform2.down + signal19 -- platform2.up + end trains cargo_db 0x007F # addr high | addr low - steps 126 - calibration - 5 - 15 - 30 - 45 - 60 - 75 - 90 - 105 - 120 - end - weight 100g - length 13cm - type cargo + steps 126 + calibration + 5 + 15 + 30 + 45 + 60 + 75 + 90 + 105 + 120 + end + weight 77g + length 13cm + type cargo peripherals head_light bit 4 # a value in range 0..31 @@ -241,28 +241,38 @@ module SWTbahnStandard bit 0 # a value in range 0..31 initial 1 end - - cargo_bayern 0x0070 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 13cm type cargo + + cargo_bayern 0x0070 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 72g length 13cm type cargo peripherals head_light bit 4 initial 1 cabin_light bit 0 initial 1 end - - cargo_green 0x006F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 13cm type cargo + + cargo_green 0x006F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 80g length 13cm type cargo peripherals head_light bit 4 initial 1 end - regional_odeg 0x0060 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 25cm type passenger + regional_odeg 0x0060 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 194g length 25cm type passenger peripherals head_light bit 4 initial 1 cabin_light bit 0 initial 1 end - - regional_brengdirect 0x005F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 23cm type passenger + + regional_brengdirect 0x005F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 236g length 35cm type passenger peripherals head_light bit 4 initial 1 cabin_light bit 0 initial 1 end + + cargo_g1000bb 0x0050 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 35g length 10cm type cargo + peripherals + head_light bit 4 initial 1 + end + + perso_sbb 0x004F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 81g length 12cm type passenger + peripherals + head_light bit 4 initial 1 + end end end diff --git a/configurations/swtbahn-ultraloop/bidib_train_config.yml b/configurations/swtbahn-ultraloop/bidib_train_config.yml index 59b81014..cc62c5d3 100644 --- a/configurations/swtbahn-ultraloop/bidib_train_config.yml +++ b/configurations/swtbahn-ultraloop/bidib_train_config.yml @@ -20,7 +20,7 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g + weight: 77.0g length: 13.0cm type: cargo - id: cargo_bayern @@ -43,7 +43,7 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g + weight: 72.0g length: 13.0cm type: cargo - id: cargo_green @@ -63,7 +63,7 @@ trains: - id: head_light bit: 4 initial: 1 - weight: 100.0g + weight: 80.0g length: 13.0cm type: cargo - id: regional_odeg @@ -86,7 +86,7 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g + weight: 194.0g length: 25.0cm type: passenger - id: regional_brengdirect @@ -109,6 +109,46 @@ trains: - id: cabin_light bit: 0 initial: 1 - weight: 100.0g - length: 23.0cm + weight: 236.0g + length: 35.0cm + type: passenger + - id: cargo_g1000bb + dcc-address: 0x0050 + dcc-speed-steps: 126 + calibration: + - 5 + - 15 + - 30 + - 45 + - 60 + - 75 + - 90 + - 105 + - 120 + peripherals: + - id: head_light + bit: 4 + initial: 1 + weight: 35.0g + length: 10.0cm + type: cargo + - id: perso_sbb + dcc-address: 0x004F + dcc-speed-steps: 126 + calibration: + - 5 + - 15 + - 30 + - 45 + - 60 + - 75 + - 90 + - 105 + - 120 + peripherals: + - id: head_light + bit: 4 + initial: 1 + weight: 81.0g + length: 12.0cm type: passenger diff --git a/configurations/swtbahn-ultraloop/config.bahn b/configurations/swtbahn-ultraloop/config.bahn index 6a0c1813..bf95af73 100644 --- a/configurations/swtbahn-ultraloop/config.bahn +++ b/configurations/swtbahn-ultraloop/config.bahn @@ -93,21 +93,21 @@ module SWTbahnUltraloop trains cargo_db 0x007F # addr high | addr low - steps 126 - calibration - 5 - 15 - 30 - 45 - 60 - 75 - 90 - 105 - 120 - end - weight 100g - length 13cm - type cargo + steps 126 + calibration + 5 + 15 + 30 + 45 + 60 + 75 + 90 + 105 + 120 + end + weight 77g + length 13cm + type cargo peripherals head_light bit 4 # a value in range 0..31 @@ -116,28 +116,38 @@ module SWTbahnUltraloop bit 0 # a value in range 0..31 initial 1 end - - cargo_bayern 0x0070 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 13cm type cargo + + cargo_bayern 0x0070 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 72g length 13cm type cargo peripherals head_light bit 4 initial 1 cabin_light bit 0 initial 1 end - - cargo_green 0x006F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 13cm type cargo + + cargo_green 0x006F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 80g length 13cm type cargo peripherals head_light bit 4 initial 1 end - regional_odeg 0x0060 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 25cm type passenger + regional_odeg 0x0060 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 194g length 25cm type passenger peripherals head_light bit 4 initial 1 cabin_light bit 0 initial 1 end - - regional_brengdirect 0x005F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 100g length 23cm type passenger + + regional_brengdirect 0x005F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 236g length 35cm type passenger peripherals head_light bit 4 initial 1 cabin_light bit 0 initial 1 end + + cargo_g1000bb 0x0050 steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 35g length 10cm type cargo + peripherals + head_light bit 4 initial 1 + end + + perso_sbb 0x004F steps 126 calibration 5 15 30 45 60 75 90 105 120 end weight 81g length 12cm type passenger + peripherals + head_light bit 4 initial 1 + end end end diff --git a/server/src/assets/client.html b/server/src/assets/client.html index 34a2dc20..29f9342c 100644 --- a/server/src/assets/client.html +++ b/server/src/assets/client.html @@ -13,10 +13,12 @@