Skip to content

Category: Visual Studio 2015

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

Query installed TwinCAT HMI version and build time

The information in this post can be used with: VisualStudio 2013, 2015, 2017, 2019 TE2000-HMI-Engineering 1.10.*.* (Download) and future releases Sources of this post: GitHub Repository Sometimes it can be very handy to know the currently installed TwinCAT HMI SDK and runtime, e.g. to allow build switches for different versions. Therefor, you only have to query the product version and linker date-time of any installed TwinCAT HMI DLL, e.g. “TcHmiCore.dll” or “TcHmiMSBuild.Publish.dll” etc. The output…

Leave a Comment

Mass Deployment of a TwinCAT HMI project

The information in this post can be used with: VisualStudio 2013, 2015, 2017 TE2000-HMI-Engineering 1.10.*.* (Download) Sources of this post: GitHub repository In case you like to update several remote machines with the same HMI project just implement some utilities to support this scenario. Everything you need is on-board. The source of any example in this post is accessible on GitHub in one of my repositories: “twincathmi / UseCases / MassDeployment”. The solution “TcHmiProject1” contains…

Leave a Comment

Publish TwinCAT HMI project with command line

The information in this post can be used with: VisualStudio 2013, 2015, 2017 TE2000-HMI-Engineering 1.10.*.* (Download) I was asked “Is it possible to do Publish HMI to a custom location from command line?” Sure, this is supported but like other VisualStudio/MsBuild supported features, you have to know that we are currently name it “easteregg” or “hidden feature” because of the fact that in future the realized/implemented approaches will probably change because of new VisualStudio interfaces…

2 Comments

Build TwinCAT HMI project with command line

Following information can be used with: VisualStudio 2013, 2015, 2017 TE2000-HMI-Engineering 1.10.*.* (Download) One colleague has asked me this: ‘Chris, how to build a TwinCAT HMI (tchmi) project with command line?’. I guess several people out in the world just use scripts or automatic builds and will have the same question. Therefor, I like to give some hints where to look for internal information and how the task is done. There should not be any…

Leave a Comment