User Tools

Site Tools


actionctrl-en

This is an old revision of the document!


Table of Contents

Action Control

Description

Action controls trigger actions when the states of Rocrail objects change. An action control is therefore not part of an action but can control one. An action control is part of the object that is used to trigger the action (eg sensor, switch, route)

The button for setting up an action control (trigger) is mostly found on the General tab of the Rocrail object to be used to control the action.

It is possible to have several actions controlled by the state change of one action control object It is possible to have one action triggered by the state change of several different action control objects

Before an action control can be set up , the action that is to be controlled must first be defined in Action Setup

Setup


The list contains the actions that are to be triggered.

UP/Down

Move the selected action control up or down in the list.

Copy

Copy the selected action control(s) to the clipboard as XML text.
This can also be pasted in a text editor for expert viewing. It can be manually modified and re-copied to the clipboard.

The listbox is multi selectable to enable copying of more then one action control.

Paste

Add the action control(s) from the clipboard to the list.

ID

An action ID can be selected from a dropdown list of all previously defined actions in Action Setup.

State

The state value entered here is the state that the action control object (trigger) has to change to for the action to be triggered.

Depending on the action control object being used, only the states available for that object will be presented in the dropdown field as listed below:
The field can be edited with additional parameters (count, track number etc.) if necessary.


Object State Remark
Sensor on, off, true, false,<count>3,shorton,longon4,regval
Output on, active, off,shorton,longon4, longclick Output objects do not contain loco information.
Switch turnout, straight, left, right, none, lock, unlock Use "none" if the action should not activated by left-clicking on the accessory (switch) object, but only from it's command menu.
Signal red, yellow, green, white, blank, blockstate, aspect number
Loco home, forwards, reverse, diesel, steam, electric, battery, min, mid, cruise, max, fon, foff, +, -, #, x, light, lightgoods, local, goods, post, ice, mixed, regional, shuntingon/off, cleaning, none, service, commuter, class, schedule:, idle, wait, auto, run, manual, automatic, stop, stall, f1-f28, eventtimeout, eventtimeoutreset
actionctrl-en.1766238377.txt.gz · Last modified: 2025/12/20 14:46 by babbel