Home

User Manual for the WDecN-TN DCC Accessory - Bahn-in

image

Contents

1. BBBBEBBBBBBBSBEE 1 WDecN TN EN V2 1 01 09 2006 20 of 31 4 4 Summary of all CVs CV CV CV Name Default Comment op value tional 2 514 Auxiliary activation 0 Bit mask 0 255 not implemented 6 518 Time On F2 outputs 3 and 4 8 520 ManufacturerlD 24 Read Only MoBaTron de 24 9 521 DecoderAddressMSB 0O 0 7Z max 512Decoders o ieee zoe UEM SSeS 38m 30 542 Reserved by NMRA for future use 255 6 131 543 Reserved by NMRA for future use 255 O 132 544 Reserved by NMRA for future use 255 6 O 37 549 Smoothtransitionmask 1 0O Bitmask0 255 _ 38 550 Indexforsignalaspect1ofnextsignal _ O0 1 40 which aspect must be shown 39 551 Indexforsignalaspect2ofnextsignal O0 1 40 which aspect must be shown 40 552 Indexforsignalaspect3ofnextsignal O 1 40 which aspect must be shown 41 558 Indexforsignalaspect4ofnextsignal O0 1 40 which aspect must be shown 42 554 Indexforsignalaspect5ofnextsignal O0 1 40 which aspect must be shown 43 555 Indexforsignalaspect6ofnextsignal O 1 40which aspect must be shown 44 556 Indexforsignalaspect7ofnextsignal O 1 40which aspect must be shown
2. 45 557 Indexforsignalaspect8 of next signal O0 1 40 which aspect must be shown 46 558 Flashing output mask Modes 0 3 see CV 33 O Which outputs must be flashing 47 559 Nextsignaldecoderaddress LSB 6 Bits 1 0 MSB CV9 48 560 Inversionmask 0 0 255 which outputs must be inverted 49 56 Bitpattermaspect1 0O Imdex0 S O 50 562 Flashingmaskforaspect1 0O Index 51 563 Bitpattermaspect2 TO Idex1l 52 564 Flashingmaskforaspect2 _ 0 Idex1l 53 565 Bitpattermaspect3 Index 54 566 Flashingmaskforaspect3 0 Imdex2 S O 55 567 Bitpattermaspect4 0 Imdex3 S O 56 568 Flashingmaskforaspect4 0O lImdex3 _ _ S O 57 569 Bitpattermaspect5 0 Idex4 _ 58 570 Flashingmaskforaspect5 0 Idex4 _ 59 571 Bitpattermaspect6 O Index5 60 572 Flashingmaskforaspect6 Iindex5 61 573 Bitpattermaspect7 0O Index 62 574 Flashingmaskforaspect7 0 Index _ 63 575 Bitpattermaspect8 TO Idex7 1 64 576 Flashingmaskforaspect8 0 l ndex7 1 65 577 Bitpattermaspect9 0 indx8 WDecN TN EN V2 1 01 09 2006 21 of 31 66 578 Flashingmaskforaspect9 O Index 67 579 Bitpattermaspect10 0 Index 68 580 Flashing mask for aspect10 Index 69 58 Bitpattermaspect11 O I
3. 01 09 2006 Acc 257 260 261 264 265 268 269 272 273 276 277 280 281 284 285 288 289 292 293 296 297 300 301 304 305 308 309 312 313 316 317 320 321 324 325 328 329 332 333 336 337 340 341 344 345 348 349 352 353 356 357 360 361 364 365 368 369 372 3 3 376 377 380 381 384 385 388 389 392 393 396 397 400 401 404 405 408 409 412 413 416 417 420 421 424 425 428 429 432 433 436 437 440 441 444 445 448 449 452 453 456 457 460 461 464 465 468 469 472 473 476 477 480 481 484 485 488 489 492 493 496 497 500 501 504 505 508 509 512 Decoder 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 CV 1 Table 11 Decoder addressing in CV 1 and CV 9 Decoders 1 to 192 C C lO OOnOnPOornPornmomrnmnmrnmrnmrnrnrnrnrnmrnn smrnrnmrnmnmnmnmrnrnmrnrnmrnrnmrnrn smrnrnmrnmrnmnmrnmrnmrnmrnmrnrnmrnrnmrnrn srnnmrnnmrnmrnmrnrnmrnrnmrnrnmrnrnmrn c 9 Acc 513 516 517 520 521 524 525 528 529
4. 532 533 536 537 540 541 544 545 548 549 552 553 556 557 560 561 564 565 568 569 572 573 576 577 580 581 584 585 588 589 592 593 596 597 600 601 604 605 608 609 612 613 616 617 620 621 624 625 628 629 632 633 636 637 640 641 644 645 648 649 652 653 656 657 660 661 664 665 668 669 672 673 676 677 680 681 684 685 688 689 692 693 696 697 700 701 704 705 708 709 712 713 716 717 720 721 724 725 728 729 732 733 736 737 740 741 744 745 748 749 752 753 756 757 760 761 764 765 768 28 of 31 De coder CV 1 CV 9 193 1 3 194 2 3 195 3 3 196 4 3 197 5 3 198 6 3 199 7 3 200 8 3 201 9 3 202 10 3 203 11 3 204 12 3 205 13 3 206 14 3 207 15 3 208 16 3 209 17 3 210 18 3 211 19 3 212 20 3 213 21 3 214 22 3 215 23 3 216 24 3 217 25 3 218 26 3 219 27 3 220 28 3 221 29 3 222 30 3 223 31 3 224 32 3 225 33 3 226 34 3 227 35 3 228 36 3 229 97 3 230 38 3 231 39 3 232 40 3 233 41 3 234 42 3 235 43 3 236 44 3 237 45 3 238 46 3 239 47 3 240 48 3 241 49 3 242 50 3 243 51 3 244 52 3 245 53 3 246 54 3 247 55 3 248 56 3 249 57 3 250 58 3 251 59 3 252 60 3 253 61 3 254 62 3 255 63 3 256 0 4 Acc 769 772 773 776 777 780 781 784 785 788 789 792 793 796 797 800 801 804 805 808 809 812 813 816 817 820 821 824 825 828 829
5. 832 833 836 837 840 841 844 845 848 849 852 853 856 857 860 861 864 865 868 869 872 873 876 877 880 881 884 885 888 889 892 893 896 897 900 901 904 905 908 909 912 913 916 917 920 921 924 925 928 929 932 933 936 937 940 941 944 945 948 949 952 953 956 957 960 961 964 965 968 969 972 973 976 977 980 981 984 985 988 989 992 993 996 997 1000 1001 1004 1005 1008 1009 1012 1013 1016 1017 1020 1021 1024 De coder 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 CV1 C OONOORWND CO NO OARARARARARARARAARRARAARARAARARAARARARARARAARRARAARARAARRARAARARAARARA CS Table 11 Decoder addressing in CV 1 WDecN TN EN V2 1 01 09 2006 Acc 1025 1028 1029 1032 1033 1036 1037 1040 1041 1044 1045 1048 1049 1052 1053 1056 1057 1060 1061 1064 1065 1068 1069 1072 1073 1076 1077 1080 1081 1084 1085 1088 1089 1092 1093 1096 1097 1100 1101 1104 1105 1108 1109 1112 1113 1116 1117 1120 1121 1124 1125 1128 1129 1132 1133 1136 1137 1140 1141 1144 1145 1148 1149 1152 1153
6. Manual for the NMRA compatible DCC accessory decoder Assembled WDECN TN Parts Kit WDECN TN B 2006 Gerard Clemens 1 1 Properties This model railroad accessory decoder is based on the ATMEL AT Tiny2313 microcontroller The decoder has 4 pairs of outputs and executes most of the DCC commands for acces sory decoders as defined by the NMRA Therefore the decoder can be used with other compatible DCC products and control systems like Arnold Digital Uhlenbrock Lenz Digital Plus Roco Digital Fleischmann Digitrax and Zimo The software in the decoder is very complete and supports Configuration by means of CV on a dedicated programming track or on the main track POM On the programming track CVs can be written and read Adjustable duration of the output timing 0 0065536 s 1 6777 s and continuous NMRA compatible processes all usual DCC commands for accessory decoders Configurable flashing for each individual output Flashing outputs with adjustable frequency and duty cycle 5 different modes of operation for accessories like dual coil turnout and signal motors magnetic decouplers or accessories which require continuous outputs like light signals and MRR illumination e A second decoder address can be configured to allow for more signal aspects or to automatically control the aspect of one signal by the position of a turnout or the aspect of a following signal e Memorization of the actual signal aspect allow
7. s I OF i 1 oj c o 2 9 OF OD I Gof o 3 5 C O o Oo nl ol O CO NJ O 3 OIO O BOSE O E o ojo BEG O E CO e O OIO OJ O O O SISISISISISIS NENINININEN Q5 1o mvIlfolo x 39 B S N Cvi28 0 Output aspect 10 This manual contains a configuration example in which the aspects to be displayed are iden tical for the states 1 and 2 of the secondary encoder the next signal in this case Therefore the index 8 is used twice once in CV 39 and once in CV40 Again in this example you see that all non used aspects are configured to show the Stop aspect When anything goes wrong a halt will be displayed WDecN TN EN V2 1 01 09 2006 8 of 31 3 Programming the decoder The NMRA compatible decoder WDecN TN must be programmed using so called Configu ration Variables CV These configuration variables are bytes of information permanently stored in the E 7Prom memory of the decoder The NMRA standards RP Recommended Practices define a basic mandatory set of variables with fixed functionality but also provide ranges of CVs to be used by the decoder manufacturer for the configuration of the special features of his decoder For accessory decoders the NMRA originally reserved the CVs from CV513 up to CV1024 oince many command stations did not and still don t support programming these upper CVs starting with firmware version V1 2 t
8. 1156 1157 1160 1161 1164 1165 1168 1169 1172 1173 1176 1177 1180 1181 1184 1185 1188 1189 1192 1193 1196 1197 1200 1201 1204 1205 1208 1209 1212 1213 1216 1217 1220 1221 1224 1225 1228 1229 1232 1233 1236 1237 1240 1241 1244 1245 1248 1249 1252 1253 1256 1257 1260 1261 1264 1265 1268 1269 1272 1273 1276 1277 1280 De coder 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 CV 1 OO NO RRM C and CV 9 Decoders 193 to 384 O O10101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101 lt Acc 1281 1284 1285 1288 1289 1292 1293 1296 1297 1300 1301 1304 1305 1308 1309 1312 1313 1316 1317 1320 1321 1324 1325 1328 1329 1332 1333 1336 1337 1340 1341 1344 1345 1348 1349 1352 1353 1356 1357 1360 1361 1364 1365 1368 1369 1372 1373 1376 1377 1380 1381 1384 1385 1388 1389 1392 1393 1396 1397 1400 1401 1404 1405 1408 1409 1412 1413 1416 1417 1420 1421 1424 1425 1428 1429 1432 1433 1436 1437 1440 1441 1444 1445 1448
9. 1449 1452 1453 1456 1457 1460 1461 1464 1465 1468 1469 1472 1473 1476 1477 1480 1481 1484 1485 1488 1489 1492 1493 1496 1497 1500 1501 1504 1505 1508 1509 1512 1513 1516 1517 1520 1521 1524 1525 1528 1529 1532 1533 1536 29 of 31 Decoder CV 1 CV 9 accessory Decoder CV 1 CV 9 accessory 385 1 6 1537 1540 449 1 7 1793 1796 386 2 6 1541 1544 450 2 7 1797 1800 387 3 6 1545 1548 451 3 7 1801 1804 388 4 6 1549 1552 452 4 7 1805 1808 389 5 6 1553 1556 453 5 7 1809 1812 390 6 6 1557 1560 454 6 7 1813 1816 391 7 6 1561 1564 455 7 7 1817 1820 392 8 6 1565 1568 456 8 7 1821 1824 393 9 6 1569 1572 457 9 7 1825 1828 394 10 6 1573 1576 458 10 7 1829 1832 395 11 6 1577 1580 459 11 7 1833 1836 396 12 6 1581 1584 460 12 7 1837 1840 397 13 6 1585 1588 461 13 7 1841 1844 398 14 6 1589 1592 462 14 7 1845 1848 399 15 6 1593 1596 463 15 7 1849 1852 400 16 6 1597 1600 464 16 7 1853 1856 401 17 6 1601 1604 465 17 7 1857 1860 402 18 6 1605 1608 466 18 7 1861 1864 403 19 6 1609 1612 467 19 7 1865 1868 404 20 6 1613 1616 468 20 7 1869 1872 405 21 6 1617 1620 469 21 7 1873 1876 406 22 6 1621 1624 470 22 7 1877 1880 407 23 6 1625 1628 471 23 7 1881 1884 408 24 6 1629 1632 472 24 7 1885 1888 409 25 6 1633 1636 473 25 7 1889 1892 410 26 6 1637 1640 474 26 7 1893 1896 411 27 6 1641 1644 475 27 7 1897 1900
10. 412 28 6 1645 1648 476 28 7 1901 1904 413 29 6 1649 1652 477 29 7 1905 1908 414 30 6 1653 1656 478 30 7 1909 1912 415 31 6 1657 1660 479 31 7 1913 1916 416 32 6 1661 1664 480 32 7 1917 1920 417 33 6 1665 1668 481 33 7 1921 1924 418 34 6 1669 1672 482 34 7 1925 1928 419 35 6 1673 1676 483 35 7 1929 1932 420 36 6 1677 1680 484 36 7 1933 1936 421 37 6 1681 1684 485 37 7 1937 1940 422 38 6 1685 1688 486 38 7 1941 1944 423 39 6 1689 1692 487 39 7 1945 1948 424 40 6 1693 1696 488 40 7 1949 1952 425 41 6 1697 1700 489 41 7 1953 1956 426 42 6 1701 1704 490 42 7 1957 1960 427 43 6 1705 1708 491 43 7 1961 1964 428 44 6 1709 1712 492 44 7 1965 1968 429 45 6 1713 1716 493 45 7 1969 1972 430 46 6 1717 1720 494 46 7 1973 1976 431 47 6 1721 1724 495 47 7 1977 1980 432 48 6 1725 1728 496 48 7 1981 1984 433 49 6 1729 1732 497 49 7 1985 1988 434 50 6 1733 1736 498 50 7 1989 1992 435 51 6 1737 1740 499 51 7 1993 1996 436 52 6 1741 1744 500 52 7 1997 2000 437 53 6 1745 1748 501 53 7 2001 2004 438 54 6 1749 1752 502 54 7 2005 2008 439 55 6 1753 1756 503 55 7 2009 2012 440 56 6 1757 1760 504 56 7 2013 2016 441 57 6 1761 1764 505 57 7 2017 2020 442 58 6 1765 1768 506 58 7 2021 2024 443 59 6 1769 1772 507 59 7 2025 2028 444 60 6 1773 1776 508 60 7 2029 2032 445 61 6 1777 1780 509 61 7 2033 2036 446 62 6 1781 1784 510 62 7 2037
11. Mode 0 with storage of the last state 129 Mode 1 with storage of the last state Should not be used with turnouts because they remem ber their last state mechanically Mode 2 with storage of the last state Mode 3 with storage of the last state Mode 4 with storage of the last state Table 3 Properties of CV 33 CV 34 CV 546 defines the frequency of the internal flash generator The duration of one period must be entered in units of 6 55 ms For a flashing frequency of 2 Hz 500 ms you would need to enter a value 500 6 55 76 The factory default for CV 34 is 100 71 5 Hz oee also CVs 35 and 46 WDecN TN EN V2 1 01 09 2006 13 of 31 CV 35 CV 547 is used to define the duty cycle of the internal flashing generator The value you enter in CV35 must always be less than the value you entered in CV34 If you enter a value equal or greater than the value in CV 34 the flashing turns into steady lighting gt 100 on When you enter a value of 0 in CV 35 the duty cycle is 0 on and the outputs activated for flashing will be off all the time See also CVs 34 and 46 CV 36 CV 548 controls the smooth transitioning between different signal aspects On some prototype signals an aspect slowly dims then there is a short dark phase and the new as pect smoothly appears The duration of these 3 phases is defined with CV36 The time is expressed in units of 6 55 ms The factory default for CV36 is 20 which leads to a phase duration of ab
12. S O 96 608 Flashingmaskforaspect24 0O Idex23 97 609 Bitpattermaspect25 Index ee 98 610 Flashingmaskforaspect25 0 Index24 99 611 Bitpattermaspect26 0O Index25 100 612 Flashingmaskforaspect26 1 1 0 Index25 101 613 Bitpattermaspect27 0O Idex26 102 614 Flashingmaskforaspect27 Index26 103 615 Bitpattermaspect28 _ O Index27 104 616 Flashingmaskforaspect28 0O Index 27 105 617 Bitpatternaspect29 0 Index28 106 618 Flashing mask for aspect29 1 0 Idex28 107 619 Bitpattermaspect30 0O Index29 108 620 Flashingmaskforaspect30 0O Index29 109 621 Bitpattermaspect31 O Idex30 _ 110 622 Flashingmaskforaspect31 0O Idex30 111 623 Bitpattermaspect32 0 lImdex31 S O 112 624 Flashingmaskforaspect32 0 Idex31 113 625 Bitpattermaspect33 0O Index32 114 626 Flashingmaskforaspect33 Index32 1 115 627 Bitpatternmaspect34 O Index 33 116 628 Flashingmaskforaspect34 0 Index33 117 629 Bitpattermaspect35 n O Idex34 _ 118 630 Flashing mask for aspect35 Idex34 119 631 Bitpattemaspect36 O Idex35 120 632 Flashingmaskforaspect36 1 1 0 Index3
13. bits are stored in CV 9 In CV 29 bit 6 you tell the decoder with a 0 value that it has to process 9 bit addressing information How to split up a decoder address in a 6 bit and a 3 bit part is explained elsewhere in this document A simple method is using Table 11 in the appendix of this manual or using the Excel Tool from the web site Both tables an tool also give you a cross reference of decoder address and turnout addresses on that decoder 3 3 2 Output Addressing For special accessories like signals with many aspects servo decoders with several posi tions or single function decoders one turnout one signal etc per decoder the NMRA defined a second addressing scheme with the name Output Addressing This addressing scheme can be mixed with decoder addressing and allows for effective use of the address space for accessories Output addressing basically uses a 9 bit address as discussed above and adds the 2 bits defining the output pair to it so obtaining an 11 bit address This 11 bit address provides for a total number of theoretically 2048 accessories Since the addresses 0 and 2047 broadcast are not used effectively 2046 accessories can be ad dressed The 11 bit address is split up in an 8 bit lower significant part and in a 3 bit higher significant part These values must be stored in CV1 LSB and CV 9 MSB You inform the WDecN TN to apply output addressing by setting bit 6 of CV 29 to a 1 Especially in combinati
14. energize or to de energize the individual outputs of the decoder This mode is not supported by all digi tal command stations because they normally do not send commands to de activate outputs Mode 1 Control of 4 pairs of outputs Output duration is defined by CV 3 CV 6 This is the standard for the control of 4 turnouts Zero values in CV 3 CV 6 make the outputs main tained and turn the decoder into a signal decoder for 2 aspect signals illumination or motor ized drives relays required 2 Mode 2 Control of 2 triplets and one pair of outputs Can be used to operate two 3 aspect signals and one dual coil accessory or 2 aspect signal CV 3 4 and 5 must contain 0 CV 6 defines the behavior of the last pair maintained or momentary 4 Mode 4 Control of 8 independent outputs Mode 4 is used to display up to 8 or up to 40 8 bit aspects Each of these aspects consists of a bit pattern defining the active outputs and a bit pattern defining the flashing property of active outputs Aspects must be stored in CVs 49 128 and are accessed using indices Using 1 decoder address you can access 8 aspects using 2 addresses you can access up to 40 aspects Aspects can be organized in groups and a set of 8 pointers defines the starting index of a group Which pointer 1 8 is used is con trolled by the information received on the second decoder address The second address must be entered in CV47 the pointers are defined in CV 38 CV 45
15. film resistor Metal film resistor Programmed controller Output driver Voltage regulator 5V Opto coupler Opto coupler Capacitor MKT Capacitor MKT Capacitor MKT Transistor NPN Capacitor radial Bridge rectifier Self healing fuse Screw terminal 3 Pol Screw terminal 2 Pol r 10 Multifuse OI 0 Type 1N4007 1N 4148 4K 270R 100R 2k2 1k 10k 7805 6N137 100nF 4 7nF 1 UF BC547 80V Attin Grid mm Type Reference ATTiny2313 ULN 2803 CNY17 III 470uF 35V RXEF050 ARK120 3 ARK120 2 ere D035 DO35 0204 0207 0204 0207 0204 0204 DIP20 DIP18 TO220 DIP8 DIP6 D6 D1 D2 D3 D4 R1 R2 R3 R6 R7 R4 RR IC1 IC2 IC3 IC4 ICS C3 C4 C5 C6 C7 C8 C9 C10 C11 C12 CR C2 T1 C1 B1 F1 K1 K4 K5 K6 K7 K3 r nF Sa LS 1PEnF e ly D CJ 6 H3 Beate pU ELEM O O Q Ul 4x1N4148 T 2 T Dmm pese JD E F oto Table 10 Parts List and Figure 8 PCB layout for W DecN TN WDecN TN EN V2 1 01 09 2006 Q 26 of 31 7 2 tae ae gHAABABREA VERBECH TII Lr a M ACE L E Lr PEt i UCI PBJ PEZ CFHIML3PB CAINE PEE i T1 POS SCEI PB CHI SD3PE CAOS PHH ICP PDA THI LIMT13PLD GLNTB3PD2 TP P O PE Im L4 RESET A TALZ TALI HEC GHO ar 3 A ES LU ES ull JM OHB LH gi _ FL lPulsd1ncg Figure 9 WDecN TN Schematic WDe
16. impedances of your power supply and the wiring to your decoder also have a current limiting effect during a short circuit situation In case of a short circuit the total impedance of all components wiring fuse encoder PCB decides whether or not the output stage of the decoder an integrated circuit of the type ULN2803 will be damaged or not In case of damage to this inexpensive output driver it can easily be exchanged IC socket 6 3 Service Mode Programming command station reports error You have connected your WDecN TN with the programming track and are trying to read or write a configuration variable Your digital command station just reports error e Did you attach an AC or DC power supply with 14 18V to the terminals of terminal strip K1 e Writing to a read only variable will provoke this error because the decoder doe not acknowledge this illegal operation e Did you activate the right programming mode on your command station WDecN TN supports only direct programming CV byte wise or CV bit wise Programming WDecN TN EN V2 1 01 09 2006 24 of 31 modes like register programming or paged mode will also provoke this error mes sage e Please check the decoder type The label on the microprocessor should say WDecN TN The almost identical WDecD TN decoder cannot be programmed on the pro gramming track 6 4 Service Mode Programming command station reports no Loco You have connected your WDecN TN with
17. 0 value The reset to factory defaults does apply to the values in CV 49 CV 128 The Address of the decoder will be set to 1 The output time delays in CV3 CV6 will be set to 50 0 32s Mode of operation CV 33 1 standard turnout decoder otorage of last state will be disabled Decoder addressing will be active CV 29 Bit 6 0 Standard accessory decoder command will be active CV 29 Bit 5 0 Smooth transitioning between signals aspects will be off CV 36 20 CV 37 0 Flashing and inverting will be disabled CV46 0 CV48 0 The secondary decoder address CV 47 will be set zero WDecN TN EN V2 1 01 09 2006 16 of 31 4 3 Example configuration for Mode 4 Bit 6 Bit 4 Bit 2 Bit 0 ndexaspect 0 HpO I 3 HI11 Table 4 Example configuration for an HI main signal with pilot signal and light bars The signal con trolled by the secondary decoder address shows the Halt aspect value 0 CV 38 WDecN TN EN V2 1 01 09 2006 17 of 31 Pilot signal Bit 6 Bit 0 Index aspect CV 65 8 HpO CV 66 CV 67 9 HI9a CV 6 CV 6 10 HI9b CV 7 CV 7 11 HI8 CV 7 CV 7 12 HI7 CV 7 CV 7 13 CV 7 CV 7 14 w I w ok mak mak N I gt IL IL O O O O O O lt lt lt Co I I N o D N o Table 5 Example configurati
18. 2040 447 63 6 1785 1788 448 0 7 1789 1792 Table 12 Decoder addressing in CV 1 and CV 9 decoders 385 to 511 WDecN TN EN V2 1 01 09 2006 30 of 31 Table of contents TE Propere i o 1 27 Winnog Hee COGN E DE 2 2 MOJE Mt 2 VO TN 3 2 MOG i ii 4 2 916 1 5 MOE EE 6 2 5 1 Single Address OPCraliOn asses Suc ot ero Pob a to ed e po rave D Edu EE 6 2 9 29 Dualaddress ODEON a 7 3 Programming the decoder oco poe Fete eterna eee Pe tee o doe e ot cce oua EE bud oe eeu Ep ni 9 3 1 Service Mode programming programming track seen 9 3 2 Operations Mode programming main track seen 10 3 3 Decoder Addressing Modes sse nnne 11 3 3 1 Decoder address SS oS E EST 11 3 32 OUIDULAGGOFESSIFIG NR 11 4 WDecN TN Configuration Variables ccccccsscccsececececeeeeeceeccceesecsueeeceusessueessgeeesegs 12 4 1 Extended commands for accessory decoders esse 15 42 Besertoderallt TACIONY Sel sean deste ted ado e emat bad d En ERU dnd 16 4 3 Example configuration for Mode rr 17 44 Sumimery Ordi VS ua iater ta Scart i i as Daa doque iu eu ene 21 5 Implemented DCC CommandS Sa EN NR 23 O OONN FOO GINS a a 24 6 1 Electromagnetic interferences i 24 6 2 Shot CIRCUITS and OV CUO AC CER 24 6 3 Service Mode Programming command station reports error ee 24 6 4 Service Mode Pro
19. 5 121 633 Bitpattermaspect37 O Index 36 122 634 Flashingmaskforaspect37 O Index36 123 635 Bitpatternaspect38 0 Index 37 124 636 Flashing mask for aspect38 0 Index37 125 637 Bitpattermaspect39 O Idex38 126 638 Flashing mask for aspect39 Idex38 127 639 Bitpatternmaspect40 _ Index 39 128 640 Flashingmaskforaspect40 O Idex39 Table 8 Summary of all CVs for the NMRA compatible accessory decoder The gray shade shows the mandatory CVs as defined by the NMRA standard RP 9 2 2 All other fields are used to define the specific decoder features WDecN TN EN V2 1 01 09 2006 22 of 31 5 Implemented DCC Commands This is a summary of all NMRA commands which can be executed by the WDecN TN ac cessory decoder Reset Packet Basic Packet Broadcast Packet Extended Packet Ext Broadcast Bas Op Mode Prog Ext Op Mode Prog Dec Ack Request Serv Mode Prog CVACCESS WDecN TN EN V2 1 preamble 0 00000000 0 00000000 0 EEEEEEEE 1 preamble 0 1LOAAAAAA 0 LAAACDDD 0 EEEEEEEE 1 AAAAAA AAA C DDD EEEEEEEE preamble O 10111111 0 1000CDDD O EEEEEEEE 1 preamble JO 10AAAAAA O OAAAO0AA1 O OO0O0XXXXX O EEEEEEEE 1 AAAAAA AAA AA XXXXX 00000 EEEEEEEE preamble 0O 10111111 0 00000111 0 000XXXXX 0 EEEEEEEE 1 preamble 0 1O0AAAAAA 0 1LAAACDDD 0 CVACCESS 0 HEEEEEEE 1 AAAAAA AAAlDDD AAAAAA AAA0000 CVACCESS
20. EEEEEEEE preamble O 10AAAAAA O OAAAO0AA1 O CVACCESS O EEEEEEEE 1 preamble O 10AAAAAA O OAAACDDD O O0O001111 O0 EEEEEEEE 1 preamble O O111CCVV O VVVVVVVV O DDDDDDDD O EEEEEEEE 1 CC CC Ce CC VV VVVVVVVV DDDDDDDD EEEEEEEE 1110CCVV O VVVVVVVV O DDDDDDDD O EEEEEEEE 1 CC CG CG CC VV VVVVVVVV DDDDDDDD EEEEEEEE Table 9 All decoded DCC commands 01 09 2006 Decoder Address Output State Coil 0 7 Checksum Output Address Signal Aspect Stop Aspect Checksum Output Address Decoder Address DCC Programming CMD Checksum Command 01 Verify Byte 11 Write Byte 10 Bit Manipulation CV Number New Value Checksum Command 01 Verify Byte 11 Write Byte 10 Bit Manipulation CV Number New Value Checksum 23 of 31 6 Solving Problems 6 1 Electromagnetic interferences Using dual coil accessory motors with end of stroke limit switches may cause a substantial amount of radio frequent interferences and voltages spikes on the wiring The WDecN TN decoder has been designed to be highly resistant to these interferences so normally there will be no influence on its function When interferences nevertheless cause problems like turning off maintained outputs or other irregularities occur you should check the decoder wiring Keep wires a short as possible Don t arrange or wrap accessory wires around or nearby a decoder Long wires will work like an antenna If the pro
21. ack 6 5 The decoder does not work at all WDecN TN is shipped with factory settings that make it a normal turnout decoder for 4 dual coil controlled turnout motors The Decoder address is set to 1 This means that it will control the turnouts 1 4 You hooked up some turnouts or lamps and are testing the decoder You pus the buttons for turnouts 1 4 but nothing happens e Check the wiring Did you hook up the digital track voltage to K3 Did you supply an AC or DC voltage in the range of 14 18 V on the terminals of the K1 strip e Is your command station in keyboard mode Did you activate decoder address 1 or accessory address 1 and up on your keyboard station On a multi protocol com mand station did you activate the DCC protocol for accessories e Are your accessories lamps connected correctly and are they functional Do they work with conventional switches and ac dc power e Again check the label on the processor chip It should say WDecN TN The almost identical WDecM TN accessory does not react on DCC track commands just on Mo torola Format e Check the decoder for mechanical damage Did electronic parts get out of the printed circuit board Are all integrated circuits properly seated in their sockets WDecN TN EN V2 1 01 09 2006 25 of 31 7 Parts kit WDecN TN B 7 1 Parts list in the order of insertion Part Diode Diode Metal film resistor Metal film resistor Metal film resistor Metal film resistor Metal
22. blems cannot be solved you insert one or more ferrite beads in the accessories common lead Voltage This causes inductivity which blocks HF signals A 100 effective elimination of high frequency interferences and voltage spikes can be achieved by mounting protections diodes over the solenoids The anodes of the diodes must be pointing to the common lead The disadvantage of this method is that your accessories can not be used on conventional layouts with ac power supply for accessories Also Transient Voltage Suppressors with nominal voltage values of 24 or 30 V mounted across the and output terminals of the decoder you can effectively avoid voltage spikes from your accessory to reach the decoder electronics and so avoid malfunctioning due to limit switches in the decoder output leads 6 2 Short circuits and overload The decoder is equipped with a self healing fuse This fuse is a positive temperature coef ficient resistor which has low impedance at normal temperatures The fuse is intended to protect the decoder against overloading the outputs The time constant of the fuse is rather high so it may take several 100 ms for the fuse to heat up increase its resistance and switch off the overload When the overload situation is removed the fuse cools down again and assumes the original low impedance For protection against hard short circuits and wiring errors the fuse may not be fast enough to protect the output stage of the decoder The
23. cN TN EN V2 1 01 09 2006 2 of 31 Decoder WDecN TN EN V2 1 CV 1 OONOOaRWND 8 Appendix A Addressing CV 9 Acc 1 4 5 8 9 12 13 16 17 20 21 24 25 28 29 32 33 36 37 40 41 44 45 48 49 52 53 56 57 60 61 64 65 68 69 72 73 76 77 80 81 84 85 88 89 92 93 96 97 100 101 104 105 108 109 112 113 116 117 120 121 124 125 128 129 132 133 136 137 140 141 144 145 148 149 152 153 156 157 160 161 164 165 168 169 172 173 176 177 180 181 184 185 188 189 192 193 196 197 200 201 204 205 208 209 212 213 216 217 220 221 224 225 228 229 232 233 236 237 240 241 244 245 248 249 252 253 256 Decoder 65 128 CV 1 CV 9 N c c c c c c c c c c c c cl c c c c c c c c cL cL c c c c c c cL c c cl c c c c c c c c c Ll Ll cl c cl c c cl cl cl ol ol ll st
24. er way The terminals of terminal strip K1 must be connected to a MRR transformer with an output voltage of 14 18 VAC If no MRR transformer is available the DCC track voltage may also be applied This has some disadvantages the valuable digital DCC power gener ated by a digital booster is used for turnouts or lamps and not for its original purpose of driv ing rolling stock The round rectifier next to K1 is not very well suited to rectify the audio fre quent DCC signal and may cause a distortion of the wave form The left terminal of terminal strip K1 is connected to the internal ground signal of the de coder This terminal can be used to power the illumination of mechanical signals where the dual coils and one pole of the illumination is connected to one of the decoder s plus termi nals on K4 K7 Caution This internal decoder ground may in no case be connected to any other ground or mass connection of your layout It can solely be used for accessories which not only require the common positive internal decoder voltage but also the internal ground The current drawn between the common plus terminals and the internal ground terminal must not cause a decoder overload WDecN TN can easily be configured for 5 different modes of operation each suited for dif ferent applications These 5 modes are explained in more detail hereafter 2 1 Mode O This mode of operation allows the user to independently control each one of the 8 o
25. ess Example Decoder number 200 200 64 3 remainder 8 gt CV9 3 CV1 8 Output addressing CV 29 Bit6 1 CV 9 output number 256 result of the integer division of the out put number by 256 Example Output number 1200 1200 256 4 remainder 176 gt CV 9 2 4 CV 1 176 WDecN TN EN V2 1 01 09 2006 12 of 31 CV 29 CV 541 Configuration of the decoder This is a bit mask in which single bits activate functionalities The properties can be changed bit wise This is the meaning of the bits Doom P gt value Bito j reseved 1 O J 1 Bit1 reserved 1 1 O 2 Bit2 reserved gt 1 1 1 1 11 11 1 0O 4 Bit3 Bi Directional communication always off 0 O 8 Bit4 Reserved 1 1 1 OO 16 Type 0 Basic Accessory Decoder T 1 Extended Accessory Decoder Addressing 0 decoder addressing UE LINE 1 output addressing see chapter 3 3 2 Decoder type 0 Multi Function Decoder not implemented 1 Accessory decoder Table 2 Properties of CV29 CV 33 CV 545 defines the mode of operation of the decoder CV 33 is only valid if the de coder has been configured as basic accessory with decoder addressing CV 29 bit 5 0 and CV 29 Bit 6 0 Most of the actual DCC command stations can address the decoder only when it has been configured this way Value Funcion 0 Mode 0 Evaluate the status bit in the standard DCC accessory command Allows to
26. gramming command station reports no Loco 25 6 5 Aheduecogder doSs NOWO at allo NN 25 7 PanskiWDeoN TNSB cista n aie va HS em Sas tud tud pete fines PE e sapra es of cea 26 r Parnslsbindheorder or InseFllOn zitat tr Qu I ua tp obe nae anoles 26 52 WDecN ITN SCHeMaC A a TO 27 9 Appendix A AOGFeSSIFIO A Ai EET 28 Glossary DCC Digital Command Control NMRA National Model Railroad Association CV Configuration Variable also known as parameter POM Programming On the Main track Operations Mode Programming MRR Model RailRoad Booster Power amplifier for the digital track signal Multi Function Decoder Loco decoder for motor and function control WDecN TN EN V2 1 01 09 2006 31 of 31
27. he WDecN TN allowed programming the same variables in the both the upper and lower range 1 512 In the latest RP 9 2 2 the CVs have now been officially moved from CV513 CV1024 down to 1 512 Usage of 513 1024 is now op tional but still supported also by the WDecN TN This document refers to both ranges and now mentions the lower range first E g CV 1 CV513 contains the 6 lowest significant bits of the accessory decoder address or the lower significant Byte of the output address when used with output addressing Table 8 starting on page 22 shows all implemented CVs The factory default value for CV 1 CV513 is 1 Independent of the selected addressing mode decoder addressing or output addressing the decoder accepts all accessory com mands sent to address 1 3 1 Service Mode programming programming track Connect the DCC input terminals on K3 with the programming track output terminals of your command station Apply 14 18V AC or DC from a model rail road transformer to the ter minals on K1 Follow the instructions of your command station to read or write CVs direct mode Due to the hardware concept of the WDecN TN decoder it requires an AC or DC sup win ply voltage in the 14 18 V range on the terminals on K1 during service mode pro gramming If no such external power is available you may consider using the DCC track voltage Using the programming track voltage for this purpose may work as well In case of prob
28. he WDecN TN offers 8 pointers in the array of 40 aspects CV 49 up to CV128 So for each of the possible 8 states of the decoder under the secondary address you can assign a block of aspects You may define 8 blocks each 5 as pects or define 5 blocks each 8 aspects large or even use the same block of aspects for more than once for different states of the secondary decoder Use the CVs 38 up to 45 to define the starting indices in the array of aspects The array of aspects starts with CV49 and goes up to and including CV128 These 40 aspects are num bered 0 to 39 so an index can have a value of 0 up to 39 CV 38 defines the index for the secondary encoder state 0 CV 39 defines the starting index for the secondary encoder state 1 and so on Figure 7 explains this function graphically WDecN TN EN V2 1 01 09 2006 7 of 31 LSB CV 1 e g 2 0 7 Decoder Address 1 _MSB CV 9_ LSB CV 47 Decoder Address 2 Pointer definition em 01001100 Aspect definition 01000000 Figure 7 Selection of signal aspects in mode 4 using 2 decoder addresses Index selection 0 7 Pointer selection O 7 EEEEEEEE BB S 5 t o h o Points to aspect 8 4C hex 76 dec 40 hex 64 dec f V V5 5 i D O ct able Ofo C1 Iolo tate on off tate flashing O1 N O O O alate Oi oi Oy C Oo OO IO IO
29. hen operating the IntelliBox directly or using the P50X protocol it will only send the ON commands WDecN TN EN V2 1 01 09 2006 2 of 31 2 2 Mode 1 In mode 1 the 8 decoder outputs are organized in 4 adjacent pairs In a pair only one output can be active at a time i e the outputs are mutually exclusive This feature makes mode 1 the ideal mode for twin coil turnout or signal motors or simple signals with 2 aspects only To operate twin coil turnout motors following configuration is required CV 33 1 CV 29 Bt6 20 andCV3 CV6 gt 0 digital DCC track voltage 14 18V AC froma MRR transformer or digital track voltage MANET NANNN WW AW AWW AMW WW Aww Figure 1 Connecting 4 twin coil turnout motors Figure 1 shows the wiring of 4 twin coil motors for turnouts Each one of these drives con tains 2 solenoids which must be connected to the screw terminals of the terminal strips K4 K7 The common wire of the 2 solenoids must be connected to the center terminal which carries the decoder supply voltage Using CV 3 CV 6 you define the duration of the output impulse When the twin coil drive has end of stroke interrupting limit switches you may also define the maximum possible time delay 255 255 x 6 55 ms 1 67 s Caution If one or more of the CV 3 CV 6 variables contain a zero value then the corresponding output s will be continuously energized The solenoid of the twin coil drive could get overheated burn out a
30. lems consult chapter 6 The accessory decoder WDecN TN accepts all standardized DCC commands to read verify and write CVs You can operate on bytes or on single bits It is possible to read and write not used CVs Some CVs are marked as read only They can just be read Trying to write these variables will provoke an error on your command station Every successful service mode command will be acknowledged by the decoder An ac knowledge signal very briefly 6 ms raises the DCC power consumption from the program ming track This raise in power consumption is detected by your command station which will give an acknowledge message in its display When it expects an acknowledge pulse from the decoder but doesn t get one it reports an error When reading CVs your command sta tion calculates the value of the CV by repeatedly sending bit verify commands and evaluat ing the returned acknowledge signals WDecN TN EN V2 1 01 09 2006 9 of 31 3 2 Operations Mode programming main track Even when your preconfigured decoder has been mounted on your layout and receives its DCC commands from the main track you can still change the values of most CVs using the Operations Mode programming This mode is also referred to as Programming On the Main track POM Of course your digital command station must support operations mode programming or POM Please note that POM for accessory decoders differs from POM for multi function decoders because
31. mainder after a division by 256 Example Output number 1200 1200 256 4 remainder 176 gt CV 1 176 CV 9 4 CV 3 CV 6 CV 515 CV 518 define the duration of the output activation for the output pairs 1 to 4 The time is defined as the number of 6 5536 ms increments For electromag netic turnout and signal dual coil drives an activation time of ca 0 33 s 50 increments is a good value Entering a 0 value causes the active output to remain energized until it is explic itly de energized e g by another aspect by the other output of a pair CV 7 CV 519 contains the firmware version of the decoder The actual version is 2 1 which is represented by a value of 21 This is a read only variable CV 8 CV 520 contains the manufacturer identification number This number is assigned by the NMRA For the WDecN TN the manufacturer ID 24 MoBaTron de This is a read only variable CV 9 CV 521 contains the most significant bits of the decoder or the output address With CV 29 bit 6 you define whether decoder addressing bit 6 0 or output addressing bit 6 1 is active CV 9 must be used together with CV1 to specify the complete 9 bit decoder ad dress or a complete 11 bit output address Decoder addressing see also Appendix A starting at page 28 CV 29 Bit6 0 CV 9 Decoder number 64 result of the integer division of the decoder number by 64 These are the 3 most significant bits of the 9 bit decoder ad dr
32. nd or damage the decoder output Normal time values are between 25 0 17 s and 50 0 33 s Larger time values and frequent usage may also lead to overheating drives The WDecN TN in mode 1 can also be used as a signal decoder for 4 signals with each 2 aspects e g green and red To obtain continuous outputs the timer values in CV 3 CV 6 must be set to O Of course you can use each one of the 4 output pairs for a different purpose The pair on K4 may control a turnout the pair on K5 serves a mechanical signal while K6 operates on 2 electromagnetic decouplers Finally K7 operates a light signal with 2 aspects Timing for K4 is defined by CV 3 the timing for K5 is defined by CV 4 and so on Also in mode 1 you can use features like smooth transitioning of aspects flashing outputs or inverting outputs See CVs 37 CV 46 and CV 48 for details WDecN TN EN V2 1 01 09 2006 3 of 31 2 3 Mode 2 The outputs of the decoder are grouped in 2 triplets and one pair K4 and K5 terminal 1 are triplet 1 K5 terminal 2 and K6 make up triplet 2 and the remaining pair of outputs is available on K7 Within a triplet only one output can be active on at a time A triplet can be used to operate a signal with 3 aspects The simplest case of a signal with 3 aspects would be a signal with just 3 lamps green yellow and red each one connected to an output Only one lamp can be lit at a time When signals get more complex i e an aspect is represented by 2
33. ndex 10 70 582 Flashingmaskforaspect11 O Index 10 71 583 Bitpattemaspecti2 O Index tt 72 584 Flashing mask for aspect12 0 Idex11 73 585 Bitpattermaspect13 0 Idex19 6 74 586 Flashingmaskforaspect13 O Index i2 S 75 587 Bitpatternaspect14 Index 76 588 Flashingmaskforaspect14 O Idex13 77 589 Bitpattermaspect15 TO Idex14 _ 78 590 Flashingmaskforaspect15 10 Index i4 _ 79 591 Bitpattermaspect16 0O Idex15 6 80 592 Flashingmaskforaspect16 0 Idex15 6 81 593 Bitpattermaspect17 O Index 6 82 594 Flashingmaskforaspect17 O Index 6 6 83 595 Bitpattemaspect i8 0O Idex17 84 596 Flashingmaskforaspect18 0 Index 47 85 597 Bitpattermaspect19 O Idex18 6 86 598 Flashing mask for aspect19 Idex18 87 599 Bitpatternaspect20 0O Idex19 88 600 Flashingmaskforaspect20 0 Idex19 89 601 Bitpattermaspect21 O Index20 _ 90 602 Flashingmaskforaspect21 1 0O Index20 _ 91 603 Bitpattemaspect22 0 Idex21 92 604 Flashing mask for aspect22 0O Index21 93 605 Bitpatternmaspect23 0O Imdex22 S O 94 606 Flashingmaskforaspect23 0 Index229 _ 1 95 607 Bitpattermaspect24 n 0O Imdex23
34. ode 2 or 3 without having to use a diode matrix This variable should be left Zero when the decoder is used to control dual coil accessories A typical example that makes use of inverting outputs is the Swiss dwarf signal with 3 as pects This signal has 3 lamps Always 2 out of 3 lamps are lit to show the 3 aspects Here you will find the documentation for this application CV 49 CV 51 CV 53 CV 127 CV 561 CV 563 CV 565 CV 539 contain the up to 40 signal aspects bit patterns representing active outputs which can be displayed in 3 ways CV 29 bit 5 0 and CV289 bit 6 0 CV 33 4 CV 47 0 CV 38 20 You can display any one of the first 8 signal aspects CV 29 bit 5 1 and CV 29 bit 6 1 CV 47 0 CV 33 1 default CV 38 0 default Up to 32 signal aspects can be displayed using the NMRA extended accessory com mands The decoder uses output addressing Note that extended accessory com mands are not supported by all digital command stations CV 29 bit 5 0 and CV 29 bit 6 0 CV 33 4 CV 47 gt 0 Depending on the status of the secondary decoder in CV 47 the decoder selects a group of aspects to display Using its own status it picks an aspect from the active group This mechanism allows to select any one of the up to 40 aspects from the ar ray of aspects CV 49 CV 128 Each one of the 40 aspects needs to be defined in 2 subsequent CVs in the 49 to 128 range The first one of these 2 CVs contains the bits
35. of the different addressing schemes For example the Uhlenbrock IntelliBox in V1 5 supports POM only for multi function decoders The almost identical Fleischmann Twin Center supports both POM for accessory decoders and for multi function decoders Using POM you can address the decoder or the output depending of how you configured your decoder to work The WDecN TN in operations mode programming does not supply acknowledge signals like it does in service mode programming This implies that it is not possible to read variables in operations mode WDecN TN EN V2 1 01 09 2006 10 of 31 3 3 Decoder Addressing Modes 3 3 1 Decoder addressing A traditional DCC accessory decoder can normally control 4 output pairs momentary or maintained outputs Decoders of this type are addressed with a Decoder Address Com mands to this address contain information about which pair 2 bit which output in a pair 1 bit and what output state is required 1 bit A total of 510 decoders is supported each decoder providing control for 4 accessories In terms of turnouts this would allow for 2040 turnouts Decoder 0 is not used and decoder ad dress 511 is reserved for broadcasts commands commands to be executed by all decod ers To address a decoder in the range of 1 to 510 a 9 bit address is required This 9 bit address is split up in a 6 bit part and a remaining 3 bit part The lower significant 6 bits are stored in CV1 the remaining 3 higher significant
36. on for an HI main signal with pilot signal and light bars The signal con trolled by the secondary decoder address next signals shows the aspect slow speed 40 60 km h CV 39 8 CV 40 8 WDecN TN EN V2 1 01 09 2006 18 of 31 Pilot signal Bit 6 z ome I Bit 0 Index aspect 1 16 HpO lt Co N Li 17 Hl6a L 18 Hl6b 19 HI5 20 HI4 L 21 HpO 22 HpO 1 23 HpO Eee Ip EGA B HHHHHHHH mm m um p Gm OG 12D I lt lt lt c AB CO N Co l c Table 6 Example configuration for an HI main signal with pilot signal and light bars The decoder with the secondary address next signal shows limited speed 100 km h CV 41 16 WDecN TN EN V2 1 01 09 2006 19 of 31 Pilot signal Bit 6 w N Bit 0 Index aspect 24 HpO 25 HI3a 26 HI3b 2 HI2 CV 97 CV 98 CV 99 CV 100 CV 10 CV 10 N CV 10 CV 10 CV 10 CV 10 Table 7 Example configuration for a main signal with pilot signal DR HI Signal The decoder with the secondary address next signal shows the aspect safe full speed status 5 CV 42 24 CV 43 44 and 45 contain zeros so they point to the aspects for Halt on next signal CV 10 CV 10 CV 10 CV 11 e UD genie CV 11 1 CV 11 N
37. on with the extended commands for accessory decoders output ad dressing offers very powerful features A single WDecN TN on a single output address can control a signal with up to 32 different aspects Of course your digital command station must support these extended accessory decoder control packets and not many of them do so WDecN TN can be configured for extended DCC accessory decoder commands by setting CV 29 Bit 5 to a 1 value WDecN TN EN V2 1 01 09 2006 11 of 31 4 WDecN TN Configuration Variables This chapter provides detailed information about all Configuration Variables CVs of the WDecN TN accessory decoder Examples will be used to help understand the functions CV 1 CV 513 contains the 6 lower significant bits of the decoder address or the 8 lower significant bits of the output address In CV 29 bit 6 you define which of the addressing schemes will be used 0 decoder addressing 1 output addressing CV 1 can only be used in combination with CV 9 to define a complete 9 bit decoder address or a complete 1 1 bit output address Decoder addressing see also Appendix A starting at page 28 CV 29 Bit6 0 CV 1 Decoder number 64 decoder number Modulo 64 or the remainder after a division by 64 Example Decoder number 200 Contains the turnouts 797 800 200 64 3 remainder 8 gt CV 128 C0V9 23 Output addressing CV 29 Bit6 1 CV 513 output number 96256 output number Modulo 256 or the re
38. or more lamps you must use a simple diode matrix to decode these aspects The wiring diagram in figure 2 shows a pilot signal of the federal German railways that uses 4 lamps to show 3 aspects VrO Vr1 and Vr2 Please observe that the decoder outputs switch the accessory to internal ground and that the center terminals of K4 K7 supply the accessory with the internal positive voltage If you use a diode matrix it must be correspondingly polarized A very common diode for this purpose is the 1N4148 It can be used for currents of up to 200 mA When you apply signals with LEDs you also need to insert current limiting resistors The resistors can be equally well placed in the anode or cathode of the LED Digital DCC track voltage 14 18 V AC from a MRR transformer or DCC track voltage Turnout Signal Vr 2 or Hp2 Signal 2 Vr 1 or Hp 1 Vr O of Hp 0 Ca 1K5 Ca 1K5 WDecN TN 3 K4 Ca 1K5 Ca 1K5 Pilot signal DB with LED 4 x 1N4148 Figure 2 Wiring 2 signals with each 3 aspects and a twin coil accessory motor For the application as shown in figure 2 you need to make following adjustments CV 33 2 CV 29 Bite 20 CV 320 CV4 0 CV5 0 CV6 gt 0 The remaining outputs on the red and green terminal of terminal strip K7 can be used for a signal with 2 aspects for a dual coil accessory motor or for 2 electromagnetic decouplers The timing values in CV 6 mus
39. out 120 ms for dimming and lighting up The dark phase is always half this time Smooth transitioning does only make sense for light signals and could lead to damage or malfunction when applied to twin coil accessory motors See also CV37 CV 37 CV 549 defines for which of the 8 decoder outputs the smooth transitioning is active see CV36 CV 37 is a bit mask in which bit 0 represents output 1R bit 1 represents output 1L bit 2 corresponds to output 2R and so on If you want to enable smooth transitioning for all outputs you would enter a value of 255 in CV37 See also CV 36 CV 38 CV 45 CV 550 CV 557 contain 8 indices in the array of aspects CV 49 CV 128 The indexing in the array of aspects is only active in mode 4 If your WDecN TN only uses its basic decoder address in CV1 and CV9 you can access the range of 8 aspects as defined by the contents of CV 38 The default value of CV38 is 0 so you would be able to access the 8 aspects stored in CV 49 CV 64 Changing the contents of CV 38 using POM would allow you to access the other 32 aspects If your decoder also uses a second ad dress CV 47 0 then the second address controls the selection of the pointer 1 8 This mechanism also allows to automatically control the active aspect of a signal based on the status of another decoder be it signal or a turnout decoder CV 38 Index of the first aspect within a group of up to 8 aspects that will e active when the decoder
40. pick an aspect from a table of 40 aspects Each of the aspect definitions consists of 2 conse quent CVs The first CV byte is a bit pattern which defines the active output bits for the aspect see Figure 5 Output mask The second CV contains the flashing attributes see Figure 5 Flashing mask The table of 40 aspects is contained in the CVs from 49 up to CV 128 In the default single address mode you can only access the first 8 aspects CV 49 CV 64 The decoder con sumes just one decoder address and the contents of CV 47 must be zero DA Q flashing active off Flashing mask 129 0 0 00 2 0 12OICV n1 Output mask 128 0 0 16 0 21 47 CVn wa Shh wily SE Mu YE ENGL YE m SS NN yA Value of output 128 bits TUE NM 0 0 Figure 5 Output numbering and definitions of the masks for an aspect In this way the WDecN TN offers a very easy to use way to adapt to the control of any kind of signal with up to 8 aspects Figure 6 shows a DR HI main signal in combination with a light bar and a pilot signal attached to a WDecN TN The total number of LEDs or lamps that can be independently lit must not be more than the physical 8 outputs If your application re quires more than 8 LEDs or lamps then you might consider using a diode matrix to realize WDecN TN EN V2 1 01 09 2006 6 of 31 the required function On the MoBaT
41. ron de web site you will find an example for the wiring and the configuration of a DB signal combination consisting of a main signal and pilot signal with a total of 9 LEDs Main Signal digital DCC track voltage DCC Pilot Signal 209 u 14 18V AC from a MRR transformer or DCC track voltage Figure 6 Wiring a combination of signals in Mode 4 2 5 2 Dual address operation Many signals can show more than just 8 aspects With the help of a second decoder ad dress the WDecN TN can extend the number of displayable aspects to 40 theoretically 8 x 8 64 but limited to 40 due to memory restrictions The second address must be entered in CV 47 and just consist of the L SB of the address The MSB of the second address is as sumed to be identical to the MSB in CV 9 The second address may be a virtual address i e no decoder uses this address but it can also be the address of a physical decoder In case the second address represents a physical decoder you can make the active aspect depend on the state of that physical decoder turnout s and or other signal s Especially in combination with pilot signals as is the case with many HI DR and Hp DB signals aspects may change dependent on the state of the next signal next block The aspect shown then automatically announces the state of the next signal To be completely flexible in configuring t
42. s to power up in the last state before power down Up to 40 different signal aspects using 2 decoder addresses or 32 signal aspects using a single output address Decoder addressing from 1 510 2040 turnouts or output addressing from 1 2046 All outputs can be individually inverted alternating flash lights at crossroads Prototype like dimming between signal aspect transitions Duration can be defined with a CV Hardware Low cost high performance ATMEL ATTINY2313 Microprocessor Simple and robust hardware on an industrial quality printed circuit board Small size 50 x 80 mm with four 3 mm screw holes Output current 500 mA per output ca 1 A per decoder Separate terminals for external power supply MRR transformer or power from the DCC track voltage This product is not a toy It is not intended for use by children under 14 years The part kit contains small parts Keep it out of the hand of children younger than 3 years Caution This product has sharp edges and pins which might cause injuries Misap plication might lead to fire hazard Please follow the instructions of this manual to avoid injury or hazard by this product Arnold Digitrax Lenz Roco and Zimo are registered trade marks WDecN TN EN V2 1 01 09 2006 1 of 31 2 Wiring the decoder Terminals 1 and 2 of terminal strip K3 must be connected to the DCC track signal The po larity of the DCC signal has no influence on the function of the decoder It will work eith
43. t be adopted accordingly Connected accessory Value in CV 6 0 Light signal Twin coll accessory turnout signal 30 80 Twin coil accessory with end of stroke limit switch 30 80 max 255 Table 1 Values in CV 6 for different accessories A configuration example for a Swiss dwarf signal can be found here WDecN TN EN V2 1 01 09 2006 4 of 31 2 4 Mode 3 CV 33 3 CV 29 Bite 20 CV 320 CV4 0 CV5 0 CV 6 0 Using this mode of operation the decoder outputs are split in 2 groups of each 4 outputs In a group only one output can be active at any time You can hook up 2 signals with each 4 aspects If the aspects are represented by single lamps then these lamps can simply be con nected with the 4 available outputs Only one lamp will be lit at any time In case your signal is more complex and one or more of the 4 aspects are represented with 2 or more lamps you must insert a diode matrix between signal and decoder to define which lamps are lit for each of the 4 aspects The wiring example in Figure 3 shows a main signal of the German federal railways which uses 6 lamps to show 4 aspects Hp0 Hp1 Hp2 und Sh1 Important Note The decoder outputs switch to internal decoder ground The positive supply voltage is delivered on the 4 center terminals of K4 K7 drawn in blue The diodes in your matrix have to be polarized accordingly A recommended diode type for a matrix is the low cost 1N4148 with a 200 mA current capaci
44. that must be set active and he second one contains the active bits that must flash Bits correspond to decoder outputs Bit O output 1 and Bit 7 is output 8 Table 4 Table 5 Table 6 and Table 7 show an example configuration for an HI signal with pilot signal and signal bars This example also shows the dependency on the state of the next signal e g the secondary decoder CV 50 CV52 CV 54 CV 128 CV 562 CV 564 CV 566 CV 640 contain the masks that define which of the active outputs in an aspect must flash 4 1 Extended commands for accessory decoders These commands have already been implemented in the firmware of the WDecN TN Probably none of the known DCC command stations can issue these commands The commands are e Extended accessory decoder command allows the selection of one out of 32 signal aspects using one single accessory address e Extended accessory decoder broadcast command This command allows to send a single command which will be received an executed by all accessory decoders capa ble of executing broadcast commands Could be used to set all signals to a stop as pect e POM for extended accessory decoders This could be used to change aspects online e g by means of a computer control program WDecN TN EN V2 1 01 09 2006 15 of 31 4 2 Reset to default factory settings To return the WDecN TN to factory settings it has to be configured for address 0 This can be achieved by setting both CV1 and CV 9 to a
45. the programming track outputs of your command station and are trying to write or read a configuration variable You command stations re sponds with no loco or no decoder This indicates that there is a too low or no load on the programming track output e Check the wiring between the programming track output of your command station and terminal strip K3 on the decoder Using a voltmeter in AC mode do you read a voltage on K3 Is this voltage at least 10V Is the solder connection between these terminals and the printed circuit board of the WDecN TN still intact Maybe you broke the solder joint by excessive torque on the screw terminal e WDecN TN uses very little power of the available power on the programming track A command station with a low sensitivity can interpret this as if the decoder was miss ing You can easily solve this problem by increasing the load on the programming track by placing a resistor of 1 to 2 kOhm in parallel to the encoder e Very often the command station uses a relay to provide the programming track with limited DCC power Due to the low load on the programming track outputs the resis tance of the relay contacts may increase over time and cause the digital command station to see a too small load Mechanical shock vibration may cure the contacts e Please test the label on the microprocessor It should say WDecN TN The almost identical WDecD TN accessory decoder cannot be programmed using the program ming tr
46. ty Using signals with LED instead of lamps re quires the use of current limiting resistor in series with each of the LEDs The position of the resistor may be chosen in the anode or cathode lead of the LED Mode 3 can also be combined with smooth transitioning of aspects flashing and inverting Digital DCC track voltage DES AM 14 18 V AC from a MRR transformer or DCC track voltage kK Ca 1K5 Ca 1K5 Ca 1K5 e l Ca 1K5 Ca 1K5 U N Figure 3 Wiring 2 signals with each 4 aspects HPO HP 1 HP2 Sh1 Figure 4 The aspects Hp0 Hp1 Hp2 and Shi are controlled by one half of a WDecN TN decoder WDecN TN EN V2 1 01 09 2006 5 of 31 2 5 Mode 4 CV 33 4 CV 29 Bit6 0 CV 320 V4 20 V 5 0 CV 6 O In mode 4 you can freely define the output state of the 8 decoder outputs Mode 4 is the ideal mode to control more complex light signals There is no dependency between the out puts there are no groups and all outputs might be ON or OFF as you desire On top of that you may define which lamps in what aspect must be flashing 2 5 1 Single Address Operation The principle of mode 4 is looking up an aspect from a table of aspects To pick the desired aspect the decoder evaluates the 8 possible on commands for its 8 outputs It translates these DCC commands to an index with a value of 0 7 WDecN TN takes this index to
47. utputs Each output can be switched on or off independent of the state of the other outputs It de ploys the standard accessory command as defined by the NMRA This command contains one particular bit which defines the state of the addressed output ON or OFF Now most of the commercial digital command stations do never send the command to switch an output OFF and leave it up to the decoder to maintain the active output or to switch it off after a time delay For this reason mode 0 can only be used with selected command stations If your command station allows commanding both the ON and OFF state of an output the WDecN TN in Mode 0 is the most universal decoder you can think of It allows controlling turnouts illumina tion but also light signals with up to 256 different aspects Required configuration CV 33 0 or 128 with memorization of the last output state CV 29 128 CV 3 CV 6 O CV 46 for flashing and CV 37 for dimming can of course also be used in Mode O For special applications you can also use the times in CV 3 CV 6 to limit the duration of the output pulse E g the duration of impulses to electromagnetic decouplers could be limited by a fixed time rather than by the duration of your finger pushing a button Since there are 4 timers 2 adjacent outputs share one timer and will both have the same time limitation Tip When you operate the IntelliBox using the LocoNet protocol both telegrams ON and OFF will be send W
48. with the secondary address decodes an on command for its output 0 The value of CV 38 may range from 0 to 39 CV 39 Index of the first aspect within a group of up to 8 aspects that will e active when the decoder with the secondary address decodes an on command for its output 1 The value of CV 39 may range from 0 to 39 Etc etc for the CVs 40 45 The tables Table 4 Table 5 Table 6 and Table 7 starting at page 17 show a practical exam ple for the application of WDecN TN for German HI signals CV 46 CV 558 is used to define which outputs must flash in modes 0 3 Bits O 7 corre spond to the outputs 1 8 When a bit is set the corresponding active output will flash Flashing only makes sense for signals and warning lamps See also CV34 and CV 35 CV 47 CV 559 contains the 6 least significant bits of the secondary decoder address that will be evaluated in mode 4 to control the selection of the pointer into the array of aspects This variable is only active in Mode 4 The most significant 3 bits of the secondary decoder address are taken from CV 9 so both the primary and secondary decoder address must be in same range sharing the same 3 most significant bits WDecN TN EN V2 1 01 09 2006 14 of 31 CV 48 CV 560 contains a bit mask which defines which outputs will be inverted This mask can be used to create alternating flash lights as required for cross roads CV48 can also be used to generate simple aspects in m

Download Pdf Manuals

image

Related Search

Related Contents

Backup - Newtunings.com  FC-301    EXPOSITION ITINÉRANTE Ici / ailleurs Coups de cœur    Beko D 6674 T Operating Instructions  Vinotemp WINE-MATE VINO-1500SSW User's Manual  取扱説明書 - 河合楽器製作所  Supermicro BPN-SAS-836TQ  

Copyright © All rights reserved.
Failed to retrieve file