Command set
From wiki-en
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
|