Logic Machine Forum
Read GA Values from TP-Bus - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Read GA Values from TP-Bus (/showthread.php?tid=1720)



Read GA Values from TP-Bus - Habib - 15.11.2018

Hi,
I'm going crazy at moment. I use several SL with Fw 2.1.1 and I used this Code for read request from TP Bus:
Code:
-- only reply to group read requests
log('zugriff') --only for testing
if event.type == 'groupread' then
 log('if schleife') --only for testing
 obj = grp.find(event.dst)
   -- object found and has datatype set
 if obj and obj.decoded then
   grp.response(event.dst, obj.value, obj.datatype)
 end
end

But now I don't get any response if I try to read GA's from diagnostic monitor of ETS.
In my log I get only the output "zugriff" if I write a new value into the GA. But I didn't get any action if I try to read values.
I tried it in different installation, but nothing of them are working any more. One of them is on an old Fw (1.2.1).
Can you help me?
my TP Settings:

[Image: tpsettings.png]


RE: Read GA Values from TP-Bus - admin - 15.11.2018

Check that your script has "Execute on group read" enabled.


RE: Read GA Values from TP-Bus - Habib - 15.11.2018

Of course :-) that was it....  Big Grin

For all who have maybe the same board in front of the head I post the solution in my case:

[Image: readsettings.png]