FREMO Interlocking
FStw -> Subsystems -> Wattenscheider Decoder
28.09.2007

SPECIAL SVs - LIGHT SIGNAL

This Chapter describes the Usage of the SV Configuration Variables, which are espacially used for Light Signals.

DECODER PINS
13 12 11 10 9 8 7 6 5 4 3 2 1 0
W5 W4 W3 W2 W1 W0 S7 S6 S5 S4 S3 S2 S1 S0

S0 ... S7 Strong Ports
W0 ... W5 Weak Ports

ASPECT PIN BYTE

100ASPECT PIN BYTE, Element 1RW
101ASPECT PIN BYTE, Element 2RW
102ASPECT PIN BYTE, Element 3RW
103ASPECT PIN BYTE, Element 4RW
104ASPECT PIN BYTE, Element 5RW
105ASPECT PIN BYTE, Element 6RW
106ASPECT PIN BYTE, Element 7RW
107ASPECT PIN BYTE, Element 8RW
7 6 5 4 3 2 1 0
S3 S2 S1 S0 N3 N2 N1 N0
Each SV defines the pins for one of the eight elements. The "S" Bits of the register define the Start Pin of the element and the "N" Bits of the same SV defines the count of pins used for the same element. The Number of Pins is the Value of N13...N10, which is minimum 0 and maximum 8. (Maximum of 8 Pins per Element)

e.g. If N is 3, the Element uses 3 Pins, starting at Pin 0 (If "S" is 0).
So the element uses Pin 0, Pin 1 and Pin 2.

If "N" is 0, the element is disabled and does not write to any pin.

SPECIAL PIN BYTE

110SPECIAL PIN BYTE, Element 1RW
111SPECIAL PIN BYTE, Element 2RW
112SPECIAL PIN BYTE, Element 3RW
113SPECIAL PIN BYTE, Element 4RW
114SPECIAL PIN BYTE, Element 5RW
115SPECIAL PIN BYTE, Element 6RW
116SPECIAL PIN BYTE, Element 7RW
117SPECIAL PIN BYTE, Element 8RW
7 6 5 4 3 2 1 0
D3 D2 D1 D0 E3 E2 E1 E0
The "D" Bits of the register define the Pin Number of an Departure Signal (Abfahrtsignal) of Element 1 to Element 8.
The "S" Bits of the register define the Pin Number of an Substitution Signal (Ersatzsignal) of Element 1 to Element 8.

e.g. If D is 2, the Element uses Pin 2 for the Departure Signal.

118SUBSTITUTION BLINK BYTERW
7 6 5 4 3 2 1 0
SB8 SB7 SB6 SB5 SB4 SB3 SB2 SB1
The "SB" Bits define, if the corresponding Substitution Signal of the Element (1 to 8) is blinking (1) or not (0).

e.g. If SB2 is 1, The Substitution Signal of Element 2 is blinking.

119DEPARTURE BLINK BYTERW
7 6 5 4 3 2 1 0
DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1
The "DB" Bits define, if the corresponding Departure Signal of the Element (1 to 8) is blinking (1) or not (0).

e.g. If DB3 is 1, The Departure Signal of Element 3 is blinking.

SIGNAL MAPPING

For each element and each state, a defined aspect can be defined. Here the connection between the State and the aspect is built.

120 + SIGNAL STATESignal Mapping, Element 1RW
155 + SIGNAL STATESignal Mapping, Element 2RW
190 + SIGNAL STATESignal Mapping, Element 3RW
225 + SIGNAL STATESignal Mapping, Element 4RW
260 + SIGNAL STATESignal Mapping, Element 5RW
295 + SIGNAL STATESignal Mapping, Element 6RW
330 + SIGNAL STATESignal Mapping, Element 7RW
365 + SIGNAL STATESignal Mapping, Element 8RW

The value of the SV register ist the index of the predefined signal layout.

e.g. If SV 304 is 4, Element 1 mapps the predefined Signal 4 (SV 204 and SV 254) to the according output pins.

SIGNAL ASPECTS

