Skip to content

How to add basic Javascript file to the HMI Webserver ?

Hi,
We are looking for a solution to detect user interaction with the HMI served by the Webserver.

One solution would be to add a Javascript piece of logic that detects user clicks on the HMI screen using a eventListener on the HTML document object via jQuery and update a PLC variable accordingly.

Yet, we don't know how to load this kind of file in PLCnext Engineer. We tried to add the JS file as a HMI application Support File but it is not loaded in the HMI application.

Any advice on how to add Javascript file/script to the HMI application ?

Thanks a lot for any help !

Comments

Sign In or Register to comment.