Make sure you have Visual Studio 2022/2026 or TwinCAT XAE installed.
Make sure you have TwinCAT TcPkg installed and correctly configured. (Feed, Integration, etc.)
Make sure you have the necessary licenses for TwinCAT HMI and any other required TwinCAT components. (Or create a 7-Day trial license if needed)
A PLC-example is included in the repository under the "CNC Project 4 Axis and Spindle" folder.
- TF5310 - TC3 CNC HMI Base
-
Download this repository and place it in your desired engineering project folder location.
-
Run
TwinCAT-HMI-CNC\downloadPackages.ps1to install the required TcPkg packages.-
The script installs the TcHMI Engineering Workload, offers newer versions of the project packages from all active TcPkg feeds (updating the project configuration if accepted), and then installs the remaining required packages.
-
If only a newer version of a package pinned in
packages.configis installed, the script asks once whether to downgrade: y installs the pinned version, n skips it and keeps the newer one. -
To run it, right-click the script in File Explorer, select Copy as path, and run the following in a PowerShell window. Replace the example path, including its quotes, with the copied path:
Unblock-File -LiteralPath "C:\path\to\downloadPackages.ps1" # only unblock scripts you trust Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned # this window only, no admin rights needed & "C:\path\to\downloadPackages.ps1"
-
Follow the prompts to complete the installation.
-
-
Open the TwinCAT HMI CNC project in Visual Studio or TwinCAT XAE.
- Navigate to the project folder where you placed this repository.
- Open the solution file (*.sln) to load the project.
- Ensure that all required TcPkg packages are correctly installed and referenced in the project.
-
Use the TwinCAT HMI CNC project like you would with any other TwinCAT HMI project.
- LiveView, Publish, User-/Permission management, and other standard TwinCAT HMI functionalities.