Skip to content

Category: TwinCAT HMI

TwinCAT HMI Automation Interface with C#

Recently I gave some insights how the TwinCAT HMI Automation Interface can be directly used in VisualStudio with the help of PowerShell [Link to Post]. And as you already know, TwinCAT itself can be completly controlled by use of an automation interface and enables one to create and manipulate TwinCAT XAE configurations via programming / scripting code [Link to Beckhoff, Link to Documentation (PDF)]. TwinCAT HMI provides similar entry points to create / manage HMI projects. The most…

Leave a Comment

Truncate and Round Settings in Textbox/Textblock

Recently I was asked how to round values (e.g. double, numbers) in TwinCAT HMI’s controls, like TcHmi.Controls.Beckhoff.TcHmiTextblock or TcHmi.Controls.Beckhoff.TcHmiTextbox. It is one of the easiest task to apply, just check the official documentation provided by Beckhoff [Link to Beckhoff InfoSys]. The screenshots in the documentation show the use of the native HMI-framework function “GaugeValueFormatter” [Link to Beckhoff InfoSys]. The use is really simple. Lets us check… Create ServerExtension with Random Values of DOUBLEs For an…

1 Comment

Substitutions Support in tsconfig.tpl.json

After a while when you are working with the TwinCAT HMI 1.12 you will recognize that some special parts are added to the tsconfig.tpl.json, e.g. At any time when the file is changed, the supported substitutions are transferred into real values, e.g. $(Output).Path/ bin/ $(Beckhoff.TwinCAT.HMI.Framework).InstallPath/ C:/temp/TcHmiProject3/Packages/Beckhoff.TwinCAT.HMI.Framework.12.742.1/runtimes/native1.12-tchmi/ For convenience reasons the TwinCAT HMI team added IntelliSense support. In the moment, just the $(..).InstallPath substitutions are provided. Your own FrameworkControl Project NuGet packages are supported as well:…

2 Comments

Default.tpl changes in 1.12

The Default.html which is generated during the build of an HMI project can be modified for your needs. In TE2000, version 1.10.x the Default.html was splitted into three parts: — STANDARD — — MASTER — — SLAVE — The MASTER was the document template used for the WYSIWYG-editor. The SLAVE variant was used to generate the TwinCAT HMI Live-View part and the final Default.html variant used for publish was based on STANDARD. New names in…

Leave a Comment

First steps with the TwinCAT HMI Automation Interface

As you already know, TwinCAT itself can be completly controlled by use of an automation interface and enables one to create and manipulate TwinCAT XAE configurations via programming / scripting code [Link to Beckhoff, Link to Documentation (PDF)]. TwinCAT HMI provides similar entry points to create / manage HMI projects. To come in touch with the TwinCAT HMI Automation Interface it is only required to have an installed VisualStudio 2017/2019 or TwinCAT XAE Shell with…

Leave a Comment

Install TwinCAT HMI Engineering and Server automatically

The TwinCAT HMI setup files are based on InstallShield [Link to revenera.com]. By knowing this, several options are available to allow an easy way for you to trigger setup processes. Think about easy deployments to dozens of individual engineering machines. The InstallShield allows to modify the execution by append some arguments, check the official documentation for individual information [Link to InstallShield 2018 Help Library]. The most interesting part for me is the “Running Setup.exe Silently”…

Leave a Comment

TwinCAT HMI NuGet Package Update Notifications

The support of the NuGet package management of the TwinCAT HMI 1.12 empowers you to add/remove/change any functionality you like on-demand, when you need or when do not need it anymore. Furthermore, it is allowed to switch between versions at any time, of course the packages must support the wide range of different interface versions of all the other used packages. During project load, the TwinCAT HMI checks for NuGet package updates and will inform…

Leave a Comment