FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
02-10-2023 02:35 PM
We use CtrlX with WebIQ to make an HMI to control a machine (see photos below for the config), we use datas from the datalayer, and we read it from WebIQ with OPC-UA. we use a display and Chrome as Browser to look at the HMI and use it.
The link between the datalayer and webIQ is done and it works well most of the time. The thing is that sometime, when we starts the CtrlX and the screen up, the connection does not work, we proved it by using a boolean with a fixed value of TRUE in the datalayer, and when this boolean is read (through OPC-UA) at "true" value in WebIQ, the red sentence at the top of the screen disappear.
When the problem comes up, I open WebIQ designer to look at the connection state, and It looks to be ok, then I open the HMI with the "browser preview" and it works there. Then I go back to the "real" HMI in the same browser, and it does not work... (see photos attached)
The only way to solve it until now is to restart the system until it works...
Did you already get this issue ? do you have solution ?
thank's in advance,
Solved! Go to Solution.
02-10-2023 02:54 PM
Please provide the connect.log file you can download from http://{YOUR_CTRLX_IP}:10123 under "Settings".
This requires WebIQ 2.13 on ctrlX.
02-10-2023 02:58 PM
I work with 2.12, any risk if I update it to 2.13 ?
02-10-2023 03:19 PM
Please see the changelog and release notes for information on changes:
https://www.smart-hmi.com/user/download/deliver/docs/documentation-webiq-changelog-master-7792/index...
Please note that you *must* update both your WebIQ Designer installation on your development system *and* WebIQ on ctrlX. The versions always have to match.
02-13-2023 09:34 AM
Your description is a bit confusing. On one side you "read data from the datalayer", on the other side you say that you "read the data via OpcUA".
Since you can only read the datalayer from WebIQ via the REST API, I interpret this as follows: Data is read in the PLC program
- via FB's from the datalayer
- then transferred to WebIQ via OpcUA.
So the problem can be either:
- reading the data in the PLC
- in the communication via Opc UA.
Apart from that, using a boolean variable to check connection between PLC and HMI is quite inconvenient. You should use the WebIQ widget Heartbeat instead. This works as follows:
You define an INT variable in the PLC program, which you increment in each cycle (e.g. iPlcHeartBeat).
You enter it in the Hearbeat widget in the "Item" field of the "Connection Monitoring PLC -> HMI" section.
With the same functionality you can monitor the communication in the PLC program. Section "Connection Monitoring HMI -> PC
02-13-2023 07:01 PM
02-14-2023 08:55 AM
Did you check if the data is always available in PLC? Did you change your communication check?
02-14-2023 06:06 PM
it depends what do you mean by "available in the PLC", the app PLC was running for sure.
I made the change in my communication check, I used the same item for HMI -> PLC ( not sure this is the way..).
The thing is that the error comes randomly, so I have to wait for another error.
Ps : one colleague of mine told me it could come from the project name that is loaded in the sever, sometimes the server takes the old one if the it was the same name. So we save the project on our PC, we delete it from the server, we change the name of the project, then we load it again in the server...
I keep you in touch.
02-15-2023 06:40 AM
...it depends what do you mean by "available in the PLC", the app PLC was running for sure...
This means that the reading of the data in the PLC is always successful, without an error.
Or said in other words: When the data in the PLC are wrong, the data transferred from PLC to HMI via OpcUa are wrong, too.
02-15-2023 08:07 AM
"one colleague of mine told me it could come from the project name that is loaded in the sever, sometimes the server takes the old one if the it was the same name. So we save the project on our PC, we delete it from the server, we change the name of the project, then we load it again in the server..."
That could have happened when using WebIQ prior to version 2.12. From the changelog:
"Web browser cache time can now be configured in the System & License Manager and has been lowered from the default 24 hours to 60 seconds removing the need to empty the browser cache after updating the HMI."