Difference between revisions of "Command set"
From wiki-en
(Created page with "=Code für DC-Car-Modus= Um ein DC-Car mit einem PC selber steuern zu können wird ein '''DC-Car-PC-Sender''' benötigt und dieser Code.<br> [http://www.modellautobahnen.d...") |
m (→Code für DC-Car-Modus) |
||
Line 1: | Line 1: | ||
− | =Code | + | =Code for DC-Car-Mode= |
− | + | To be able to control a DC-Car with a PC you need a '''[[PC-Transmitter]]''' and this code. <br> | |
[http://www.modellautobahnen.de/download/dc-car-pc-sender/WDP_DC-Car_Steuerung2.pdf WDP_DC-Car_Steuerung2.pdf] | [http://www.modellautobahnen.de/download/dc-car-pc-sender/WDP_DC-Car_Steuerung2.pdf WDP_DC-Car_Steuerung2.pdf] | ||
− | == | + | == Requirement vehicle setting == |
− | + | The value 24 is set in the CV21 of the DC-Car decoder. <br> | |
− | ( | + | (The default value is 4 for DC-Car Boosters.) <br> |
− | == | + | == Requirement Interface speed == |
− | + | Serial port setting 9600 bps, 8 bit, ODD parity, 2 stop bits <br> | |
− | == | + | ==Instruction set== |
− | + | 3 bytes are always sent as a block: <br> | |
− | <table | + | <table border = 1> |
− | < | + | <Tr> <td> first Byte = Lower address </ td> <td> 00AAAAAA </ td> <td> Address 0-63 </ td> </ tr> |
− | < | + | <Tr> <td> second Byte = High Address and Switch Group 1 </ td> <td> 0100AAAA </ td> <td> Address 64-1023 </ td> |
− | </ | + | </ Tr> |
− | < | + | <Tr> <td> second Byte = High Address and Switch Group 2 </ td> <td> 0110AAAA </ td> <td> Address 64-1023 </ td> </ tr> |
− | < | + | <Tr> <td> third Byte = Command light with the bit sequence </ td> <td> 10CCCCCC </ td> <td> Output 1-5 </ td> </ tr> |
− | < | + | <Tr> <td> third Byte = Command Motor with the bit sequence </ td> <td> 11MM1MMM </ td> <td> Speed step 0-28 </ td> </ tr> |
− | </ | + | </ Table> |
<br> | <br> | ||
− | + | With byte 1 and 2 you can address up to 1023 cars. <br> | |
− | + | In addition, the function group is switched over with it. <br> | |
===Funktionsausgänge 3. Byte=== | ===Funktionsausgänge 3. Byte=== | ||
<table border=1> | <table border=1> |
Revision as of 19:58, 12 January 2018
Contents
Code for DC-Car-Mode
To be able to control a DC-Car with a PC you need a PC-Transmitter and this code.
WDP_DC-Car_Steuerung2.pdf
Requirement vehicle setting
The value 24 is set in the CV21 of the DC-Car decoder.
(The default value is 4 for DC-Car Boosters.)
Requirement Interface speed
Serial port setting 9600 bps, 8 bit, ODD parity, 2 stop bits
Instruction set
3 bytes are always sent as a block:
first Byte = Lower address </ td> | 00AAAAAA </ td> | Address 0-63 </ td> </ tr> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
second Byte = High Address and Switch Group 1 </ td> | 0100AAAA </ td> | Address 64-1023 </ td>
</ Tr> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
second Byte = High Address and Switch Group 2 </ td> | 0110AAAA </ td> | Address 64-1023 </ td> </ tr> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
third Byte = Command light with the bit sequence </ td> | 10CCCCCC </ td> | Output 1-5 </ td> </ tr> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
third Byte = Command Motor with the bit sequence </ td> | 11MM1MMM </ td> | Speed step 0-28 </ td> </ tr>
</ Table>
Funktionsausgänge 3. Byte
Fahrstufe 3. Byte
|