You are not logged in.
Pages: 1
Topic closed
Hi, I am trying to make it work according user guide, using Examples\MonarcoHAT_examples\01_MonarcoHAT_DEMO_example\
First I check GenerateWebWatch, generate htm files, then edit manually MonarcoHATdemo_task.html
like this:
<script type="text/javascript">
REX.HMI.init = function() {
REX.WebWatch.disableHint();
REX.WebWatch.enableMonitoring(["MonarcoHATdemo_task.TRND_DIN"]);
};
</script>
Then I download it via RexView. No success. Hint still appears and monitoring still has to be triggered manually.
I must have forgotten something or made some mistake.
Thanks for help.
Offline
I found the explanation.
The documentation says "...for manual adjustment disable the WebWatch option in HMI block".
However, GenerateRexHMI must also be disabled because otherwise the entire content of HmiDir is firstly deleted (as described in the HMI block documentation), then visualization is regenerated, but no manual changes are applied in the visualization as they are lost.
So I have to follow these steps:
1) Enable BOTH GenerateWebWatch and GenerateRexHMI in HMI block
2) Compile
3) Edit MonarcoHATdemo_task.html manually
4) Disable BOTH GenerateWebWatch and GenerateRexHMI
5) Compile&download
Last edited by stepan.ozana (2017-01-27 07:45:23)
Offline
Hi,
thank you for your immediate update. You are right that the content of HmiDir folder is deleted and overwritten with the new files (without your custom changes).
Your procedure works fine, however there is "www" function block which can help you to optimize the procedure.
See docs: https://www.rexcontrols.com/media/2.50. … df#page=40
The "www" block copies content of specified folder to Rex web server - therefore it can be accessed via HMI after download to the target device.
If you have any further questions, let us know.
Regards, Tomas
Offline
Pages: 1
Topic closed