Project

General

Profile

Actions

Javascript » History » Revision 5

« Previous | Revision 5/28 (diff) | Next »
Torbjorn Carlqvist Admin, 09/01/2021 02:19 PM


Javascript guide for DTXr code IDE

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

print("hello");

readProperty - Reads an object property value

//Reads a present value from analog input object 0.
Controller.readProperty(85343,analogInput,0,presentValue);

//Use the result to print and in logic
res = Controller.readProperty(85343,analogInput,0,presentValue);
print(res);
if ( res > 0 ){
  print("value larger than 0!");
}

Updated by Torbjorn Carlqvist Admin over 3 years ago · 5 revisions