Skip to main content

Vehicle Speed

Group: 0x02 Command: 0x02 0x02.0x02
info

East/West direction can't be changed with this command. It can be changed with Vehicle special function switch

Receiving

When receiving command 0x02 the 'Data' section will look like this:

NIDSpeed and directionDivisor
16 Bit16 Bit8 Bit

If Mode = 0b00, then the speed of the locomotive is requested with 'NID'.
If M = 0b01, then the speed of the locomotive is set to the transferred value with 'NID'.
If M = 0b11, then the locomotive responds with 'NID' to the request for its speed.
Speeds are always sent with 10 Bit, in the upper 6 Bit additional Flags are sent. The respective conversion into rail format is done in the TSE. The 'Divisor' value indicates a shunting divisor (e.g.: /2 or /4) for a finer shunting resolution.

Speed and direction flags

BitDescriptionValue description
0 ... 9Vehicle speed
10Direction instruction (client to MX10)'0' ➔ Forward
'1' ➔ Backward
11Current track direction (MX10 to client)'0' ➔ Forward
'1' ➔ Backward
12 ... 13Sideways direction (Last direction from RailCom)'0' ➔ Undefined
'1' ➔ East
'2' ➔ West
14Unused 🚧
15Vehicle Emergency Stop
note

For all track formats, the maximum ZIMO speed is 1008. Values > 1008 are automatically set to 1008.

Sending

When sending command 0x02 the 'Data' section will look like this:

Vehicle addressSpeed + directionValue
16 Bit16 Bit0x0000 - 16 Bit