PLC Web Browser - User Script

PLC Web Browser - User Script
none 0.0 0
  • HMI Model: CMT3092XV2
  • EasyBuilder Pro Version: 6.10.01

I’m trying to find documentation on PLC Web Browser User Scripting. According to this Weintek’s Youtube video ( Weintek EasyBuilder Pro tutorial - 75. Adding Functionality to a Webpage with Userscript Imports) There seems to be an existing parameterization like @run-at @match that needs to be defines at the beginning of your script.

Is there any more information about that?

Note: it’s doesn’t seem to be covered in the JS SDK documentation. Container - JS Action/Object SDK

In that video, the first 7 rows are written to provide comments that document information about the objective of the user script and other detailed information.
The user scripts comprise JavaScript. Any front-end web developers should know how to program desired user scripts based on JavaScript.
Only use the user script functionality when a web-based visualization application requires minor custom changes. The PLC Web Browser object can run without using the user script functionality.

1 Like

Thanks for the follow-up. I just wanted to make sure that these comments were not macros use during the compilation in easybuilder to inject the javascript on certain conditions.
Regarding the JS itself, no I would no expect Weintek to provide any documentation about it. As you said once you get there you’re interacting with a normal web page and it’s not related to the HMI.