Through the menu item “Start Z21 Central,” the PC version of the CTC App can activate the emulation of a Z21 central unit. In this case, the CTC App responds to commands received via the Z21 WLAN protocol and forwards them to CTC modules.

Notes:

  • Starting with CTC App version 4.05, it is possible to control the speed and functions of a locomotive.
  • Starting with CTC App version 4.06, turnouts can also be switched.
  • We have tested with Roco’s WLAN mouse and Roco’s Z21 Android app.

Set Locomotive Address

The locomotive address is set by opening the config of the locomotive and adding the parameter “dccAddr” to the main motor:

Config Locomotive Address

Assign Locomotive Function

To assign locomotive functions to the DCC function numbers, go to the config of the locomotive. There, you select the function to be linked with a DCC function and add the parameters “dccFx+” and “dccFx-“, where “x” stands for the function number. Then set the value of the StateScript at “dccFx+” for “function on” and at “dccFx-“ for “function off.”

In the example, DCC F0 was assigned to the function “Light” and specified that it should call script “1” (on) when on and script “0” (off) when off:

Config Locomotive Function

Driving Locomotive

Once the Z21 central is started and the hand controller is configured to the IP address of the CTC App, all CTC locomotives with a “dccAddr” can be controlled.

The DCC address is displayed under “Locomotives” in the column “Nr.” starting with CTC App version 4.06.

Note: The locomotive can only be controlled if it is set to manual control in the CTC App.

Set Turnout Address

The turnout address is set by opening the config of the turnout and adding the parameter “dccAddr” to the function:

Config Turnout Address

The scripts of the function are assigned in the order indicated by “Button Position”:

  • 0 for dccAddr “off”
  • 1 for dccAddr “on”
  • All others for the “on” state of the addresses following dccAddr. In the screenshot above, address 31 “on” is for the script at position 2 (“right”).