actionctrl-en
Differences
This shows you the differences between two versions of the page.
— | actionctrl-en [2023/10/20 08:14] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== 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 [[: | ||
+ | |||
+ | |||
+ | ===== Setup ===== | ||
+ | {{: | ||
+ | The list contains the actions that are to be triggered. | ||
+ | \\ | ||
+ | ====UP/ | ||
+ | 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 [[: | ||
+ | ==== 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,< | ||
+ | | Output | on, active, off, | ||
+ | | Switch | turnout, straight, left, right, none, lock, unlock | Use " | ||
+ | | 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, shunting, cleaning, none, service, commuter, class, schedule:, idle, wait, auto, run, manual, automatic, stop, stall, f1-f28, __**[[: | ||
+ | | Block | ghost, enter, occupied, reserved, free, closed, open, depart¹, acceptident< | ||
+ | | Staging block | ghost, enter, occupied, reserved, free, closed, depart< | ||
+ | | Route | go, lock, unlock | " | ||
+ | | Schedule | //leave blank// | | | ||
+ | | Turntable | goto < | ||
+ | | System | go-cmd, go-event, stop-cmd, stop-event, stoplocs, save, shutdown, analyse, reset, ebreak, init, initready, short-circuit, | ||
+ | | Text | //leave blank// | the action is raised when [[: | ||
+ | | Booster | load, short circuit | | | ||
+ | | MVTrack | in | | | ||
+ | | Variable | See __**[[: | ||
+ | | Weather | sunrise, noon, sunset | | | ||
+ | | Location | scheduleupdate, | ||
+ | |||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | :!: All state values are __case sensitive__.\\ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ==== Sub state ==== | ||
+ | The sub state is used in combination with: | ||
+ | * Staging block and " | ||
+ | * Loco function " | ||
+ | * Car function " | ||
+ | * Loco energy "high, middle, low". | ||
+ | \\ | ||
+ | |||
+ | ====Duration==== | ||
+ | //In 100ms units//\\ | ||
+ | If set greater then zero this value will overwrite the __**[[: | ||
+ | |||
+ | ====Timer==== | ||
+ | //In milliseconds// | ||
+ | If set greater then zero this value will overwrite the __**[[: | ||
+ | |||
+ | ====Locomotive==== | ||
+ | Can be use to set the loco ID for specific objects which do not have any loco information like outputs.\\ | ||
+ | Usually left blank for most action control definitions.\\ | ||
+ | * Block objects overwrite this value with the loco ID which has reserved it. | ||
+ | * Sensor objects overwrite this value with the identifier if detected. (RFID, Railcom...) | ||
+ | **Note:**// This field may show the last value used for this action after a restart of Rocrail.// | ||
+ | \\ | ||
+ | ====Description==== | ||
+ | Optional description for use in the __**[[: | ||
+ | \\ | ||
+ | |||
+ | ====Parameter==== | ||
+ | // | ||
+ | Optional parameter(s), | ||
+ | Variable naming for the parameter(s) are " | ||
+ | {{: | ||
+ | \\ | ||
+ | ====Reset==== | ||
+ | Reset the counter in case of a sensor object.\\ | ||
+ | If this option is not set, the counter will continue and actions defined for a higher counter value can be triggered. | ||
+ | For the action to be triggered with the highest counter value this option must be set otherwise actions requiring a lower counter value will not be triggered. | ||
+ | |||
+ | \\ | ||
+ | ====All conditions must be true==== | ||
+ | At default all defined conditions of this action control must be all true.\\ | ||
+ | By disabling this option only one of the conditions must be true.\\ | ||
+ | |||
+ | \\ | ||
+ | ====At Command/ | ||
+ | For switch, outputs and signal objects to define if actions will be checked at a command and/or at an event.\\ | ||
+ | Events are usually generated by the command station.\\ | ||
+ | If both options are enabled, and the command station also generates events after commands, the actions will be checked twice.\\ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ==== Mode ==== | ||
+ | ===Automatic=== | ||
+ | The action will only be triggered in automatic mode | ||
+ | |||
+ | === Manually === | ||
+ | The action will only be triggered in manual mode | ||
+ | |||
+ | === Both === | ||
+ | The action will be triggered in both automatic and manual modes\\ | ||
+ | \\ | ||
+ | ==== Buttons ==== | ||
+ | |||
+ | === Add === | ||
+ | The selected type and ID will be added to the list | ||
+ | |||
+ | === Delete === | ||
+ | The object selected in the list will be deleted | ||
+ | |||
+ | === Modify === | ||
+ | Changes to an object must be confirmed with this button.\\ | ||
+ | |||
+ | |||
+ | |||
+ | \\ | ||
+ | =====System-Actions===== | ||
+ | |||
+ | In **Roview Table Menu-> System-Actions** Actions can be set, which are triggered by **Rocrail system events**\\ | ||
+ | The same actions and conditions can be used as in objects.\\ | ||
+ | System events = system states: see table above __**[[actionctrl-en# | ||
+ | \\ | ||
+ | The typical use-case for system actions is to set actions to a defined state when starting a Rocrail session. | ||
+ | \\ | ||
+ | \\ | ||
+ | Some Examples: | ||
+ | * set all buttons in the plan on " | ||
+ | * start a XML-script with the event " | ||
+ | * set a output if " | ||
+ | * .... | ||
+ | =====Common Buttons===== | ||
+ | __**[[rocview-common-buttons-en|Common Buttons]]**__ |