Interface

ContentObjectsSwitches



SwitchDialog Interface Tab.


Interface ID

If you have more than one Command Station you can use this field to link this switch with the CS you actually wired it with. Leave blank in case you have only one CS or when it is wired to the default CS. (First digint in the rocrail.ini)


Bus

See: Addressing


Protocol

It is system dependent if you should set this parameter, and is only from interest for SRCP, DDX, Dinamo and OpenDCC.


Address, Port

The addressing of accessores are described in chapter Addressing


Single Gate

Decouplers can use the gate parameter because they have only one coil, so one gate pair can serve two of them.

Example of two decouples on address 139, port 3:

OSwitch  0519 Switch [dc1] will be set to [straight]
OVirtual 0179 turnout 0139 3 straight   fada=1108 pada=0555 addr=139 port=3 gate=0 dir=0 action=0
OSwitch  0519 Switch [dc1] will be set to [turnout]
OVirtual 0179 turnout 0139 3 turnout    fada=1108 pada=0555 addr=139 port=3 gate=0 dir=0 action=1
OSwitch  0519 Switch [dc2] will be set to [straight]
OVirtual 0179 turnout 0139 3 straight   fada=1109 pada=0555 addr=139 port=3 gate=1 dir=1 action=0
OSwitch  0519 Switch [dc2] will be set to [turnout]
OVirtual 0179 turnout 0139 3 turnout    fada=1109 pada=0555 addr=139 port=3 gate=1 dir=1 action=1

The switch definitions used for the example:

<sw type="decoupler" id="dc1" iid="" addr1="139" port1="3" gate1="0" inv="false" singlegate="true" actdelay="false" delay="0" />
<sw type="decoupler" id="dc2" iid="" addr1="139" port1="3" gate1="1" inv="false" singlegate="true" actdelay="false" delay="0" />


Invert

To avoid creeping under your layout again and swap wires you can use this flag instead. :-)


Switch time

Some Command Stations allow to define a switch activation time. Check your manual for details. The time here is in ms.

Second Address pair

Those fields are enabled for threeway switches and double crossings for setting up the second motor or coil.


Accessory

Some systems, like BiDiB, make difference between accessory and other command types.
For all other systems this flag has no effect.

Type

Port type selection.
Some decoders, like BiDiB LightControl, provide different port types on the same local address.


Track driver

Supported Trackdriver Systems:

Interface ID

If you have more than one Command Station you can use this field to link this switch with the CS you actually wired it with. Leave blank in case you have only one CS or when it is wired to the default CS. (First digint in the rocrail.ini)

Address and Port

Check your manual of the Command Station on how to address a trackdriver output.

Enable

Set this flag if this block should be used as trackdriver.


Personal Tools