User Tools

Site Tools


lua:scripts_editor

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
lua:scripts_editor [2022/01/13 11:08] emozolyaklua:scripts_editor [2022/05/27 12:16] (current) – [Property area (2)] emozolyak
Line 1: Line 1:
-{{ :menu-icon-scripts.png?direct&40}}+{{ network:menu-icon-scripts.png?direct&40}}
 ===== Scripts Editor ===== ===== Scripts Editor =====
  
Line 12: Line 12:
  
 <wrap em>As of 4.0 fw verstion there is a global search box above the script list:</wrap> <wrap em>As of 4.0 fw verstion there is a global search box above the script list:</wrap>
-{{ :lua:script_global_search_box.png?direct&600 |}}+{{ :lua:script_global_search_box.png?direct&400 |}}
  
 The main editor's window: The main editor's window:
Line 18: Line 18:
  
 ====  Script list (1) ==== ====  Script list (1) ====
-{{ :modified_disabled_script2.png?600 |}}+{{ network:modified_disabled_script2.png?600 |}}
  
 In the example list provided, the script titles are named as accroding to their possible execution types. In the example list provided, the script titles are named as accroding to their possible execution types.
Line 34: Line 34:
 You can set here **name** for the script, select **type**, **disable** or **enable** it and give short **description**.  You can set here **name** for the script, select **type**, **disable** or **enable** it and give short **description**. 
  
-There are 5 **types** of scripts:+There are types of scripts:
   ***Execute in every loop** - script runs in every scan after reading registers in connections   ***Execute in every loop** - script runs in every scan after reading registers in connections
   ***Script for dashboard** - script runs upon clicking the button with this script “attached” to it   ***Script for dashboard** - script runs upon clicking the button with this script “attached” to it
Line 40: Line 40:
   ***Script for calendar** - the script is set as start or end task action in the calendar   ***Script for calendar** - the script is set as start or end task action in the calendar
   ***Execute once on project start** - runs one time on the very first scan during project start   ***Execute once on project start** - runs one time on the very first scan during project start
 +  ***Library for other programs** - the library body is included into another scritps with the command <code lua> 
 +--[[ Please note that library code should have only functions and variable declaration, not the main() function.--]] 
 +
 +include "myLibName" </code>
  
 ==== Editor (3) ==== ==== Editor (3) ====
lua/scripts_editor.1642072110.txt.gz · Last modified: 2022/01/13 11:08 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki