Framework

How can I realize a page switching?

Page switching can be implemented via the control TcHmiRegion. You will find instructions on how to do this in the chapter Creating Navigation.

Can I develop my own controls for the TwinCAT HMI?

The development of user-specific controls in HTML5, JavaScript and CSS 3 is possible via so-called "Framework Controls".

How can I integrate a Framework Control into other TwinCAT HMI projects?

A Framework Control can be exported as a package via Package Management and installed in other TwinCAT HMI projects.

Is there a training for the development of Framework Controls?

The one-day training course TR7060 can be attended for the development of Framework Controls. The dates can be found on our website.

Can I integrate external libraries into the TwinCAT HMI?

The TwinCAT HMI Framework offers an API that can be used to implement many functions. The integration of external web libraries is possible within a Framework Control. The external library must be integrated into the Framework Control project. In the Description.json a reference to the files of the library must be created.

I have created a Framework Control. This is not displayed in the TwinCAT HMI Designer or in the LiveView. What could be the cause?

JavaScript is an interpreted scripting language, therefore syntax errors etc. can only be detected at runtime. Such an error may result in the Control not being displayed in the Designer or LiveView. The Developer Tools of the browsers offer a possibility for diagnosis. These developer tools also allow you to debug a control.