Javascript » History » Version 3
Torbjorn Carlqvist Admin, 09/01/2021 02:14 PM
| 1 | 2 | Torbjorn Carlqvist Admin | h1. Javascript guide for DTXr code IDE |
|---|---|---|---|
| 2 | 1 | Torbjorn Carlqvist Admin | |
| 3 | 2 | Torbjorn Carlqvist Admin | h2. print |
| 4 | |||
| 5 | Prints a message to footer log window as well as the automation.log file. |
||
| 6 | |||
| 7 | <pre><code class="javascript">print("hello");</code></pre> |
||
| 8 | 3 | Torbjorn Carlqvist Admin | |
| 9 | h2. readProperty |
||
| 10 | |||
| 11 | Reads an object property value |
||
| 12 | Example below reads a present value from analog input object 0. |
||
| 13 | |||
| 14 | <pre><code class="javascript">Controller.readProperty(85343,analogInput,0,presentValue);</code></pre> |