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.
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
100 | ASPECT PIN BYTE, Element 1 | RW |
101 | ASPECT PIN BYTE, Element 2 | RW |
102 | ASPECT PIN BYTE, Element 3 | RW |
103 | ASPECT PIN BYTE, Element 4 | RW |
104 | ASPECT PIN BYTE, Element 5 | RW |
105 | ASPECT PIN BYTE, Element 6 | RW |
106 | ASPECT PIN BYTE, Element 7 | RW |
107 | ASPECT PIN BYTE, Element 8 | RW |
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
110 | SPECIAL PIN BYTE, Element 1 | RW |
111 | SPECIAL PIN BYTE, Element 2 | RW |
112 | SPECIAL PIN BYTE, Element 3 | RW |
113 | SPECIAL PIN BYTE, Element 4 | RW |
114 | SPECIAL PIN BYTE, Element 5 | RW |
115 | SPECIAL PIN BYTE, Element 6 | RW |
116 | SPECIAL PIN BYTE, Element 7 | RW |
117 | SPECIAL PIN BYTE, Element 8 | RW |
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.
118 | SUBSTITUTION BLINK BYTE | RW |
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.
119 | DEPARTURE BLINK BYTE | RW |
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 STATE | Signal Mapping, Element 1 | RW |
155 + SIGNAL STATE | Signal Mapping, Element 2 | RW |
190 + SIGNAL STATE | Signal Mapping, Element 3 | RW |
225 + SIGNAL STATE | Signal Mapping, Element 4 | RW |
260 + SIGNAL STATE | Signal Mapping, Element 5 | RW |
295 + SIGNAL STATE | Signal Mapping, Element 6 | RW |
330 + SIGNAL STATE | Signal Mapping, Element 7 | RW |
365 + SIGNAL STATE | Signal Mapping, Element 8 | RW |
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 - 449 | PIN MAP, Signal 0 to Signal 49 | RW |
450 - 499 | BLINK MAP, Signal 0 to Signal 49 | RW |
If the according Pin in the Blink Register is set to 1, the Pin is
blinking.
Logic Table
PIN MAP BIT | BLINK MAP BIT | DESCRIPTION |
0 | 0 | Pin off |
0 | 1 | Pin off |
1 | 0 | Pin on |
1 | 1 | Pin blinking |
Example for Element 1 and an OEBB Mandatory Signal
SV | Name | SIGNAL ASPECT |
120 | Stop / Straight / Closed | 0 |
121 | Stop and Substitution Signal | 0 |
122 | Stop and Emergency Red 1 | 0 |
123 | Stop and Emergency Red 2 | 0 |
124 | Go / Diverging / Open | 1 |
125 | Go KS Signal, Next Signal Stop | 0 |
126 | Go KS Signal, Next Signal Slow | 0 |
127 | Go KS Signal, Next Signal Go | 0 |
128 | Go, Vmax = 10km/h | 0 |
129 | Go, Vmax = 20km/h | 0 |
130 | Go, Vmax = 30km/h | 0 |
131 | Go, Vmax = 40km/h | 3 |
132 | Go, Vmax = 50km/h | 0 |
133 | Go, Vmax = 60km/h | 2 |
134 | Go, Vmax = 70km/h | 0 |
135 | Go, Vmax = 80km/h | 0 |
136 | Go, Vmax = 100km/h | 0 |
137 | Go, Vmax = 110km/h | 0 |
138 | Go, Vmax = 120km/h | 0 |
139 | Stop at Shunting Signal ( use 0 instead!) | 0 |
140 | Go at Shunting Signal | 0 |
141 | Signal Dead | 0 |
142 | Signal Dead, Zs1 | 0 |
151 | "Kennlicht" | 0 |
As the signal does not support all states, the unused states will show an
"Stop" aspect.
PREDEFINED SIGNALS
SIGNAL 0 | OEBB 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 1 | OEBB 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 2 | OEBB 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 3 | OEBB 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 4 | OEBB 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 |
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 6 | OEBB 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 7 | OEBB 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 |
|