<t «loco» [«tSpeed» «direction»]>
Request or set loco status¶
Serial commands to request information about a loco or set its speed and direction
Commands¶
<t «loco»>Request a deliberate update on the loco speed/functions<t «loco» [«tSpeed» «direction»]>Set a loco's speed and direction
Parameters¶
- loco Required
Loco to request information about a loco or set its speed and direction - tSpeed:
0-127or-1for Emergency Stop - direction - one of:
1= forward0= reverse
Response¶
The following are not a direct response, but rather a broadcast that will be triggered as a result of any track manager changes.
<l «loco» «reg» «speedByte» «functMap»>
- loco = DCC Address of the decoder/loco. The short (1-127) or long (128-10293) address of the engine decoder (this has to be already programmed in the decoder)
- reg not used. We no longer use this but need something here for compatibility with legacy systems. Enter any single digit.
- speedbyte:** Speed in DCC speedstep format
- reverse -
2-127= speed1-126,0= stop,1= Emergency Stop - forward -
130-255= speed1-126,128= stop,129= Emergency Stop
- reverse -
- FunctMap individual function states represented by the bits in a byte
Notes¶
- The speedbyte value is different to the speed sent, as it is an encoded (1,7 bits) byte.
- This starts a reminder process for any external updates to the loco's status.
<t «reg» «loco» «speed» «direction»>is a depricated version of the command. It is not documented here.
Examples¶
Example Commands¶
- TODO LOW - Example Commands
Example Responses¶
- TODO LOW - Example Responses