What I am attempting to do is use a HMI and plc for a thermostat. I have the HMI that is sold be Triangle Reasearch. I want to use one button to increase the temperature, and another button to decrease the temperature. Run I run the code in a CusFN, and I set variable b=72, I can increase the value of variable B, but when the code returne to to top, the variable is reset.
Thanks