jca001 Posted October 27, 2018 Posted October 27, 2018 6 hours ago, LarryM said: @jca001 Much appreciated, thank you for putting that together. ============================================================================================ Then $State_Check_MS_Low_Battery = 1 Wait 30 seconds $State_Check_MS_Low_Battery = 0 Side note: from my readings, you are using a 'State' variable above to take advantage of the fact that when it changes then FD MS Low Battery Check - [ID 0026][Parent 0060] will be run every time that variable changes. It takes a bit of time getting use to 'Event driven programming'. Correct. In the FD MS Low Battery Check program the IF is evaluating 2 variables, one is a State Variable and the other is an Integer Variable. The IF will be evaluated when the State Variable changes value, but it takes both variables being greater than 0 to make the IF true and run the THEN. Yes, Event driven programming takes some getting use to if you have done top down programming. 1
LarryM Posted October 27, 2018 Posted October 27, 2018 Thanks Jack. Yes, being from C & C++ this is a tad different
Recommended Posts