[?]: WinCC Flexible and script

ProTool, WinCC flexible, WinCC, PP/OP/TP/TD/MP
Post Reply
PLC_ITA
Posts: 263
Joined: Sat May 27, 2006 6:46 am
Location: Europe

[?]: WinCC Flexible and script

Post by PLC_ITA » Mon Nov 12, 2007 10:31 pm

Hi friend's,
Usually , i work whit Wcc 6.2, and Wcc flexible is new for me.
It's easy to use, but the script are different .
Where i can find, a help or a manual to learn a script in wcc flexible ?
The online help do not have a detail, and into Siemens Site i have'nt found nothing

thank you to all !

Umencho
Posts: 508
Joined: Mon Jul 16, 2007 12:28 pm
Location: Europe

Re: [?]: WinCC Flexible and script

Post by Umencho » Tue Nov 13, 2007 6:40 am

Hi PLC_ITA

Did you read manuals about WinCC Flex into "your" SIMATIC Manual Collection 05/2007 :wink: .
For me will be imposible to find more detail about scripting in WinCC Flex.

You know maybe, Siemens give you only basic and after that you must learn yourself. :roll:
But maybe someone have something in detail?

regards

PLC_ITA
Posts: 263
Joined: Sat May 27, 2006 6:46 am
Location: Europe

Post by PLC_ITA » Sun Nov 18, 2007 8:17 am

Hi,
for example if a plc bit is true i need to start a script every second.

is possible ?

bunglehead
Posts: 109
Joined: Thu Oct 19, 2006 7:00 am
Location: Russia

Post by bunglehead » Sun Nov 18, 2007 12:02 pm

Hi, unfortunately not. The accuracy of scheduler of its runtime is a minute. so you've to trigger script using OnChange of second bit of PLC. in this script you can check the condition bit to execute main body of script. If you could tell more about purpose of this we'll try to find another solution.

PLC_ITA
Posts: 263
Joined: Sat May 27, 2006 6:46 am
Location: Europe

Post by PLC_ITA » Mon Nov 19, 2007 9:44 pm

hi, Bunglehead,
sigh, only a minute ... but no problem, i use a plc bit whit a 1 second of clock.
Also if is,nt a precise timer , is,nt a problem.
I don't understand, how to use this bit to start my script ?

can you hel me ?

I have create a Tag named CLOCK_1s linked to the plc.
If i use this bit to change a color , for example, is all ok.

If i want to use this bit for to start a script, how i can do ?

thank you

bunglehead
Posts: 109
Joined: Thu Oct 19, 2006 7:00 am
Location: Russia

Post by bunglehead » Tue Nov 20, 2007 6:43 am

hi, it's very simple. Goto Properies page of tag you'll see there Events -> Change value (as I remember, could tell more precisely being in office). For this event you can assign a function list, which can contain user scripts.

P.S. Since WinCC flexible 2005 HF5 (as I remember) this event could also be used for array tags.

charles_ch_tan
Posts: 10
Joined: Mon Nov 19, 2007 4:27 am
Location: Singapore

Post by charles_ch_tan » Wed Nov 21, 2007 2:31 am

hi PLC_ITA, what the buglehead said is true...just use Events-> Change value of your TAG (CLOCK_1S).
But u must put a hiden status of your TAG on every display page. Otherwise it wont works.

bunglehead
Posts: 109
Joined: Thu Oct 19, 2006 7:00 am
Location: Russia

Post by bunglehead » Wed Nov 21, 2007 4:51 am

charles_ch_tan wrote:But u must put a hiden status of your TAG on every display page. Otherwise it wont works.
Not necessary. You can set update mode to Cyclic Continuous instead of Cyclic on use.

charles_ch_tan
Posts: 10
Joined: Mon Nov 19, 2007 4:27 am
Location: Singapore

Post by charles_ch_tan » Wed Nov 21, 2007 6:13 am

Oh. IC...Finally, I understand already...
thanks bunglehead...

Post Reply