User Tools

Site Tools


actions-en

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
actions-en [2019/03/01 01:37]
rainerk
actions-en [2020/11/02 07:44] (current)
rjversluis
Line 10: Line 10:
 ====Table column headers==== ====Table column headers====
 **ID:** The unique action ID\\ **ID:** The unique action ID\\
-**Description:​** This is a free text to describe the action more clearly.\\+**Description:​** This is a free text to describe the action more clearly. In case of no description this column will be used to Command::​Parameter. \\
 **Type:** The type abbreviation (see table below). The type is set in the tab Definition.\\ **Type:** The type abbreviation (see table below). The type is set in the tab Definition.\\
  
Line 94: Line 94:
 | Staging block | sb | Staging block | unlock, white, yellow, green, red, open, closed, exitopen, exitclosed, compress | //unlock ID// | The color commands will set the exit signal defined for this block. \\ open/closed are for enter side. | | Staging block | sb | Staging block | unlock, white, yellow, green, red, open, closed, exitopen, exitclosed, compress | //unlock ID// | The color commands will set the exit signal defined for this block. \\ open/closed are for enter side. |
 | Locomotive | lc | Locomotive | go, stop, velocity, velocity2, percent dispatch, swap, blockside, carcount, min, mid, cruise, max, consist, assigntrain,​ releasetrain,​ binstate_on,​ binstate_off,​ class, x-go, pomwrite, Vvar | //go: tour, schedule, location or block ID (A variable can also be used instead of a fixed name.)\\ velocity¹: percentage of current set velocity¹\\ velocity2: speed of secondary decoder\\ carcount: number of cars or reset to 0\\ consist: locoID[,​locoID]...\\ binstate: output number \\ x-go: comma separated list of loco addresses or ID's hard coded or with variables.\\ pomwrite: cv,value\\ Vvar: user automobile velocity// | Leave the parameter field empty to reset a consist. \\  If no loco is found and the parameter field contains a #variable a loco will be searched by address. This option disable further parameters. \\ In case a destination is set at the GO action: __**[[:​automatic-en#​running_to_a_defined_destination|Read this!]]**__ | | Locomotive | lc | Locomotive | go, stop, velocity, velocity2, percent dispatch, swap, blockside, carcount, min, mid, cruise, max, consist, assigntrain,​ releasetrain,​ binstate_on,​ binstate_off,​ class, x-go, pomwrite, Vvar | //go: tour, schedule, location or block ID (A variable can also be used instead of a fixed name.)\\ velocity¹: percentage of current set velocity¹\\ velocity2: speed of secondary decoder\\ carcount: number of cars or reset to 0\\ consist: locoID[,​locoID]...\\ binstate: output number \\ x-go: comma separated list of loco addresses or ID's hard coded or with variables.\\ pomwrite: cv,value\\ Vvar: user automobile velocity// | Leave the parameter field empty to reset a consist. \\  If no loco is found and the parameter field contains a #variable a loco will be searched by address. This option disable further parameters. \\ In case a destination is set at the GO action: __**[[:​automatic-en#​running_to_a_defined_destination|Read this!]]**__ |
-| Function ​  | fn | Locomotive\\ Car\\ Operator³ | on, off, flip | //function number (just the number, like 1, not f1 for function 1) or the __**[[loc-fun-en#​description|function text (Description)]]**__ (Case sensitive).//​\\ A function csv list like "​1,​2,​3"​. If the list starts with a question mark, "?​1,​2,​3",​ it will pick randomly one function. (Do not include the quots in the action definition.)| Only one active timed function is supported. Multiple will show unpredictable results. Flip will turn on the function when it was off and vice versa. Flip does noet support timed functions. |+| Function ​  | fn | Locomotive\\ Car\\ Operator³ | on, off, flip | //function number (just the number, like 1, not f1 for function 1) or the __**[[loc-fun-en#​description|function text (Description)]]**__ (Case sensitive).//​\\ A function csv list like "​1,​2,​3"​. If the list starts with a question mark, "?​1,​2,​3",​ it will pick randomly one function. (Do not include the quots in the action definition.) \\ Prefix the list with a '​!'​ to activate Shift.(Can not be used in combination with '?'​.) | Only one active timed function is supported. Multiple will show unpredictable results. Flip will turn on the function when it was off and vice versa. Flip does noet support timed functions. |
 | Turntable ​  | tt | Turntable | 0...47, 180, on, off, lighton, lightoff | //track number (0...47) or function (on/off)// | | | Turntable ​  | tt | Turntable | 0...47, 180, on, off, lighton, lightoff | //track number (0...47) or function (on/off)// | |
 | Fiddle Yard   | seltab | Fiddle Yard | goto | //track number// | | | Fiddle Yard   | seltab | Fiddle Yard | goto | //track number// | |
Line 127: Line 127:
 Extra parameters are ignored.\\ Extra parameters are ignored.\\
  
-==Example: Sound playback with VLC==+==VLC== 
 +**Example: Sound playback with VLC** 
 Install **[[https://​www.videolan.org/​vlc/​|VLC]]**.\\ Install **[[https://​www.videolan.org/​vlc/​|VLC]]**.\\
 Define an action:\\ Define an action:\\
Line 133: Line 135:
 Leave default “Double quote” and “Asynchrone” unchanged.\\ Leave default “Double quote” and “Asynchrone” unchanged.\\
 Command: “C:​\Program Files (x86)\VideoLAN\VLC\vlc.exe” or the path where VLC is installed.\\ Command: “C:​\Program Files (x86)\VideoLAN\VLC\vlc.exe” or the path where VLC is installed.\\
-Parameter: “C:​\sound\Aarau1_Irina.mp3 ​play-and-exit ​qt-start-minimized ​qt-notification=0”.\\+Parameter: “C:​\sound\Aarau1_Irina.mp3 ​''​-''''​-''​play-and-exit ​''​-''''​-''​qt-start-minimized ​''​-''''​-''​qt-notification=0”.\\ 
 + 
 +Explanation of the parameters:​\\ 
 +''​C:​\sound\Aarau1_Irina.mp3''​ - the Sounddatei (here a “mp3”) which shall be played.\\ 
 +''​%%--%%play-and-exit''​ - the program VLC is started, the sound played back and the program closed.\\ 
 +''​%%--%%qt-start-minimized''​ - no display of a window.\\ 
 +''​%%--%%qt-notification=0''​ - Windows plays back no other sound.\\
  
-Explanation of the parameters+Further ​parameters:​\\ 
-“C:\sound\Aarau1_Irina.mp3” - the Sounddatei (here a “mp3”) which shall be played.\\ +''​%%--%%gain=x.xxx'' ​playback volumewhere x.xxx can be in the range 0.0 to 8.0.
-”–play-and-exit” ​the program VLC is started, the sound played back and the program closed.\\ +
-”–qt-start-minimized” - no display of a window.\\ +
-”–qt-notification=0” - Windows plays back no other sound.\\+
  
 The action can be triggered by a block or a feedback.\\ The action can be triggered by a block or a feedback.\\
actions-en.1551400667.txt.gz · Last modified: 2019/03/01 01:37 by rainerk