Skip to content

TwinCAT HMI and more... Posts

TwinCAT 3 HMI on Windows CE (by Mattias Nilsson)

With the release of version 1.12, it is now possible to install and have TwinCAT 3 HMI running on a Windows CE control system, for instance a CX9020. Mattias Nilsson, one of my colleagues, made a wonderful article how to install the HMI server and how to config it. The post is available on LinkedIn, but as I see it can be read without any account. Article: TwinCAT 3 HMI on Windows CEAuthor: Mattias NilssonPublicated:…

Comments closed

Understand “Included in Solution”-parameter for TwinCAT HMI’s NuGet References

The information in this post are usable with: VisualStudio 2017, 2019 If there is a project in a solution that can be transferred to an HMI NuGet package (e.g. TwinCAT HMI Framework Project), the “Included in Solution”-flag of the corresponding reference in an HMI-project can be used to automatically reinstall this NuGet package. The flag is provided in the PropertyPane of the respective NuGet reference in an HMI-project: In the screenshot above, the NuGet package…

Leave a Comment

TwinCAT HMI 1.12 is released — a brief list of new features

The new TwinCAT HMI 1.12 software bundle is available on Beckhoff’s website. In this post a handful of the features are listed, for a full list of all new features and improvements, please contact the Beckhoff-support or your local contributor. VisualStudio 2019 Support New TwinCAT HMI Templates TwinCAT HMI Project TwinCAT HMI Framework Project TwinCAT HMI Framework Project Empty TwinCAT HMI Server Extension (CSharp) TwinCAT HMI Server Extension (CSharp / .NET Core) TwinCAT HMI Server…

3 Comments

Attach to debug TwinCAT HMI Server Extension with just one click

VisualStudio 2017, 2019 TE2000-HMI-Engineering 1.12.*.* (Download) and future releases Sources of this post: GitHub Repository Very often you have to implement your own business-logic in a TwinCAT HMI Server Extension (link: Beckhoff). To debug that extension you have to attach to the process which has loaded and runs the corresponding functionality. In TwinCAT HMI 1.12 the running process to execute that server extension has changed. In the TwinCAT HMI version 1.10 the server extension was…

7 Comments

Resolve index-based symbol mappings easily

VisualStudio 2017, 2019 TE2000-HMI-Engineering >= 1.12.718.* (Download) Sources of this post: GitHub Repository Array-based access to TwinCAT HMI symbols can be tricky, but in the latest version (>= 1.12.718.0) some convience functionalities has been added to the Server API. Let’s have a look. The TwinCAT HMI Server API is provided in “C:\TwinCAT\Functions\TE2000-HMI-Engineering\Infrastructure\TcHmiServer\Latest”. Right now we are interested in “TcHmiSrvExtNet.Core.dll”. With JetBrains dotPeek we can discover the internals of the DLL. Check the namespace “TcHmiSrv.Core.Extensions”, four…

Leave a Comment

Share Icon Sets and Media Files for TwinCAT HMI with NuGet Package Management

VisualStudio 2017, 2019 TE2000-HMI-Engineering 1.12.*.* (Download) and future releases Do you have a large set of individual icon set you like share easily with other developer or customer? The TwinCAT HMI provides an easy way to fullfil this requirement by use of the powerful NuGet package management already available in Microsoft VisualStudio. You can add any content which is supported by the TwinCAT HMI Gallery Explorer, e.g. images (PNG, JPEG, Bitmap, etc.) and videos (MPEG4,…

5 Comments

Modify Action&Condition Syntax Highlighting in TwinCAT HMI’ Designer

VisualStudio 2017, 2019 TE2000-HMI-Engineering 1.12.*.* (Download) and future releases As you already know the TwinCAT HMI uses a JSON-dialect for Action&Conditions of any Control. In 1.12 and higher syntax highlight functionality is added and activated by default. The user can change the colors for some categories. The possible settings are provided in VisualStudio’s font setting dialog: “Tools / Options… / Environment / Fonts and Colors / Display items:” It is up to you how the…

4 Comments

Register “Beckhoff TwinCAT HMI Type Library” Manually

VisualStudio 2017, 2019 TE2000-HMI-Engineering 1.12.*.* (Download) and future releases Sources of this post: GitHub Repository Under some circumstances it is possible that the “Beckhoff TwinCAT HMI Type Library” used by the TwinCAT HMI Automation Interface is not registered successfully. To solve this issue, just register the type library manually. The necessary tool for doing this should be already available on your machine, just search for “regasm.exe” (Assembly Registration Tool) [Microsoft Website]. Open the VisualStudio 2017/2019…

Leave a Comment

Query all available TwinCAT HMI control types and all available attributes

VisualStudio 2013, 2015, 2017 TE2000-HMI-Engineering 1.10.*.* (Download) and future releases Sources of this post: GitHub Repository The TwinCAT HMI provides a large set of default control types with several specific attributes. In case you already asked yourself how to query a full list of any information about theses information, just look into the small piece of code (see ShotAttributesCommand.cs for full implementation). Just create a HMI-project and call Execute(..), it is reachable in the VisualStudio…

Leave a Comment

Extend Visual Studio’s IntelliSense for TwinCAT HMI

VisualStudio 2017 TE2000-HMI-Engineering 1.10.*.* (Download) and future releases Sources of this post: GitHub Repository As you already know the TwinCAT HMI designer is a split view implementation. On one side a WYSIWYG-editor based on CEF (so-called Designer) is provided, on the other side the plain code editor of Visual Studio is usable to modify your HMI-implementation directly. To add new controls to your HMI you have multiple ways to reach your goal: use the Toolbox…

Leave a Comment