Beckhoff / ADS

Beckhoff protocol to communicate with TwinCAT devices.
MIT License
493 stars 194 forks source link

Router CleanUp #150

Closed RamJamGit closed 2 years ago

RamJamGit commented 2 years ago

Unfortunately, the Router->CleanUp function cannot be called via a high-level language (C++, C#) interface. Is there a possibility to initiate the Router->CleanUp via ADS?

TC_Router_CleanUp TC_Router_CleanUp-AdsViewer

soberschmidt commented 2 years ago

@RamJamGit What is your intention/use case to trigger it? The command is legacy in newer TwinCAT version and not intended for remote targets. Please describe your issue in detail. May be we can provide a better approach ;)

RamJamGit commented 2 years ago

@soberschmidt The Router->CleanUp should be executed locally and the tray menu, which contains the menu item, is deactivated. In the case of terminated processes (crash) under TwinCAT 2, the CleanUp is used to close the ADS connections that can no longer be used by the router. As a result, the crashed process (zombie process) is separated from TwinCAT and can then also be terminated.

soberschmidt commented 2 years ago

@RamJamGit This issue is not related to the open source ads client of this repo. Please contact support@beckhoff.com