Closed GISED-Link closed 1 year ago
Hi, for REFERENCES you have to use the index groups ADSIGRP_SYM_VALBYNAME (0xF004) or ADSIGRP_SYM_VALBYHND (0xF005). PyAds and the spidercontrol driver seem to use directly the index groups and offset of the symbol information, which is not supported. Beckhoff recommends to work with handles in general to detect online changes. Please contact the support of Ininet (Spidercontrol) to optimize their ADS driver.
Hi,
The Scada server I use (SpiderControl) uses the ADS-sum command to reach the variables inside my PLC. Everything is alright for most of the variables.
My only concern is for REFERENCE TO and REFERENCE TO ARRAY variables. I often use those one for my recipe or to simplify the call inside my Scada server. The problem is that REFERENCE TO is not supported by the ADS-sum command and lead always to an invalid index group error.
I try to replicate this behavior using the pyads library. I use the read_list_by_name method and the same behavior occurs.
here is the code in the PLC:
here the code on pyads:
And it returns this:
Is there a list of unsuported type for this command? This page doesn't inform us about type limitation: https://infosys.beckhoff.com/english.php?content=../content/1033/tcsample_vc/html/tcadsdll_api_cpp_sample17.htm&id=