MagicRail Slot Formats

RAM refresh stack

ByteName76543210
0SLOT_NUMBER
Slot number
Refers to NVRAM slot. Only active (COMMON and IN-USE) exist in RAM
1LOCO_ADRSPD28
Low 7 bits of loco decoder
2LOCO_ADR_HIGHSL_CONDN
7 high order bits of 14 bit LONG address
if 0 then DCC sends SHORT address
3SPEED_DIRSL_DIR
1 = forward
SL_CONDN=0 Speed as per NMRA values | SL_CONDN=1 Slot number of TOP engine in consist
4Timer
Inactivity counter. Set to max for every update to the slot. Decrements every 1.048576 seconds.

NVM (FRAM) full data

ByteName76543210
0STATUS1reserved
SL_CONUP
SL_BUSYSL_ACTIVE SL_CONDNAdvConreservedSPD28
 Combine with SL_CONDN
00 = FREE
01 = Last engine
10 = TOP
11 = MID
00 = FREE
01 = COMMON
10 = IDLE
11 = In use
  0 = basic consisting
1 = advanced consisting
copy SPD28 when making Digitrax version 0 = 28 step 3 byte packet
1 = 128 step mode
1LOCO_ADRreserved
Low 7 bits of loco decoder (0xBF ARG2)
2LOCO_ADR_HIGHreserved
7 high order bits of 14 bit LONG address
if 0 then DCC sends SHORT address
3SPEED_DIRSL_DIR
1 = forward
SL_CONDN=0 Speed as per NMRA values | SL_CONDN=1 Slot number of TOP engine in consist
4FUNC1reservedreservedreservedF0
Directional lighs
F4F3F2F1
5FUNC2F12F11F10F9SND4 / F8SND3 / F7 SND2 / F6SND1 / F5
6FUNC3F20F19F18F17F16F15F14F13
7FUNC4F28F27F26F25F24F23F22F21
8ID1reserved
Least significant 7 bits of throttle ID assigned
9ID2reserved
Most significant 7 bits of throttle ID assigned

Values of ID1/2

FromToSizeContent
HexID2ID1HexID2ID1
0x00000x000x000x00000x000x001NO ID
0x00010x000x010x00FF0x010x7F255PC usage
0x01000x020x000x01FF0x030x7F256System reserved
0x02000x040x000x3F7F0x7E0x7F15,744Throttle
0x3F800x7F0x000x3FFF0x7F0x7F128reserved