Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
devices_scripting [2020/05/12 21:15] wikiadmin created |
devices_scripting [2025/01/03 10:02] (current) wikiadmin |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | !%blue%Scripting with TransSECS Devices | + | ====Scripting with TransSECS Devices==== |
- | To write a value to a server in the devices the format is: | + | [[Scripting for PLC Servers]] |
+ | (Read/Write values | ||
+ | [[" | ||
+ | (Setting Server outputs and values) | ||
- | '' | + | [[Checking Quality on an incomingValue Triggering a Script]] |
+ | [[devices_databases|Scripting for Databases]] | ||
+ | (Recipe Management) | ||
- | For example, | + | [[Scripting |
- | <code javascript> | + | |
- | /Devices/ | + | |
- | </ | + | |
- | TransSECS is thread safe and so you can create threads in a script. | + | [[Setting |
- | <code javascript> | + | [[Storing Reports and Events to a Log File]] |
- | var Thread = Java.type(" | + | |
- | var Runnable = Java.type(" | + | |
- | // declare our thread | + | [[FTP File Upload Example]] |
- | this.thread = new Thread(new Runnable(){ | + | |
- | run: function () { | + | |
- | / | + | |
- | print(" | + | |
- | } | + | |
- | }); | + | |
- | + | ||
- | // start our thread | + | |
- | this.thread.start(); | + | |
- | </ | + |