plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do you represent flowing water in WinCC?

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Simatic Automation Systems
View previous topic :: View next topic  
Author Message
maersk
Member 3
Member 3
maersk

Joined: 17 Aug 2014
Posts: 891

PostPosted: 14/12/2015 19:12    Post subject: How do you represent flowing water in WinCC? Reply with quote

How do you represent flowing water in WinCC?
https://support.industry.siemens.com/cs/document/88357559/how-do-you-represent-flowing-water-in-wincc
You can represent flowing water in WinCC using an animated polyline
How do you represent flowing water in WinCC? How do you represent flowing water in WinCC?
How do you represent flowing water in WinCC? How do you represent flowing water in WinCC?
For the sake of looks, a polygon pipe was added along each of the polylines and a valve placed at the beginning of the pipes. For optimum representation you should place the valve so that it overlaps 20 pixels of the polyline.

4 Change the following settings of both polylines:
Properties > Colors
Properties > Styles: Line thickness: 10, Line type: see Fig. 02
How do you represent flowing water in WinCC? How do you represent flowing water in WinCC?
Fig. 02
Properties > Other: Display: No
Properties > Display: Central color scheme: No, Object transparency: 50
5 Realizate the following Visual Basic Script
in the "Geometry > Current value X" property of the polyline01 object. Select the "Animation cycle" trigger.
How do you represent flowing water in WinCC? How do you represent flowing water in WinCC?
Fig. 03

Replace the value 40 with the X value of the first point of the polyline. To get this value you change the value under Object Properties > Geometry > Index to 1 and then read the "Current value X" value. Replace the value 58 with you X value + 18. This value depends on the line thickness (guideline value: 2 * line thickness - 2)

6 Create the following Visual Basic Script in the "Geometry > Current value Y" property of the polyline02 object. Select the "Animation cycle" trigger.
How do you represent flowing water in WinCC? How do you represent flowing water in WinCC?
Fig. 04
Replace the value 40 with the Y value of the first point of the polyline. To get this value you change the value under Object Properties > Geometry > Index to 1 and then read the "Current value Y" value. Replace the value 58 with your Y value + 18. This value depends on the line thickness (guideline value: 2 * line thickness - 2)

7 Produse the following Visual Basic Script for the Mouse > Mouse click event of the btnStart object.
How do you represent flowing water in WinCC? How do you represent flowing water in WinCC?
Fig. 05

8 Create the following Visual Basic Script for the Mouse > Mouse click event of the btnStop object.
How do you represent flowing water in WinCC? How do you represent flowing water in WinCC?
Fig. 06

9 Configure a direct connection to the Mouse > Mouse click event of the btnDirectionLR object. Assign the constant "0" to the "Water Flow Direction" tag.
How do you represent flowing water in WinCC? How do you represent flowing water in WinCC?
Fig. 07

10 Configure a direct connection to the Mouse > Mouse click event of the btnDirectionRL object. Assign the constant "1" to the "Water Flow Direction" tag.

11 Configure a direct connection to the Mouse > Mouse click event of the btnSpeedLow object. Assign the constant "0" to the "Water Flow Speed" tag.

12 Configure a direct connection to the Mouse > Mouse click event of the btnSpeedNormal object. Assign the constant "1" to the "Water Flow Speed" tag.

13 Configure a direct connection to the Mouse > Mouse click event of the btnSpeedHigh object. Assign the constant "2" to the "Water Flow Speed" tag.

Download
https://support.industry.siemens.com/cs/attachments/88357559/waterflowanimation.zip
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Simatic Automation Systems All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro