16.03.2019, 22:01
Hi.
I have a resident script with 2 sec sleep interval. I try to write a simple mathematical calculation to the variable named "D". The group adress behind variable "D" is datatype 05.001 %. How can i make this work i Lua?
A = grp.getvalue ('6/6/1')
B = grp.getvalue ('6/6/2')
C = grp.getvalue ('6/6/4')
D = grp.write ('6/6/10')
D=(B-A/C-A)*100
BR
Kai-Roger
I have a resident script with 2 sec sleep interval. I try to write a simple mathematical calculation to the variable named "D". The group adress behind variable "D" is datatype 05.001 %. How can i make this work i Lua?
A = grp.getvalue ('6/6/1')
B = grp.getvalue ('6/6/2')
C = grp.getvalue ('6/6/4')
D = grp.write ('6/6/10')
D=(B-A/C-A)*100
BR
Kai-Roger