FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
10-16-2024 09:34 AM
As far as I understand it, the WebIQ monoflop feature can be used to detect communication interruptions, e.g. when a motor is jogging.
- How does this have to be configured in WebIQ?
- Is there an example?
- How do you recognize the communication interruption in the PLC?
- A brief explanation of the technical background would also be very helpful to understand how it is working.
Solved! Go to Solution.
10-16-2024 09:53 AM - edited 10-16-2024 09:53 AM
The monoflop feature is meant for jogging, not for detecting communication interruption. From the manual:
Monoflop Interval Defines the interval in which to write the value to the connected item if the monoflop function has been enabled"
Essentially it's simply JavaScript code in the frontend that writes the item continuously as long as the button is pressed, nothing fancy. However, when the connection to the item on the PLC (OPC-UA server) is interrupted, the widget will be locked automatically anyway.
10-16-2024 10:27 AM
I understand the following for monoflop:
10-16-2024 11:10 AM
@webiq-sk Before I created this entry I found the documentation you listed above, but I says nothing to me. I created a test program:
So it is totally unclear how to use the monoflop in WebIQ and what should be the effect/advantage to use it.
10-16-2024 11:22 AM
@HmiGuide Monoflop is simply an option to write the value every interval. Of course the value remains at "1", but it is sent to the server - this only makes sense if you have a corresponding handling on the OPC-UA server that receives the value write and then sets another value internally for example. Such for moving a part of the machine whenever the value is written.
Please keep in mind that we're a web HMI - this means that you always have to handle intermittent disconnects because of some network issues. As such it needs to be prevented that we send "jog" and a "stop jogging" (if we would implement it like this) will not be received because of an issue somewhere on the network (which is outside of the scope of any software) and potentially harming someone if a part continues moving just because of a network issue. Therefore, no "jog" and "stop jog" is available and this has to be handled by the OPC-UA server. So whenever no new write is received the corresponding part of the machine will not be moved anymore.
Please don't forget that even though ctrlX has a built-in OPC-UA server this may not be the case for everyone using WebIQ and technically the OPC-UA server and WebIQ can be located at different parts of the planet so network issues can occur at anytime potentially and would have to be handled by any network software.
10-16-2024 01:05 PM
@webiq-sk do I understand it correct?
Yes, the network issues are the reason, why I want to know how the monflop feature is working and if I can use it.
10-16-2024 01:08 PM
As I wrote before WebIQ simply sends the same value as long as you keep the button pressed in the given interval. As WebIQ can only control what's happening in the browser it's up to the user to adapt the OPC-UA server if it doesn't support something like this out-of-the-box.
10-17-2024 09:30 AM - edited 10-17-2024 09:31 AM
Result
The iq-heartbeat widget can be used to stop jogging when communication is interrupted. It can send a heartbeat counter to the PLC and evaluate a heartbeat counter of the PLC. This allows a communication interruption to be detected and reacted to on both sides.
10-17-2024 09:56 AM
Please note that if you have the HMI open on multiple browsers at the same time and use the heartbeat widget to actually "ping" the OPC-UA server you cannot detect, if one is no longer available - this only works if you always have a single display only that displays the heartbeat widget and sends a "ping" to the PLC. Because one browser might have a network issue while another does not.