<elekdra.signal>

back to index
Configuration for general signal

Description

This holds the configuration for a signal. For commanding you must define either loconet or script, not both.

Sub tags

Tag Description
<name>
Type: String
Cardinality: once
name of signal
Name of the signal for identification for example by Reference in a <elekdra.route>.
<loconet>
Type: Loconet
Cardinality: optional [0..1]
LocoNet Connection
Configuration for commanding via LocoNet
<script>
Type: ScriptUsage
Cardinality: optional [0..1]
Script Usage
Configuration for commanding via a user supplied script. See details on this page. The script will see the following variables set by Elekdra. Any additional information like an address must be defined as variables in the ScriptUsage by the user.
signal_name
The <name> of this element
new_signal_state
The actual state of this mandatory signal at the time of script execution
old_signal_state
The state of this mandatory signal when the script ran the last time. On the very first execution, this is initialized to SIGNAL_DEAD
If a distant signal (<elekdra.distantsignal>) references this mandatory signal in its <mast> tag, and it is not configured with its own <script> or <loconet>, this script is also executed for state changes of the distant signal. In this case, the following symbols are also present:
distantsignal_name
The <name> of this element
new_distantsignal_state
The actual state of the signal at the time of script execution
old_distantsignal_state
The state when the script ran the last time. On the very first execution, this is initialized to SIGNAL_DEAD
<dependent_signal>
Type: DependentSignal
Cardinality: once
Configuration for dependent signal
Configuration for dependent signal
<selfoperating_target>
Type: String
Cardinality: once
Route Target for automaic operation
If set, signal automatic tries to set route to that target, when possible. (Selfblock)
<myFile>
Type: File
Cardinality: once
<identifyableKey>
Type: String
Cardinality: once

Generated by ConfigFileDocumentationGenerator Valid HTML 4.01 Transitional