![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]()
|
New Here? Please read this important info!!!
![]() |
#1 |
Member
![]() ![]() Join Date: Jul 2005
Location: Rotherham
Posts: 46
|
![]()
Hi
I am running an Intouch Application script to display a pop-up window when a bit (x14)is true. This script runs every second. When the bit (x14) is true, the pop up window appears (which it should). I have a close pop-up button in the pop up which closes the pop up window. The problem is as soon as I press the close pop-up button, the pop-up window closes but the script runs again and displays the pop up again. I am looking for something which dispalys the pop up once only when the bit (x14) is true and not while true. Please help. Thx. |
![]() |
![]() |
#2 |
Lifetime Supporting Member
![]() ![]() Join Date: Aug 2004
Location: Kent
Posts: 795
|
Use a condition script, (type = on true) to call your pop-up window
__________________
www.krkautomation.com |
![]() |
![]() |
#3 |
Member
![]() ![]() Join Date: Jul 2005
Location: Rotherham
Posts: 46
|
![]()
If, i am running the script in Quick Function and not Conditional Script, is there any other way????
|
![]() |
![]() |
#4 |
Lifetime Supporting Member
![]() ![]() Join Date: Aug 2004
Location: Kent
Posts: 795
|
what is stopping you having a separate condition script just to call the pop-up?
__________________
www.krkautomation.com |
![]() |
![]() |
#5 |
Member
![]() ![]() Join Date: Aug 2004
Location: Rochester, NY
Posts: 467
|
One shot the window showing:
if (bitx14 == 1) and (window_has_been_shown == 0) then showwindow bit14window window_has_been_shown = 1 endif if bitx14 == 0 then window_has_been_shown = 0 endif |
![]() |
![]() |
#6 |
Member
|
I would use a condition script to show the window (ON TRUE) as well. But I like the way theDave2 does it. If you don't want to use a condition script you could put Daves script in the Application Script or even the Quick Function you are already using.
That's the thing about programming there are so many ways to do things that half the time you stumble on the good ones by accident and form your own standards.
__________________
There are 10 kinds of people in this world. Those that understand binary and those that don't. |
![]() |
![]() |
#7 |
Member
|
You can use a condition script (ON TRUE) to call the Quickscript you have already created.
|
![]() |
![]() |
#8 |
Member
|
Yes you can. It all depends on your application....
__________________
There are 10 kinds of people in this world. Those that understand binary and those that don't. |
![]() |
![]() |
Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to establish communication between InTouch SCADA application and RSEmulator500 | gorillaz_sg | LIVE PLC Questions And Answers | 5 | November 3rd, 2015 11:11 AM |
Wonderware InTouch - Auto select application | blue39 | LIVE PLC Questions And Answers | 4 | October 31st, 2009 03:17 PM |
RSView Application Query | gareth.cantrill | LIVE PLC Questions And Answers | 2 | February 23rd, 2006 02:55 PM |
Wonderware Script Issue | ControlLogix | LIVE PLC Questions And Answers | 2 | October 24th, 2005 12:56 PM |
PLC application query | acmavs584 | LIVE PLC Questions And Answers | 3 | October 2nd, 2005 12:46 AM |