Project

General

Profile

Javascript » History » Revision 3

Revision 2 (Torbjorn Carlqvist Admin, 09/01/2021 02:09 PM) → Revision 3/28 (Torbjorn Carlqvist Admin, 09/01/2021 02:14 PM)

h1. Javascript guide for DTXr code IDE 

 h2. print 

 Prints a message to footer log window as well as the automation.log file. 

 <pre><code class="javascript">print("hello");</code></pre> 

 h2. readProperty 

 Reads an object property value 
 Example below reads a present value from analog input object 0. 

 <pre><code class="javascript">Controller.readProperty(85343,analogInput,0,presentValue);</code></pre>