User Tools

Site Tools


xmlscripting:xmldb-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
xmlscripting:xmldb-en [2020/04/27 15:55] – [Sleep Command] rjversluisxmlscripting:xmldb-en [2023/03/10 15:06] (current) – [General XML Script Examples] rjversluis
Line 4: Line 4:
   * [[:actions-en|Action Setup]] | [[:actionctrl-en|Action Control]] | [[:actioncond-en|Action Condition]] | **[[:xmlscripting-en|XML Scripting]]** | [[:action-example-en|Example]]   * [[:actions-en|Action Setup]] | [[:actionctrl-en|Action Control]] | [[:actioncond-en|Action Condition]] | **[[:xmlscripting-en|XML Scripting]]** | [[:action-example-en|Example]]
     * Examples:     * Examples:
-      * **[[:xmlscripting:xmldb-en|General]]** | [[:micha68:virtualfbscript-en|Virtual Sensors]]+      * **[[:xmlscripting:xmldb-en|General]]** | [[:userpages:micha68:virtualfbscript-en|Virtual Sensors]]
  
  
Line 25: Line 25:
 | <lc cmd="useschedule" scheduleid="Nirvana"/>         | <lc id="V200" cmd="useschedule" scheduleid="Nirvana"/>  | set the schedule to the tx1 Textfield Text            | <lc cmd="useschedule" scheduleid="Nirvana"/>         | <lc id="V200" cmd="useschedule" scheduleid="Nirvana"/>  | set the schedule to the tx1 Textfield Text           
 | <lc cmd="go"/>                                       | <lc id="@var6" cmd="stop"/> or <lc id="$tx1" cmd="stop"/> | Loc @var6 or Loc $tx1 start/stop                    | <lc cmd="go"/>                                       | <lc id="@var6" cmd="stop"/> or <lc id="$tx1" cmd="stop"/> | Loc @var6 or Loc $tx1 start/stop                   
-| <lc cmd="velocity" V="5"/>                           | <lc id="V200" cmd="velocity" V="5"/>                    | set the velocity to 5                                | +| <lc cmd="velocity" v="5"/>                           | <lc id="V200" cmd="velocity" v="5"/>                    | set the velocity to 5                                | 
 | -not available- (only one loc can be in a a block)   | <lc id="loco1" cmd="block" blockid="b1"/>               | puts the loc with ID loco1 in Block "b1"              | -not available- (only one loc can be in a a block)   | <lc id="loco1" cmd="block" blockid="b1"/>               | puts the loc with ID loco1 in Block "b1"             
 | -not available- (only one loc can be in a a block)   | <lc bkid="bk1" ... /> or <lc bkid="@var6" ... /> or <lc bkid="$tx1" ... />                                     | the lcid of the loc in Block bk1 / @var6 (Variabletext)  /$tx1 (Textfieldtext)     | | -not available- (only one loc can be in a a block)   | <lc bkid="bk1" ... /> or <lc bkid="@var6" ... /> or <lc bkid="$tx1" ... />                                     | the lcid of the loc in Block bk1 / @var6 (Variabletext)  /$tx1 (Textfieldtext)     |
Line 83: Line 83:
  
 ====Sleep Command==== ====Sleep Command====
-Example ^ Remarks ^   +Within foreach table loops (sleep will be done every loop!) ^ Within if (ID is required) ^ Remarks ^   
-| <sleep time="10"/>                  | the script is paused by 10ms    +| <sleep time="10"/>                      | <sleep time="10"/>                  | the script is paused by 10 (max. 100ms allowed, values greater than 100ms will be set to 100)     
-| <sleep time="#varSleep"/>           | the script is paused by the value of the variable varSleep | +| <sleep time="#varSleep"/>               | <sleep time="#varSleep"/>           | the script is paused by the value of the variable varSleep (max. 100ms)                           
 \\ \\
 \\ \\
xmlscripting/xmldb-en.1587995738.txt.gz · Last modified: 2020/04/27 15:55 by rjversluis