Digital Address Switches

Introduction

Many components of the Märklin Motorola digital system contain a group of miniature DIP switches that are used to set their communication address. The setting of these switches follows one of two basic codes, depending on the component type. Locomotives with either a Digital or Delta decoder, as well as digital accessory decoders, all use an address coding scheme known as trinary. Digital accessory controllers such as the Keyboard, Switchboard, and Memory, have addresses based on binary coding. Within these two basic code groups, there are also subtle coding variations due to the designs of the Delta decoder, certain Digital decoders, and the Memory unit.

This article describes the electrical operation of the coding switches and explains the basis of the digital address codes themselves. Complete coding tables are also provided for each type of component in the digital system.

 

Locomotive & Accessory Addresses - "Trinary" Coding

Inside almost all Märklin Digital locomotives and all accessory decoders, there is a group of eight miniature coding switches for setting the address. These switches are actually divided into four pairs of switches, which are connected to the corresponding address inputs of the digital decoder IC. Each pair of switches can be set to one of three valid electrical states: Lo ("0"), Hi ("1"), or Open ("Z"). This type of circuit is referred to as a "three-state," "tri-state," or trinary digital logic circuit. The diagram below illustrates the trinary coding circuit:

Coding Switches on Digital Decoder Board

As shown above, the two switches of each switch pair are wired to the two digital supply voltages of the decoder. In general, the odd-numbered switch of each pair is wired to logic Lo and the even-numbered switch is wired to logic Hi. One switch or the other can be set ON to result in logic Hi or Lo, or both can be set OFF to result in logic Open. However, both switches should never be set ON simultaneously, as this results in a short-circuit of the decoder's digital power supply.

Each of the four pairs of coding switches represents a trinary digit of the decoder address. Since there are three valid states for each digit, this gives the Digital system its total of 34=81 possible decoder addresses. Each address can be converted between its decimal (base 10) and trinary (base 3) equivalent values by following these processes:

With this understanding of the coding switch operation and trinary encoding, the patterns within the address coding table below should become more apparent. The switch settings follow the process just as described, with only two exceptions: address 80 is coded as "0000" and address 00 is coded as "ZZZZ", exactly the opposite of what you would expect. Also, address 00 (all switches set OFF) can only be used in analog operation of locomotives and is not used for accessory decoders. It is also important to note that the Märklin Digital system can address a maximum of 64 accessory decoders only.

The coding table below summarizes the address switch settings for both Digital locomotives and accessory decoders:

Address Switches ON Address Switches ON Address Switches ON Address Switches ON
01 -23-5-7- 21 1--4--7- 41 ---4-6-8 61 -2--5---
02 --3-5-7- 22 -2-4--7- 42 1----6-8 62 ----5---
03 1--45-7- 23 ---4--7- 43 -2---6-8 63 1-3--6--
04 -2-45-7- 24 1-----7- 44 -----6-8 64 -23--6--
05 ---45-7- 25 -2----7- 45 1-3----8 65 --3--6--
06 1---5-7- 26 ------7- 46 -23----8 66 1--4-6--
07 -2--5-7- 27 1-3-5--8 47 --3----8 67 -2-4-6--
08 ----5-7- 28 -23-5--8 48 1--4---8 68 ---4-6--
09 1-3--67- 29 --3-5--8 49 -2-4---8 69 1----6--
10 -23--67- 30 1--45--8 50 ---4---8 70 -2---6--
11 --3--67- 31 -2-45--8 51 1------8 71 -----6--
12 1--4-67- 32 ---45--8 52 -2-----8 72 1-3-----
13 -2-4-67- 33 1---5--8 53 -------8 73 -23-----
14 ---4-67- 34 -2--5--8 54 1-3-5--- 74 --3-----
15 1----67- 35 ----5--8 55 -23-5--- 75 1--4----
16 -2---67- 36 1-3--6-8 56 --3-5--- 76 -2-4----
17 -----67- 37 -23--6-8 57 1--45--- 77 ---4----
18 1-3---7- 38 --3--6-8 58 -2-45--- 78 1-------
19 -23---7- 39 1--4-6-8 59 ---45--- 79 -2------
20 --3---7- 40 -2-4-6-8 60 1---5--- 80 1-3-5-7-

 

Delta Decoders & Digital Decoders with Solder Pads:

