TcForge¶
Reusable TwinCAT 3 function blocks for machine control: sequencing, I/O, pneumatics, alarms, and shared device contracts for Beckhoff PLC applications.
Foundation under development
Local builds and PLC tests are running; production qualification remains open. Follow the qualification procedure before adopting the library, and review the progress tracker for remaining work.
Build on shared contracts¶
TcForge provides method-based commands, requester validation, consistent device status and faults, and application-owned hardware mapping. The integrated discrete assembly station shows how these pieces work together in an owning cyclic task.
| Area | What you will find |
|---|---|
| Architecture | Device base, scan ownership, fault reporting, and extension patterns. |
| I/O | Digital and analog signal boundaries and hardware mapping. |
| Sequencing | State machines, steps, permissives, and recovery. |
| Alarms | Threshold, limit, deviation, and rate-of-change alarms. |
| HMI integration | Operator commands and OPC UA RPC integration. |
Start with the reference application¶
- Build and install TcForge in TwinCAT XAE on Windows.
- Read the reference machine contract for scan order, operation, and recovery.
- Follow the qualification gates, including PLC tests and restart checks.
Develop and contribute¶
Use the programming standards when adding modules. The simulation guide describes the offline models and live PLC exchange. See contributing for reporting issues and documenting validation.
TcForge is MIT licensed. The related TwinCAT MCP Server provides TwinCAT build, deployment, testing, and ADS tools; TcForge can be used independently.