Skip to content

Latest commit

 

History

History
59 lines (50 loc) · 3.39 KB

README.md

File metadata and controls

59 lines (50 loc) · 3.39 KB

DeviceManager ADS

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.

Notes on TwinCAT/BSD

The following packages are required to build and run this example:

  • os-generic-userland-devtools
  • cmake
  • git

Examples

The following examples are currently available in the Examples folder:

Follow these instructions in order to build and run examples:

  1. Clone the repository and open a command line in root of the repository
  2. Run cmake -B build
  3. Adapt the AmsNetId of the target device the examples code
  4. Build a specicifc example, e.g.:
    • cmake –-build build –-target GetDeviceName
    • cmake –-build build –-target GetCpuInfo
  5. Run the example
    • ./build/Examples/GetDeviceName
    • ./build/Examples/GetCpuInfo