FREMO Interlocking
FStw -> Subsystems -> Wattenscheider Decoder
28.09.2007

SV Description for generic use

This Chapter describes the Usage of the SV Configuration Variables. Some SV Variables require special values, that are described later.

10PCB TypeRO
11Software VersionRO
SV 10 and 11 are Read Only. They identify the Board and the used Software Version. Do not change!

12RESET ByteRW
The Reset Byte is used to reset the SVs to default values. The Reset Byte has to be 0x55h. If another value is written, all SVs are reseted by the software!

13Sotware TypeRW
See Table XY for Configuration.

14Power Off FuseRW
If the Decoder is unsed for solenoid motors, this Fuse selects, if the Output is switched off after the switch operation or if the output is poweres all the time.

15 Power Seconds RW
This Register configures the time in seconds, a switch operation enables the output, if SV 14 is enabled.

16 Initial State RW
Defines the initial state of the Decoder. Default is 0/Stop.
See table at "States".

17 Output Inversion Fuse RW
Inverts the Pins of all Outputs.

20 - 21 LotusNet Adress of Element 1 RW
The LocoNet Adress is calculated with SV20 x 100 + SV21

e.g. LN Adress 4711: SV20 = 47, SV21 = 11

22 - 23 LotusNet Adress of Element 2 RW
The LocoNet Adress is calculated with SV22 x 100 + SV23

24 - 25 LotusNet Adress of Element 3 RW
The LocoNet Adress is calculated with SV25 x 100 + SV24

26 - 27 LotusNet Adress of Element 4 RW
The LocoNet Adress is calculated with SV26 x 100 + SV27

28 - 29 LotusNet Adress of Element 5 RW
The LocoNet Adress is calculated with SV28 x 100 + SV29

30 - 31 LotusNet Adress of Element 6 RW
The LocoNet Adress is calculated with SV30 x 100 + SV31

32 - 33 LotusNet Adress of Element 7 RW
The LocoNet Adress is calculated with SV32 x 100 + SV33

34 - 35 LotusNet Adress of Element 8 RW
The LocoNet Adress is calculated with SV34 x 100 + SV35

36 - 37 LotusNet Adress of Input 1 RW
The LocoNet Adress is calculated with SV36 x 100 + SV37

38 - 39 LotusNet Adress of Input 2 RW
The LocoNet Adress is calculated with SV38 x 100 + SV39

40 - 41 LotusNet Adress of Input 3 RW
The LocoNet Adress is calculated with SV40 x 100 + SV41

42 - 43 LotusNet Adress of Input 4 RW
The LocoNet Adress is calculated with SV42 x 100 + SV43

45 Input Configuration RW
Bitmap to configure the usage of the 4 Inputs
BIT 0 - Send OPC_INPUT_REP on every state change
BIT 1 - not used
BIT 2 - not used
BIT 3 - Input N controlls outputs like an OPC_SW_REQ on address index N
BIT 4 - Strong filter for transition from low to high
BIT 5 - Strong filter for transition from high to low
BIT 6 - not used
BIT 7 - not used

50 - 52 Servo 1 Configuration RW
SV 50 - Servo End MIN ( 0 ... MAX - 1)
SV 51 - Servo End MAX ( MIN + 1 ... 255)
SV 52 - Servo Step, Speed of Servo

54 - 56 Servo 2 Configuration RW
See Servo 1 Configuration

58 - 60 Servo 3 Configuration RW
See Servo 1 Configuration

62 - 64 Servo 4 Configuration RW
See Servo 1 Configuration

66 - 68 Servo 5 Configuration RW
See Servo 1 Configuration

70 - 72 Servo 6 Configuration RW
See Servo 1 Configuration

SOFTWARE TYPES

0Test Mode
1Switch, 4 Turnouts with 2 Pins
2Switch, 2 Turnouts with 2x2 Pins (2 Pins coupled)
9Servo, 6 Servos
10Servo, Analog Mode
20Light Signals, Generic

STATES

0Stop / Straight / Closed
1Stop and Substitution Signal
2Stop and Emergency Red 1
3Stop and Emergency Red 2
4Go / Diverging / Open
5Go KS Signal, Next Signal Stop
6Go KS Signal, Next Signal Slow
7Go KS Signal, Next Signal Go
8Go, Vmax = 10km/h
9Go, Vmax = 20km/h
10Go, Vmax = 30km/h
11Go, Vmax = 40km/h
12Go, Vmax = 50km/h
13Go, Vmax = 60km/h
14Go, Vmax = 70km/h
15Go, Vmax = 80km/h
16Go, Vmax = 100km/h
17Go, Vmax = 110km/h
18Go, Vmax = 120km/h
19Stop at Shunting Signal ( use 0 instead!)
20Go at Shunting Signal
21Signal Dead
22Signal Dead, Zs1
31"Kennlicht"