WinCC wincc 7.5 c script

larry

Level-2
Beiträge
59
Reaktionspunkte
1
Zuviel Werbung?
-> Hier kostenlos registrieren
In WinCC 7.5, in the button's C script, pressing the left mouse button is 1, and releasing it is 0. Sometimes, the left mouse button release is not 0. Actually, it is jog control. other friends said that maybe the Windows system can't respond quickly. have any way?
 
How and where do you check if the tag is reset to 0 when you release the left mouse button?

Output the tag in a I/O field and check how the tag is set?

Is the tag used in the PLC? If yes, use an internal tag for testing and check if the behavior is the same. It's possible that the tag is not being set correctly in the PLC.

Is the tag set using a C or VB script? If yes, add a diagnostics window and check the tag value using a print output. For example printf(..) if the tag is set by C-script
 
This behavior has nothing to do with the operating system!

As previously mentioned, please check an I/O field to see if the value is set to 0 when the key is released. You can use printf("Tagname", tagvalue); to check if the value is set correctly. Use a output window or the apdiag tool.

If the behavior is caused by WinCC and occurs sporadically, it could be only that there is a backlog of actions (this can be checked in diagnostic files 10000 actions in work) or that an exception is triggered in a script.

How do you use the diagnostic tool "APDiag" to debug C scripts?
https://support.industry.siemens.com/cs/ww/en/view/22196775

What can be the cause of the WinCC error message "More than 10000 actions in work" (up to V6.2: "More than 5000 actions in work")?
 
Zurück
Oben