Do JS objects run different instances in cMT Viewer?

Do JS objects run different instances in cMT Viewer?
none 0.0 0
  • HMI Model: cMT-FHDX-820
  • EasyBuilder Pro Version: V6.10.01.371

Hello,

I’m using cMT-FHDX-820 hmi, at Lan2 plc is connected, Lan1 is connected to internet.
At Lan2 there is also PC that has cMT viewer, PC don’t have internet connection.

HMI sends data periodically to internet, but when PC is connected with cMT viewer and data sending is initiated from PC(for example sending login data to backend), HMI is acting like there is no internet connection, periodic data sends initiated by hmi are still working. If I connect PC to internet then everything is working OK.

Is there solution where PC is not connected to Internet but it can initiate web commands?

Best Regards

Hi @lgoitc,

Thank you for contributing to our forum! Just for our reference, what database or service is the HMI connected to via the internet in your application?

Hi @Brendon.S

HMI is sending data to our server with REST APIs

Hi @lgoitc,

Could you confirm that the SVRX is receiving a Wi-Fi signal through LAN1? This can be done by going to the IP address of the HMI in your browser.

If this seems correct, could you provide us with images of your setup to further diagnose the issue?

Thank you!

Hi Aaron,

Yes LAN1 have network settings.

Here is setup diagram

Hi @lgoitc,

When using cMT viewer the PC emulates the existing project as a separate instance and may process data and logic within JS on the PC itself. One solution may be to use a subscription to read a local HMI bit (LB) and trigger the API call. This might allow the JS object to run only on the HMI. When you have time, can you please implement this method and let us know if the issue is resolved?

Hi @Brendon.S ,

thank you for this explanation, unfortunately we had to deploy hmi so I wont be able to test this approach at the moment.

best regards