You have the possibility to define 50 different Signal Aspects with 8 Pins per State (maximum Number of Pins per Element). The Element can map these Pinmap to each signal state. The Pinmap starts at the startbit and is copied to the pins. If the Elements uses less than the 8 possible bit, only the number of used pins are copied, started at Bit 0.

400 - 449PIN MAP, Signal 0 to Signal 49RW
450 - 499BLINK MAP, Signal 0 to Signal 49RW

If the according Pin in the Blink Register is set to 1, the Pin is blinking.

Logic Table

PIN MAP BITBLINK MAP BITDESCRIPTION
00Pin off
01Pin off
10Pin on
11Pin blinking

Example for Element 1 and an OEBB Mandatory Signal

SVNameSIGNAL ASPECT
120Stop / Straight / Closed0
121Stop and Substitution Signal0
122Stop and Emergency Red 10
123Stop and Emergency Red 20
124Go / Diverging / Open1
125Go KS Signal, Next Signal Stop0
126Go KS Signal, Next Signal Slow0
127Go KS Signal, Next Signal Go0
128Go, Vmax = 10km/h0
129Go, Vmax = 20km/h0
130Go, Vmax = 30km/h0
131Go, Vmax = 40km/h3
132Go, Vmax = 50km/h0
133Go, Vmax = 60km/h2
134Go, Vmax = 70km/h0
135Go, Vmax = 80km/h0
136Go, Vmax = 100km/h0
137Go, Vmax = 110km/h0
138Go, Vmax = 120km/h0
139Stop at Shunting Signal ( use 0 instead!)0
140Go at Shunting Signal0
141Signal Dead0
142Signal Dead, Zs10
151"Kennlicht"0

As the signal does not support all states, the unused states will show an "Stop" aspect.

PREDEFINED SIGNALS

SIGNAL 0OEBB MANDATORY, STOP
BIT 7 6 5 4 3 2 1 0
NAME - - - - YELLOW40 GREEN60 GREEN RED
PIN X X X X 0 0 0 1
BLINK X X X X 0 0 0 0

SIGNAL 1OEBB MANDATORY, GO
BIT 7 6 5 4 3 2 1 0
NAME - - - - YELLOW40 GREEN60 GREEN RED
PIN X X X X 0 0 1 0
BLINK X X X X 0 0 0 0

SIGNAL 2OEBB MANDATORY, GO, VMAX 60km/h
BIT 7 6 5 4 3 2 1 0
NAME - - - - YELLOW40 GREEN60 GREEN RED
PIN X X X X 0 1 1 0
BLINK X X X X 0 0 0 0

SIGNAL 3OEBB MANDATORY, GO, VMAX 40km/h
BIT 7 6 5 4 3 2 1 0
NAME - - - - YELLOW40 GREEN60 GREEN RED
PIN X X X X 1 0 1 0
BLINK X X X X 0 0 0 0

SIGNAL 4OEBB DISTANT, CAUTION
BIT 7 6 5 4 3 2 1 0
NAME - - - - GREEN, UP, RIGHT GREEN, LOW, LEFT YELLOW, UP, RIGHT YELLOW, UP, LEFT
PIN X X X X 0 0 1 1
BLINK X X X X 0 0 0 0

SIGNAL 5OEBB DISTANT, GO
BIT 7 6 5 4 3 2 1 0
NAME - - - - GREEN, UP, RIGHT GREEN, LOW, LEFT YELLOW, UP, RIGHT YELLOW, UP, LEFT
PIN X X X X 1 1 0 0
BLINK X X X X 0 0 0 0

SIGNAL 6OEBB DISTANT, GO, VMAX 60km/h
BIT 7 6 5 4 3 2 1 0
NAME - - - - GREEN, UP, RIGHT GREEN, LOW, LEFT YELLOW, UP, RIGHT YELLOW, UP, LEFT
PIN X X X X 1 1 0 1
BLINK X X X X 0 0 0 0

SIGNAL 7OEBB DISTANT, GO, VMAX 40km/h
BIT 7 6 5 4 3 2 1 0
NAME - - - - GREEN, UP, RIGHT GREEN, LOW, LEFT YELLOW, UP, RIGHT YELLOW, UP, LEFT
PIN X X X X 0 1 1 1
BLINK X X X X 0 0 0 0