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 download the required TcPkg packages.- This script will install the required TcPkg packages for the TwinCAT HMI CNC project.
- First it will install the TcHMI Engineering Workload and ask to update if newer versions are available.
- Then it will check all active TcPkg feeds for newer versions of the project packages. If there are any, it lists them and asks whether to use them. If you accept, the newer versions are installed and the project configuration is updated to them.
- Then it will proceed to install any additional required TcPkg packages for the TwinCAT HMI CNC project.
- If a project package is not installed in the version from
packages.configbut a newer version of it is, the script asks once whether to allow downgrades. Choose y to install the pinned version anyway; with n those packages are skipped and the newer installed version stays. - In File Explorer, right-click the actual
TwinCAT-HMI-CNC\downloadPackages.ps1and select Copy as path. - In a PowerShell window, run
Unblock-File -LiteralPath "C:\path\to\downloadPackages.ps1", replacing the example path, including its quotes, with the copied quoted path. Only unblock scripts you trust. - In the same PowerShell window, run
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned. This setting lasts only until the window closes; administrator privileges are not required to set it. - Launch the script with
& "C:\path\to\downloadPackages.ps1", replacing the example path with the same copied quoted path. - Follow any prompts that appear during the script execution to complete the installation of the required TcPkg packages.
-
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.
Refer to the TwinCAT HMI/CNC documentation for detailed guidance on using specific features and functionalities within the project.
- TF5310 CNC HMI Base documentation (German)
- English documentation: coming soon