A question is about Wincc VBS

Join Date
Jul 2006
Location
TÜRKİYE
Posts
22
Dear friends;

I want to learn this subject..İts that

For example at graphich screen at Wincc we have 2 object..

One of them Lorry..
Another is lamp..

My question is that;

At first lorry at a position at screen for example at X(255) ordinate, Y(185) ordinate..

And our lamp is at X(400) ordinate,Y(150) ordinate...

We purpose that when the lorry come to X(400) lamp will be open..

For this question we must do write VBS code..

I tried so much but i couldnt achievement..
Also at first i give tag to lorry,it can be movement automatically with wincc simulator but i couldnt write right VBS code to LAMP ON OFF action ..

Can u help me pls?
 
You should be able to predict your Tag value when the lorry is at X(400) ordinate
A quick solution is to "link" your lamp to the same Tag you are linking to the lorry movement instead of depending on other object.
 
ayman metwally said:
You should be able to predict your Tag value when the lorry is at X(400) ordinate
A quick solution is to "link" your lamp to the same Tag you are linking to the lorry movement instead of depending on other object.

can we do it without using tag with only using VBS codes?
 
Alsalam Alikom,

Greetings Ulkucu ..

Actually I don't know about WinCC, but I was suggesting a generic idea that is applicable using any SCADA software.

Regards.
 
ayman metwally said:
Alsalam Alikom,

Greetings Ulkucu ..

Actually I don't know about WinCC, but I was suggesting a generic idea that is applicable using any SCADA software.

Regards.

Ve aleyna aleyküm selam

thanks for your helping .. i hope somebody will help about this topic
 
You should first attach the next VBS to the (Change Value) event of the Lorry tag.

If Lorry.X=400 Then
Lamp=1
Else
Lamp=0
End If
 

Similar Topics

Hello all, I'm having a problem that i could use some advice on. I have a combo box and a static text box that has dynamic text based off an...
Replies
0
Views
2,178
I'm continuing my Siemens education. I need some help with compatibility details. My customer has a machine that was made by a company no longer...
Replies
6
Views
4,039
I've got an old WinCC project and I'm trying to check what tag address certain values relate to. I have a screen that refers to...
Replies
5
Views
2,216
Dear, Iam back here to lots of query about wincc because my boss give me a project that he want to our conveyor system visual in SCADA. But i...
Replies
20
Views
5,030
We use Siemens WinCC flexible 2007 for HMI. In the HMI in one screen when one object pressed a faceplate open. In the faceplate many object there...
Replies
2
Views
1,848
Back
Top Bottom