Skip to content

About

TwinCAT sample project for TF5310 (TE2000 HMI): a CNC-oriented HMI template with a 4-axis + spindle PLC project, demonstrating CNC channel control, axes handling, and machine data visualization for TwinCAT XAE and TwinCAT HMI Engineering.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

How to set up TwinCAT-HMI-CNC:

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.

Required Licenses: (For this project in particular)

  • TF5310 - TC3 CNC HMI Base

Step-By-Step Repo Setup:

  1. Download this repository and place it in your desired engineering project folder location.

  2. Run TwinCAT-HMI-CNC\downloadPackages.ps1 to 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.config is 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.

  3. 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.
  4. 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.

About

TwinCAT sample project for TF5310 (TE2000 HMI): a CNC-oriented HMI template with a 4-axis + spindle PLC project, demonstrating CNC channel control, axes handling, and machine data visualization for TwinCAT XAE and TwinCAT HMI Engineering.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages