Version 3 has been released!

{CAB} command

Set a loco cab control data item when used with model train control software.

Syntax

{CAB} property value

  • property - the name of the property data being sent. Note: these property types are case sensitive.
  • value - the new value. To set multiple values that may vary in number, (Eg for a menu), separate the items with ␒ characters
From layout software only
  • L Track speed Limit Eg 80
  • H Signal aspect Eg Hp2Vr0
  • S speed DC2 desired speed   (-1 means no desired speed)
  • I image
    • image file name (can be fetched via HTTP from Bw)
    • ambient override 0 = no override, 1 = do not darken
    • signal x position within image  
    • signal y position within image
    • signal height
  • F Function name list
  • f Function state list
  • A Ambient light color value
  • LP Loco properties (separated by ␑)
    • Type ␑ 0=Steam 1=Diesel 2=Electric 3=Battery
    • Speed limit forwards
    • Speed limit forwards
    • Description
  • Km Locomotive Odometer reading
  • PZB send Punktzugbeeinflüssung data 
    • 1000Hz Indusi
    • 500Hz Indusi
    • 2000Hz Indusi
    • Befehl ␑ 1 = Befehl 40 on, 0 = Befehl 40 off
    • U - Lower braking category
    • M - middle braking category
    • O - Upper braking category
From CAB or layout software
  • D Direction 1 = forwards 0 = reverse
  • n Function state Eg 5 ␑ 1 means f5 is on
  • P Power 0 = Power off, 1 = Power on, 2 = halt on
  • 8 Ignore s88 0 = off 1 = on
  • M Manual control 0 = off 1 = on
From CAB only
  • T Train number = register the cab with that train -1 = release train. Get the list with {LT}
  • CS set current speed  (ignored if not under manual control)
  • S Emergency stop train
  • d Dispatch station DC1 track DC1 destination station number
  • k Set k83/4. Address ␑ R/G
One CAB is allowed per device, so no need for channel information on every command. (Can still have additional channels that are not CABs)

{CAB} commands can be sent and received from the RemoteSign.

For example:
{CAB} S ␑ 23 ␑ 40
{CAB} F ␑ lights ␒ smoke
{CAB} f ␑ 1 ␑ 1
{CAB} I ␑ http://example.com/images/34.jpg
{CAB} H ␑ Vr0
{CAB} D ␑ 0
{CAB} L ␑ 8

Example conversation between server (right) and RemoteSign with a cab control (left)

CAB RemoteSign
Layout software
{CH}1 ␑ CAB
{LT} Train 1 ␒ Train 2 ␒ Train 3
{CAB}T ␑ 2
{CAB}F ␑ lights ␒ smoke
{CAB}f ␑ 1 ␑ 1
{CAB}S ␑ 23 ␑ 40
{CAB}I ␑ http://example.com/images/34.jpg
{CAB}H ␑ Vr0
{CAB}D ␑ 0
{CAB}L ␑ 80
{CAB}G ␑ 80
{CAB}S ␑ 24 ␑ 80
{CAB}I ␑ http://example.com/images/35.jpg
{CAB}H

Overview and list of all RemoteSign commands: API reference

Supported by: