Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting all declared symbols from device #17

Open
MFolte opened this issue Feb 26, 2025 · 1 comment
Open

Getting all declared symbols from device #17

MFolte opened this issue Feb 26, 2025 · 1 comment

Comments

@MFolte
Copy link

MFolte commented Feb 26, 2025

In .NET there is a way to retrieve all declared symbols of the ADS device. TcAdsSymbolInfoLoader.GetSymbols.

https://infosys.beckhoff.com/index.php?content=../content/1031/tcadsnetref/7313605771.html&id=

Is there some equivalent for Java?

@vossjannik
Copy link
Collaborator

Hi @MFolte,

this Java library is a thin wrapper around the native API.
I would suggest that you port this C++ sample to Java:

Upload PLC-variabledeclaration (dynamic) (2/2)

The samples in this repository show how you can use AdsCallDllFunction.adsSyncReadReq (the Java version of the AdsSyncReadReq function in the native API).
https://github.com/Beckhoff/AdsToJava/tree/main/samples/tcadsdll

Best Regards, Jannik Voss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants