Page 1 of 1

user variables in blockly

Posted: Tuesday 03 September 2019 20:15
by jenicek
Hello.
I create in blockly control of boiler operation. When I enter data for switching times in numbers, everything is OK. When I use a variable, the system is not working properly. Example: switch on after 60 sec. works correctly.

but

turn on after entering the user variable in the integer format NO.

Other variables work (temperatures).

What am I doing wrong?

Thank you
J.

yet: user variables in blockly

Posted: Tuesday 03 September 2019 20:29
by jenicek
yet: it's about process timing, breaks, etc. When entered into fields in blockly data in numbers, everything is functional. If I replace the number field with a variable, the system behaves differently and badly. The logic in blockly is the same

Re: user variables in blockly

Posted: Saturday 14 September 2019 18:48
by DaanT
Hi jenicek,

A user variable does not trigger events when changed.
Maybe that's your problem, an event with just a user variable in the if statement will never run.

Daan