This repository shows how to get and set system information made available by the Beckhoff Device Manager using ADS. While this repository uses C++, the general procedure can be adapted to any ADS implementation.
The examples in this repository are continuously developed. If the functionality you want is not already included, feel free to create an Issue describing your use case.
The following packages are required to build and run this example:
- os-generic-userland-devtools
- cmake
- git
The following examples are currently available in the Examples folder:
- General Area
- Device Area
- Configuration Area
Follow these instructions in order to build and run examples:
- Clone the repository and open a command line in root of the repository
- Run
cmake -B build
- Adapt the AmsNetId of the target device the examples code
- Build a specicifc example, e.g.:
cmake –-build build –-target GetDeviceName
cmake –-build build –-target GetCpuInfo
- Run the example
./build/Examples/GetDeviceName
./build/Examples/GetCpuInfo