Interface

ContentObjectsSwitches



Switch Dialog Interface Tab.


Interface ID

If more than one Command Station (CS) is defined in Rocrail and the switch is not wired to the first (default) CS this field must be used to link this switch with a specific CS. Otherwise to be left blank!


Bus

See: Addressing


UID-Name

Alternative to the Bus number supported by:

  • BiDiB (String: Username)
  • RocNet → Must be set in case CTC is used and the Rocnetnode has a UID-Name.


Protocol

This is Command Station dependent.; Check the manual for details.


Address, Port

Addressing of accessories is described in the Practical Guide.
If the switch is statically (crossing) or only manually controllable, the address and port can be set to zero. (This switch object must be included in routes which run over it.)


Parameter, Value

Special settings for some Command Stations:


Single Gate

Decouplers, Servos and so on can use the gate parameter because they have only one coil/motor, 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.

  • Make sure the Wiring sensors, if used, are set accordingly to the invert state.


Switch time

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

Synchronise

Use the switch time to wait after the actual command to signal the switch as ready.

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, Z21, differentiate between accessory and other command types.
For all other systems this flag has no effect.

Type

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


Multiple switches at the same decoder output

In this case, one switch object in the track plan is assigned to a real decoder address.
The other switch object in the track plan get a virtual address and the Interface ID of the virtual CS.
Additionally established actions and action conditions ensure that the switching of the first switch and the second (virtual) switch object will be transmitted in the track plan.
See example: Gleichzeitig geschaltete Weichen (de)

Note:
In DCC232 and MCS2 and some hardware CS the accessory commands are reported. Both switch objects get the same address.
Then the establishment of actions and the virtual CS is not required.

For manual switches you can choose an address of 0 on your default controller. However, if you like to see the switch move on the screen, then you can use the virtual controller. In either case no commands are sent to the controller.


Partial list of CS that will work with multiple switches on the same decoder output

  1. Virtual, ECoS 2, DCC++

Partial list of CS that will not work with multiple switches on the same decoder output

  1. Hornby Elite, Zimo


Track driver

See also: Block Trackdriver Interface

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