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!?
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!?