WinCC 7.0 expression

ProTool, WinCC flexible, WinCC, PP/OP/TP/TD/MP
Post Reply
krneki
Posts: 21
Joined: Fri Jun 24, 2011 8:56 am

WinCC 7.0 expression

Post by krneki » Thu Aug 30, 2012 1:54 pm

I was wondering how could I write up expression for this cases:

1st case: object A changes color this way: when Q0.1 is on 1 AND Q.2 on 0, it's red. When Q0.2 is on 1 AND Q0.1 on 0, it,s green. In all other cases, it stays in current color.

2nd case: object B changes color from red to green as soon as Q0.3 gets on 1 and stays green until Q0.4 gets to 1, which sets it back to red. Just like SR flipflop.

Thank you for help in advance.

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

Re: WinCC 7.0 expression

Post by PLC_ITA » Sun Sep 02, 2012 11:20 am

Hi, there ar some way to do this.
I suggest to create a simple logic into a plc and set/reset bit in a data block ( db.dbx... ) use this bit in wcc to change color.
( this is the way that i prefer )

Otherwise you can create a script (VB or C ) directly in wcc in the color propreties ( right click .... script .... )

You can write a function in C or VB editor and recall in color properties ( dinamic ... )
( i use this way in case of multiple object )

bye

Post Reply