This repository contains a template and examples for handling HTTP requests in TwinCAT 3, specifically designed for traceability and IoT applications. As a beginner in TwinCAT 3, I created this resource to share what I’ve learned, providing others with the kind of help I wish I had when I started.
While Beckhoff provides excellent documentation for TwinCAT 3, it often lacks the kind of community-driven support that developers are accustomed to in broader software engineering fields. This repository aims to fill that gap by:
- Offering a reusable HTTP request template for traceability and IoT applications.
- Encouraging collaboration and code sharing within the PLC community.
- Promoting best practices, such as using version control and community documentation.
-
Lack of Code Sharing
In the PLC world, sharing code is often discouraged due to concerns over intellectual property. This limits collaboration and innovation. In contrast, software developers rely on shared examples to learn and improve. -
Outdated Version Control Practices
Many automation professionals still rely on cloud backups or local storage instead of modern version control systems like Git. This repository serves as an example of how version control can benefit PLC programming. -
Limited Community Documentation
Unlike the software development community, where shared knowledge often evolves into unofficial documentation, the automation field lacks accessible resources for newcomers.
The main libraries I used during the implementation of the MES system are:
There are many resources out there in different platforms, what I like the most was Kajob Sagatowski's TwinCAT 3 video series and his AllTwinCAT website. Feel free to explore more!