Hello there,
I have built a communication card for an industrial equipment around Anybus 40-series. Using the Starter Kit as starting point to my software, I managed to make it work. Have also tested all those examples for ADI mapping and successfully exchanged cyclic and acyclic data.
But the trouble is, in the real product that will be released to the market, the number of exchanged IOs (therefore ADIs) will be selected by the end user. He will be able to program the equipment using the HMI, and we are planning to support up to 50 words for input and another 50 words for output.
The code expects that those arrays for ADIs are known during compilation-time (APPL_asAdiEntryList and APPL_asAdObjDefaultMap). Besides, all C functions that manipulate these arrays are also supposing they have fixed size.
I am scratching my head to figure out a solution for this case where one cannot tell the size for those data structs beforehand. Any ideas?
Thanks a lot,
Luciano.