Thread Content
The boiler that is in operation here uses an S7 300 system. The interface was created using WinCC. The program on this interface allows the user to click on an electric valve; upon doing so, another screen appears with two options: open the valve or close it. When the mouse is clicked, the value is set to 1, while it becomes 0 when the mouse is released. Now, there is a problem: indeed, when clicked, the output is 1 and the relay in the cabinet is activated as well. But before I could let go, the relay disconnected. I guess it’s a programming issue. Could you give some advice?
If you can’t see the program, no one else can help you. If you trust me, you can send it to my email address 35480934@qq.com; I can take a look at it for you
It’s probably a problem with the program variable type! I guessed it, hehe~
Take a look at how scripts are written in the WINCC mouse events; according to your description, it should involve programming to set and reset variables for the mouse button press and release events respectively. If you keep the mouse button pressed without releasing it, but the device resets anyway, it’s possible that the script includes a \"pause\" function (it reads the system time when the button is pressed and then enters a loop that continues until one or two seconds have passed, at which point the loop ends), such that it pauses for one or two seconds before automatically resetting. If you post the mouse event script, everyone will be able to help analyze it for you.
Also, it is necessary to check the Step7 program to see if the output is in pulse form.