Delta locomotives operating in the Digital system, as well as "abbreviated" Digital decoders with solder pads, use the same trinary address encoding as standard Digital decoders, although their coding switch operation differs. These decoder boards contain four individual switches or pads (instead of switch pairs), which are capable of setting the address inputs of the decoder IC to logic levels Lo ("0") or Open ("Z") only. Each switch or pad will connect its decoder input to logic Lo when set ON, or logic Open when set OFF. As a result of this, there are only 16 possible address settings for Delta and "abbreviated" Digital locomotives. The same two exceptions described previously for standard Digital decoder addresses also apply here: address 80 is coded as "0000" and address 00 ("ZZZZ") is used only for analog operation of Delta locomotives. The switch coding circuit and address table for these locomotive decoders are shown below:

Coding Switches on Delta Decoder Board

Coding Solder Pads on Decoder Board

 

Address Switches ON Address Switches ON Address Switches ON Address Switches ON
(00) ---- 18 12-4 54 123- 72 12--
02 -234 20 -2-4 56 -23- 74 -2--
06 1-34 24 1--4 60 1-3- 78 1---
08 --34 26 ---4 62 --3- 80 1234

 

 

Accessory Controller Addresses - "Binary" Coding

On the rear panel of all Märklin Digital accessory controllers, there is a group of miniature coding switches to set the address of the controller in the system. Each switch can be set to either of two valid electrical states: Lo ("0") or Hi ("1"). This type of circuit is referred to as a binary digital logic circuit.

All of the accessory controllers contain four switches in the switch block. The Keyboard and Switchboard use all four switches for address coding, while the Memory unit uses only the first two switches for setting its address (the remaining two switches affect its operating mode). These switch settings are read by each unit's internal microcontroller IC to "prefix" all outgoing system data with the corresponding address of the unit. Each switch will be read as logic Hi when set ON, or logic Lo when set OFF.

Each coding switch represents a binary digit of the controller address. Since there are two valid states for each digit, this results in a total of 24=16 possible Keyboard/Switchboard addresses and 22=4 Memory addresses. Each address can be converted between its decimal (base 10) and binary (base 2) equivalent values by following these processes:

With this understanding of the coding switch operation and binary encoding, the switch patterns within the Keyboard & Switchboard address coding table below should become apparent. This table also provides the correspondence between the controller number and the decoder and accessory addresses that it controls.

Number Address Switches ON Decoder Addresses Accessory Addresses
Group 1 (Keys 1-4) Group 2 (Keys 5-8) Group 3 (Keys 9-12) Group 4 (Keys 13-16)
1 00 ---- 1-4 1-4 5-8 9-12 13-16
2 01 1--- 5-8 17-20 21-24 25-28 29-32
3 02 -2-- 9-12 33-36 37-40 41-44 45-48
4 03 12-- 13-16 49-52 53-56 57-60 61-64
5 04 --3- 17-20 65-68 69-72 73-76 77-80
6 05 1-3- 21-24 81-84 85-88 89-92 93-96
7 06 -23- 25-28 97-100 101-104 105-108 109-112
8 07 123- 29-32 113-116 117-120 121-124 125-128
9 08 ---4 33-36 129-132 133-136 137-140 141-144
10 09 1--4 37-40 145-148 149-152 153-156 157-160
11 10 -2-4 41-44 161-164 165-168 169-172 173-176
12 11 12-4 45-48 177-180 181-184 185-188 189-192
13 12 --34 49-52 193-196 197-200 201-204 205-208
14 13 1-34 53-56 209-212 213-216 217-220 221-224
15 14 -234 57-60 225-228 229-232 233-236 237-240
16 15 1234 61-64 241-244 245-248 249-252 253-256

 

Memory Units:

The address coding table for Memory units is much more simple since there are only four available addresses using switches 1 and 2. The Interlocking function of the Memory can be turned on or off by setting both switches 3 and 4 ON or OFF, respectively.

 

Number Address Switches ON
1 00 --
2 01 1-
3 02 -2
4 03 12

 

 

All brand names, product names, and logos herein are the property of their respective owners or companies. No portion of this site may be reproduced without the written consent of Modell-Zug Elektronix.

Copyright © 2006 by Modell-Zug Elektronix. All rights reserved.