stlehmann / pyads

Python wrapper for TwinCAT ADS
MIT License
247 stars 93 forks source link

Added TWINCATSDK environment variable to resolve Windows TcAdsll.dll #389

Open vincent-hve opened 1 month ago

vincent-hve commented 1 month ago

On Windows 11, for TwinCAT 4026.5, it seems TcAdsDll.dll has moved and we can not rely on TWINCAT3DIR. I have added to the resolution method to first search for a different variable TWINCATSDK, which seems to be the basis for the correct DLL. I've tested this on two separate systems.

chrisbeardy commented 1 month ago

Thank you, i be been meaning to do this! Shall merge shortly