
// https://github.com/Beckhoff/ADS
// https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_adscommon/html/tcadscommon_introads.htm&id=6479552931026062113


An ADS route must be added if this code is not run on the same machine as the PLC. Example:

TwinCAT3: Systray -> Router -> Edit Routes -> Add...

Route Name (Target): EPICS
AmsNetId: <IP address of the machine this code is running on>.1.1
Transport Type: TCP_IP
Address Info: <IP address of the machine this code is running on>
x IP Address
Target Route: Project
Remote Route: None

Add Route
Close

Configure firewall to allow ADS: https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_ads_intro/115824651.html&id=631865925476641346
Allow incoming TCP port 48898 for communication.
Allow incoming UDP port 48899 for broadcast search.


Linux:
mkdir build
cd build
cmake ..
cmake --build . --config Release
sudo cmake --install .

Windows 10:
Start -> Windows System -> right click on Command Prompt -> More -> Run as administrator
mkdir build
cd build
cmake ..
cmake --build . --config Release
cmake --install .
