Technical Forum

Process Control Systems SIMATIC PCS 7

How to stop WinCC from navigating away from a screen that is running a c-script?

Thread Starter: Cammo   Started: 7/4/2012 1:32 AM   Replies: 1

« Previous thread Next thread »
Page 1 of 1 (2 items)
  7/4/2012, 1:32 AM
Joined 10/15/2008
Last visit: 4/26/2013
Posts: 18
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi Everyone,

I currently have a runtime page that when navigated to runs a c-script to gather data. 

If I navigate to the screen the c-script executes and takes a few seconds to retrieve all the neccessary data (running a while loop). Once the data is collected and displayed on the screen I can then navigate around WinCC runtime with no problems.

The problem I am having is as follows:

If I navigate to the screen and then before the c-script has completed I navigate to another screen then WinCC runtime starts to hang/freeze almost and I can no longer navigate. I think the script is still active in the background and is causing this problem. The only way to resolve ths is to shut WinCC runtime down and restart.

Is there a way to either abort the script when navigating away from the screen or to prevent the user from navigating away until the script has finished executing?

I am using standard PCS7 V7.1 SP3

Thanks
Cameron





=== Edited by Cammo @ 7/4/2012 1:34 AM [GMT ] ===


Top
  7/4/2012, 8:40 AM
Joined 9/17/2007
Last visit: 6/3/2013
Posts: 489
Rating:
Rated: Outstanding [3.82 out of 5 / rated 50 time(s)]. (50) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Good morning,
 
  to interrupt a script isnt a good solution. I´m not shure, but I would say it´s impossible to interrupt an running script manually. What´s the start trigger of the data collecting script? Maybe it´s better to change the script execution in global script level. Then start the script with an internal variable if the picture will be opened.

 The "Interlock Solution" for the screen ... wait until the script is finish makes operators angry....

VG / regards vanDyk
Top
Page 1 of 1 (2 items)
Actions