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

  1. mertensph@gmail.com
  2. PLCnext Engineer
  3. Tuesday, 13 July 2021
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 !
Accepted Answer
Frank PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

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

Frank
Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support
mertensph@gmail.com Accepted Answer Pending Moderation
0
Votes
Undo
Hi Frank,

Thanks for your quick answer !

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

Have a nice day.

Philippe
  • Page :
  • 1


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