![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#1 |
Member
|
Wincc Flexible Change Value Problem!
Hi everyone
I’m beginner and I have a strange problem with wincc flexible. There is a kind of valve in the project that sends 2 bit for its status: “open_status” and “close_status”. So I there are 4 conditions: - close status = 0 and open_status= 1 : valve is open - close status = 1 and open_status= 0 : valve is closed - close status = 0 and open_status= 0 : valve fault - close status = 1 and open_status= 1 : valve fault I want to show status of a valve with a graphic object in different colors. I make an integer tag: “valve_status”. On “Change value” of two bits (“open_status” and “close_status”), there is a script to check 2 bits and update “valve_status” with the new number: - close status = 0 and open_status= 1 : valve_status = 1 valve is open - close status = 1 and open_status= 0 : valve_status = 0 valve is closed - close status = 0 and open_status= 0 : valve_status = 2 valve fault - close status = 1 and open_status= 1 : valve_status = 2 valve fault I assign “valve_status” to appearance of the graphic object and give it 3 different colors. The problem is that it works in simulator without any problem, but it doesn’t work in real OP. The script doesn’t run in real OP. In fact I place 2 graphic objects in the screen and assign two bits (open and close status) to them. It makes the problem gone! But it’s not good. I’m sorry for explaining too much! Any idea!? |
![]() |
![]() |
#2 |
Member
![]() ![]() Join Date: Aug 2005
Location: Arkansas
Posts: 1,129
|
What panel are you using? Some panels don't support scripts.
|
![]() |
![]() |
#3 | ||
Lifetime Supporting Member
|
Quote:
Quote:
|
||
![]() |
![]() |
#4 |
Lifetime Supporting Member + Moderator
|
(rant alert)
I cringe when I see people jumping to using scripts for anything. There ought to be a big fat warning in WinCC Flexible, telling users to not use scripts unless there is no other way, and then only very sparingly. (rant finished) Use the PLC to pack the animation tag based on the sensors. Dont use the HMI for this. Then use appearance animation that are linked to the animation tag to achieve what you want.
__________________
Jesper ![]() NOTICE: JesperMP has passive-aggressive tendencies, can be impolite and may even use sarcasm ! Also: ᛁᚠ ᚢᚬᚢ ᚴᚬᚾ ᚱᛅᚬᛏ ᚦᛁᛋ ᚦᛅᚾ ᚢᚬᚢ ᚼᚬᚠᛅ ᚴᚬᛁᚾᛅᛏ ᛘᚢ ᚱᛅᛋᛒᛅᚴᛏ |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
WinCC and WinCC Flexible comparission | Gromit | LIVE PLC Questions And Answers | 2 | September 12th, 2009 03:16 AM |
citect to wincc flexible | nehe bhimaji | LIVE PLC Questions And Answers | 0 | November 6th, 2008 01:38 AM |
wincc & wincc flexible differences | is_razi | LIVE PLC Questions And Answers | 1 | September 18th, 2008 11:24 PM |
Why cant OPs state the "Flexible" in WinCC Flexible ? | JesperMP | LIVE PLC Questions And Answers | 0 | August 5th, 2008 02:41 AM |
WinCC Flexible and Data logging | Prince | LIVE PLC Questions And Answers | 5 | January 2nd, 2007 06:18 AM |