This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

FB event run
#1
Hi.

I'm a noob on FB, and i have a problem understand how the events work.

I have made (at least i belive i have), a simple cooling thermostat.

I want this to run every time the room-temperature or the cooling-setpoint changes, but i can't save this becouse it's missing an event to run a function block. What am i doing wrong?

BR

Attached Files Thumbnail(s)
   
Reply
#2
Hi,

Use a event block for the room temp input and the setpoint input addresses instead of the normal blocks you use now.

BR,

Erwin
Reply
#3
(25.08.2018, 07:51)Erwin van der Zwart Wrote: Hi,

Use a event block for the room temp input and the setpoint input addresses instead of the normal blocks you use now.

BR,

Erwin

Hi.

Are you talking about the "Hysteresis with 3 limits" block? I want this normal blocks to work first, just to see how FB editor is in use.

BR

Attached Files Thumbnail(s)
   
Reply
#4
Hi,

No the element blocks for the addresses 5/0/9 and 5/2/9 needs to be event element blocks. This way the system knows it must trigger the script on the change of these 2 addresses

BR,

Erwin
Reply
#5
(25.08.2018, 10:24)Erwin van der Zwart Wrote: Hi,

No the element blocks for the addresses 5/0/9 and 5/2/9 needs to be event element blocks. This way the system knows it must trigger the script on the change of these 2 addresses

BR,

Erwin

Hi. I thought that was what i have done already. In the picture the top one is adress from "event elements", and the bottom one is adress from "elements". The "event elements" have an orange cirkle at the right side. The once i have used in my coling thermostat project altso have an orange cirkle at the right.

Here is the latest diagram i have tried. There is an red square around a block, and the error says this is missing an event.

Attached Files Thumbnail(s)
       
Reply
#6
Hi
Your output to the input of filter is missing trigger event.  Simple rule it is like that. Orange lines are trigger events, where grey are just pure values which do not trigger the block.
When you link empty output with input then in the background storage is created which will transmit value from one script to another but this will not trigger the input block only will wait on another input to trigger. In your case is missing.
What you have to do is select an grp address for the output and then link it to the input. It will then ask you if this is event link. Say yes and then line will be orange. 

Like that

Attached Files Thumbnail(s)
           
------------------------------
Ctrl+F5
Reply
#7
Hi.

I was thinking about the solution in your diagram, but i then thinked that it was to strange to establish a "dummy" group adress in objects tab in LM, just to make one block trigger another block. If i make like 10 blocks after another, then i have to establish alot of dummy group adresses in LM which have no purpose other than beeing used inside FB editor?
This in maybe becouse of how scripting works?

Forgive me if i misunderstand the technical part of FB. I have no experience in LM scripting, and are new to FB.

BR
Kai-Roger
Reply
#8
Yes this is all linked to scripts as FB is just generating scripts. When you use event based script they must be triggered by telegram. If you use Timer then no need for it.
------------------------------
Ctrl+F5
Reply
#9
Ok.

Then i just reserve the hole Main Group Adress number 30 in ETS for the purpose of use in FB editor.
Then i can make up to 65.536 dummy adresses for FB editor in LM  Rolleyes

BR
Reply
#10
In LM it is better to use virtual objects from 32-63 Those groups are not send anywhere and do not generate unnecessary traffic.
------------------------------
Ctrl+F5
Reply
#11
Nice. I did not know it was possible to choose adresess from 32-63.

You altso mentioned the use of timer to trigger a block. Is i possible to have a timer that triggers all the blocks every 5 second, or will this cause undesirable load on the LM if the number of timers get to many?
Reply
#12
Sure you can have 1 timer to trigger all blocks. In this case you will create one resident script which will run every 5 sec. In this case make sure you set delta on output to send values on change of value only. Otherwise you will send every 5s from every block which is not nice to KNX load. You can also un-select 'write to bus' which will not write to TP but only when you can.
It is much better to use event way as then logic is used only when it is needed.
------------------------------
Ctrl+F5
Reply
#13
Hi.

Thanks for all the good help! It's a verry nice feeling to build something that works like a charm. And with no stress on the KNX bus either  Cool

   
Reply


Forum Jump: