Technical Forum

SIMATIC WinCC flexible

how to run script continue in wincc flexible run time on PC

Thread Starter: Naveen Paliwal   Started: 6/1/2011 12:49 PM   Replies: 10

« Previous thread Next thread »
12» Page 1 of 2 (11 items)
  6/1/2011, 12:49 PM
Joined 3/23/2010
Last visit: 11/6/2012
Posts: 31
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) 
Dear Expert's

I want to run script continuously in WinCC Flexible run time on my server PC. one more ques.> suppose i have M0.0 as a spare bit, now when i modify it to one with VAT table at that time in wincc flexible runtime button will press automatically and when M0.0 is zero button will release.

thnks naveen



=== Edited by Naveen Paliwal @ 6/1/2011 12:50 PM [GMT ] ===


Top
  6/1/2011, 6:48 PM
Joined 5/28/2009
Last visit: 7/21/2014
Posts: 124
Rating:
Rated: Outstanding [3.3 out of 5 / rated 10 time(s)]. (10) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Naveen Paliwal wrote:
Dear Expert's

I want to run script continuously in WinCC Flexible run time on my server PC. one more ques.> suppose i have M0.0 as a spare bit, now when i modify it to one with VAT table at that time in wincc flexible runtime button will press automatically and when M0.0 is zero button will release.

thnks naveen


Hello...

You have continuously run the script in winccFlxible.

For Example see the attachment........................

And you also test the button press and release action via script or normal tag editing process.

Attachment: WinccFlx_Script.JPG  (514 Downloads)



=== Edited by MavEric @ 6/1/2011 6:50 PM [GMT ] ===



Regards,
SkD

Top
  6/1/2011, 6:55 PM
Joined 9/28/2010
Last visit: 7/10/2014
Posts: 145
Rating:
Rated: Excellent [4.25 out of 5 / rated 12 time(s)]. (12) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Naveen Paliwal wrote:
Dear Expert's

I want to run script continuously in WinCC Flexible run time on my server PC. one more ques.> suppose i have M0.0 as a spare bit, now when i modify it to one with VAT table at that time in wincc flexible runtime button will press automatically and when M0.0 is zero button will release.

thnks naveen


This Button when press it Set's some Tags so::
  1. write script sets this tages if M0.0 is high                                                                 
  2. goto tag M0.0 in its Properties -> Events -> Change Value and call the previes script ( look to the first Attachment).
  3. go to button properties -> Animation -> Enable Object . Enable it, and then in Object state make it Disabled and chose the tag M0.0.
I hope its helpgrin.



=== Edited by AmirAlwaled @ 6/1/2011 6:58 PM [GMT ] ===


=== Edited by AmirAlwaled @ 6/1/2011 6:56 PM [GMT ] ===


Top
  6/10/2011, 7:12 PM
Joined 10/20/2009
Last visit: 7/14/2014
Posts: 205
Rating:
Rated: Excellent [4.3 out of 5 / rated 10 time(s)]. (10) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,

You can use scheduler to run the script continuously after certain duration according to your requirement.

Regards,
R J
===================================
Your ‘I CAN’ is more important than your ‘I.Q’
Top
  6/14/2011, 6:42 AM
Joined 11/18/2010
Last visit: 7/2/2014
Posts: 485
Rating:
Rated: Outstanding [3.5 out of 5 / rated 28 time(s)]. (28) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Dear amir,

i think this may not work because in one of my project i have faced same problem.for running script i have to trigger some command manually.

So i think best option is we can use schedular>in event >run script


viral patel 
Top
  6/14/2011, 6:46 AM
Joined 11/18/2010
Last visit: 7/2/2014
Posts: 485
Rating:
Rated: Outstanding [3.5 out of 5 / rated 28 time(s)]. (28) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Dear R J,

you are right but schedular itself has lowest monitoring Event is 1 minute ,So how can we Run Script Fast.Example 1 sec or less?

viral patel 
Top
  6/14/2011, 8:01 AM
Joined 10/20/2009
Last visit: 7/14/2014
Posts: 205
Rating:
Rated: Excellent [4.3 out of 5 / rated 10 time(s)]. (10) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,

Thats right. If you want to keep script execution cycle less than a minute, in that case write your script in "IF..Else" & change that bit after evrey second or so in logic continuously. Thus you can execute your script continuously in less than a minute.

Regards,
R J
===================================
Your ‘I CAN’ is more important than your ‘I.Q’
Top
  6/15/2011, 10:39 AM
Joined 10/19/2009
Last visit: 6/3/2014
Posts: 11
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) 
Naveen Paliwal wrote:
Dear Expert's

I want to run script continuously in WinCC Flexible run time on my server PC. one more ques.> suppose i have M0.0 as a spare bit, now when i modify it to one with VAT table at that time in wincc flexible runtime button will press automatically and when M0.0 is zero button will release.

thnks naveen


Dear all,

some comments about making scripts run cyclically. ("Continuously" would mean the script never stops, and this would make the HMI hang. Maybe I'm nitpicking now? blush)

You do not need to connect the tag to a button to make the script run. An easier and more reliable way is to trigger the script by the "on change" event of the tag.

Make sure the aquisition cycle for the tag is "cyclic continuous". "Cyclic on demand" would lead to that the tag doesn't change (and the script doesn't run) unless a screen that accesses the tag is active.

Set the aquisition cycle at least twice as fast (half the time) than the PLC change interval. Otherwise there is a risk that the PLC changes the value twice (eg true-false-true) during one aquisition cycle, so that the HMI can't detect the change. For shorter intervals than 1s, you might make the triggering more reliable by looping an integer type tag rather than using a boolean. (But for very short intervals and/or complicated scripts, there will still be a risk of overloading the HMI.)

All of the above is based on my experience of WCF 2005, but I'm fairly sure the same applies to later versions.

Best regards
Top
Thank you for this post from:
  6/15/2011, 4:11 PM
Joined 3/23/2010
Last visit: 11/6/2012
Posts: 31
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) 
dear all,

thnks to all for help.

rgds
naveen
Top
  11/11/2011, 1:35 PM
Joined 3/20/2011
Last visit: 6/6/2014
Posts: 65
Rating:
Rated: Good [1 out of 5 / rated 1 time(s)]. (1) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi  naveen,
  This is raghu. Do u got any solution for your requirement. I too need same. Logging automatically after completion of one cycle without manually updating from HMI or through runtime. By not using Scheduler after completion of cycle, taking acknoledgement from PLC it has to update. Any Help please?


Regards,
Raghu
Top
12» Page 1 of 2 (11 items)
Actions