Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  2. PLCnext Engineer
  3. Tuesday, 13 July 2021
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 !
Accepted Answer
Frank PLCnext Team Accepted Answer Pending Moderation

unfortunatly JavaScripts are with the current version not possible, but is planned for PLCnext Engineer 2022.0 (release end of this year).

Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support Accepted Answer Pending Moderation
Hi Frank,

Thanks for your quick answer !

We will therefore go for the user click based solution in the meantime.

Have a nice day.

  • Page :
  • 1

There are no replies made for this post yet.
However, you are not allowed to reply to this post.