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.

Read GA Values from TP-Bus
#1
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]
Reply
#2
Check that your script has "Execute on group read" enabled.
Reply
#3
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]
Reply


Forum Jump: