Closed socramone closed 5 years ago
Hi,
values
is a Javascript object, so if you want to access the value of TEST5
, you could do either
if (values.TEST5 == 1) {
//do sth
}
or
if (values["TEST5"] == 1) {
//do sth
}
It works! Thank you so much!
Hi! First of all I want to thank you for your proyect and for sharing it!
I am using writing funtion and it works perfectly.
My doubt is about reading values, I can read values from PLC but I dont know how I can use them to make some conditions in my program.
My problem is I can't compare "values" value with anything.
Can you help me?
Thanks ni advance.
I post my code:
![Uploading Captura de pantalla 2018-11-04 a las 20.32.16.png…]()