User Tools

Site Tools


text-gen-en

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
text-gen-en [2025/05/29 08:21] – [Switch Variables] rjversluistext-gen-en [2025/05/30 00:41] (current) – [User] rainerk
Line 166: Line 166:
 \\ \\
 \\ \\
-====Generel Variables====+=====Variables===== 
 +====General====
 |< >| |< >|
 ^ General ^^ ^ General ^^
Line 198: Line 199:
 | ''%desc%'' | The __**[[:actionctrl-en#description1 |Description]]**__ of the calling object. | | ''%desc%'' | The __**[[:actionctrl-en#description1 |Description]]**__ of the calling object. |
  
-====Loco Variables====+====Loco====
 |< >| |< >|
 ^ Loco & Car^^ ^ Loco & Car^^
Line 224: Line 225:
 | ''%operatorid%'' | Operator ID in case the loco has an assigned train | | ''%operatorid%'' | Operator ID in case the loco has an assigned train |
  
-====Car Variables====+====Car====
 |< >| |< >|
 ^ Car ^^ ^ Car ^^
Line 237: Line 238:
 | ''%waybilldest%'' | The destination of the assigned waybill to this car. | | ''%waybilldest%'' | The destination of the assigned waybill to this car. |
  
-====Switch Variables====+====Switch====
 |< >| |< >|
 ^ Switch ^^ ^ Switch ^^
Line 244: Line 245:
 | ''%swdesc%'' | Switch description (XmlScript foreach) | | ''%swdesc%'' | Switch description (XmlScript foreach) |
  
-====Output Variables====+====Output====
 |< >| |< >|
 ^ Output ^^ ^ Output ^^
-| %coid% | Output ID (XmlScript foreach) | +''%coid%'' | Output ID (XmlScript foreach) | 
-| %cotype% | Output type (XmlScript foreach) | +''%cotype%'' | Output type (XmlScript foreach) | 
-| %codesc% | Output description (XmlScript foreach) |+''%codesc%'' | Output description (XmlScript foreach) |
  
-====BiDi Variables====+====BiDi====
 |< >| |< >|
 ^ BiDi Code ^^ ^ BiDi Code ^^
-| %bidicode% | Loco or car **code** scanned by a sensor. |  +''%bidicode%'' | Loco or car **code** scanned by a sensor. |  
-| %bidicode2id% | Loco or car **ID** which match the scanned code by a sensor. |  +''%bidicode2id%'' | Loco or car **ID** which match the scanned code by a sensor. |  
-| %bidicode2img% | Loco or car code scanned by a sensor. \\ If a loco or car is found with this code the **image name**, if set, will replace the code text. | +''%bidicode2img%'' | Loco or car code scanned by a sensor. \\ If a loco or car is found with this code the **image name**, if set, will replace the code text. | 
  
-====Schedule Variables====+====Schedule====
 |< >| |< >|
 ^ Schedule ^^ ^ Schedule ^^
-| %lcscid% | Schedule ID | +''%lcscid%'' | Schedule ID | 
-| %lcscbk% | Schedule block ID | +''%lcscbk%'' | Schedule block ID | 
-| %lcscbkloc% | Schedule block location | +''%lcscbkloc%'' | Schedule block location | 
-| %lcschour% | Schedule departure hour | +''%lcschour%'' | Schedule departure hour | 
-| %lcscmin% | Schedule departure minute | +''%lcscmin%'' | Schedule departure minute | 
-| %lcscnextbk% | Schedule next block ID | +''%lcscnextbk%'' | Schedule next block ID | 
-| %lcscnextbkloc% | Schedule next block location | +''%lcscnextbkloc%'' | Schedule next block location | 
-| %lcscprevbk% | Schedule previous block ID | +''%lcscprevbk%'' | Schedule previous block ID | 
-| %lcscprevbkloc% | Schedule previous block location | +''%lcscprevbkloc%'' | Schedule previous block location | 
-| %callertext% | Content of the 'Text' field | +''%callertext%'' | Content of the 'Text' field | 
-| %lcscfirstlocation% | First location or block in the schedule | +''%lcscfirstlocation%'' | First location or block in the schedule | 
-| %lcsclastlocation% | Last location or block in the schedule |+''%lcsclastlocation%'' | Last location or block in the schedule |
  
-====Block Variables====+====Block====
 |< >| |< >|
 ^ Block ^^ ^ Block ^^
-| %bkid% | Block ID | +''%bkid%'' | Block ID | 
-| %bkloc% | Block location name | +''%bkloc%'' | Block location name | 
-| %bkdesc% | Block description | +''%bkdesc%'' | Block description | 
-| %frombkid% | Coming from block | +''%frombkid%'' | Coming from block | 
-| %frombkloc% | From block location name | +''%frombkloc%'' | From block location name | 
-| %frombkdesc% | Coming from block description | +''%frombkdesc%'' | Coming from block description | 
-| %bkmvspeed% | Speed measured in block (use it with state 'free'¹) | +''%bkmvspeed%'' | Speed measured in block use it with state 'free'((Hint: %bkmvspeed% will be updated on the in-event. The next event which can be used to trigger the update of the text is the change to status 'free'. If you trigger the update on other stati, you will get the last measured speed (which might differ from the actual one.)) | 
-| %bklen% | Block length | +''%bklen%'' | Block length | 
- +| ''%eventlcid%'' | Car that last triggered a block detector, depending on the status enter or fifoin | 
-====Turntable Variables====+====Turntable====
 |< >| |< >|
 ^ Turntable ^^ ^ Turntable ^^
-| %regval% | Bridge position. |+''%regval%'' | Bridge position. |
  
-====Sensor Variables====+====Sensor====
 |< >| |< >|
 ^ Sensor ^^ ^ Sensor ^^
-| %counter% | Number of state ON events. | +''%counter%'' | Number of state ON events. | 
-| %carcount% | Car counter. | +''%carcount%'' | Car counter. | 
-| %countedcars% | Counted cars. | +''%countedcars%'' | Counted cars. | 
-| %wheelcount% | Wheel counter. | +''%wheelcount%'' | Wheel counter. | 
-| %regval% | Register value. |+''%regval%'' | Register value. |
  
-====Booster Variables====+====Booster====
 |< >| |< >|
 ^ Booster ^^ ^ Booster ^^
-| %load% | Load in mA | +''%load%'' | Load in mA | 
-| %volt% | Voltage in mV | +''%volt%'' | Voltage in mV | 
-| %boostertemp% | Temperature in °C |+''%boostertemp%'' | Temperature in °C |
  
-====MVTrack Variables====+====MVTrack====
 |< >| |< >|
 ^ MVTrack ^^ ^ MVTrack ^^
-| %mvspeed% | Measured speed in KM/H | +''%mvspeed%'' | Measured speed in KM/H | 
-| %mvtrainlen% | Measured Train length in mm |+''%mvtrainlen%'' | Measured Train length in mm |
 | ''%reflcid%'' | Loco ID in case of calibrate (Text action) | | ''%reflcid%'' | Loco ID in case of calibrate (Text action) |
  
-====Text Variables====+====Text====
 |< >| |< >|
 ^ Text ^^ ^ Text ^^
-| $txtID | The text of a text object | +''$txtIDv'' | The text of a text object | 
-| @txtID | The text value of a text object. |+''@txtID'' | The text value of a text object. |
  
-¹) Hint: %bkmvspeed% will be updated on the in-event. The next event which can be used to trigger the update of the text is the change to status 'free'. If you trigger the update on other stati, you will get the last measured speed (which might differ from the actual one.) + 
- \\ +====User====
-====User Variables====+
 |< >| |< >|
 ^ User Variables ^^ ^ User Variables ^^
-| #varID or with Sub-ID #varID%lcid% | The integer value | +''#varID'' or with Sub-ID ''#varID%lcid%'' | The integer value | 
-| @varID | The text value of a variable. | +''@varID'' | The text value of a variable. | 
-| @@nvarID | The indexed, n=0...99, text value of a variable. The text value must be a comma separated list. | +''@@nvarID'' | The indexed, n=0...99, text value of a variable. The text value must be a comma separated list. | 
-| ##nvarID | The indexed, n=0...99, text value of a variable converted in an integer. (atoi) The text value must be a comma separated list. | +''##nvarID'' | The indexed, n=0...99, text value of a variable converted in an integer. \\ (atoi) The text value must be a comma separated list. | 
-| ~varID | A pointer to the variable text or value; Depends from XMLScript command: value=%%"~varID"%% or text=%%"~varID"%%  |+''~varID'' | A pointer to the variable text or value; Depends from XMLScript command: value=%%"~varID"%% or text=%%"~varID"%%  |
  \\  \\
  
-====Environment Variables====+====Environment====
 All defined environment variables can also be used:\\ All defined environment variables can also be used:\\
-//"Good morning %USER%."//\\ +//"Good morning ''%USER%''."//\\ 
-(consider in Windows: //%USERNAME%//)\\+(consider in Windows: ''%USERNAME%'')\\
  
 will be evaluated like this:\\ will be evaluated like this:\\
 //"Good morning rob."//\\ //"Good morning rob."//\\
  
-====Associating the action====+ \\ 
 +=====Associating the action=====
  
 The next step is to choose the object that will be associated with the action. \\ The next step is to choose the object that will be associated with the action. \\
Line 349: Line 350:
 ---- ----
  
-====Speak to me====+=====Speak to me=====
 {{ :text:loudspeaker.jpg}} {{ :text:loudspeaker.jpg}}
-===espeak===+====espeak====
  
 **espeaking the updated text** **espeaking the updated text**
text-gen-en.1748499678.txt.gz · Last modified: 2025/05/29 08:21 by rjversluis