You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old September 6th, 2007, 08:46 AM   #1
catalin78
Member
Romania

catalin78 is offline
 
catalin78's Avatar
 
Join Date: Feb 2005
Location: Constanta
Posts: 115
wincc flex fan animation

Hello !

I need help to create a rotating fan , there are 2 frames of a fan in wincc flex , if anybody knows how to animate them .... or some other solutions

Thanks
__________________
a wasted talent is a theft
  Reply With Quote
Old September 6th, 2007, 10:14 AM   #2
manmeetvirdi
Member
India

manmeetvirdi is offline
 
Join Date: Oct 2004
Location: India.
Posts: 749
Hi Catalin78

One of the way is draw a blade of desired size of fan by using paint of Microsoft.
Then import it in Wincc Flexible.
Now orient the blade on different angle and then make each blade visible in sequence of short intervals by writing a small PLC code.
  Reply With Quote
Old September 6th, 2007, 10:17 AM   #3
catalin78
Member
Romania

catalin78 is offline
 
catalin78's Avatar
 
Join Date: Feb 2005
Location: Constanta
Posts: 115
thanks for reply , i can do that but i was looking for something locally in wincc flex so i can spare bandwith and load on cpu .
I have 30 rooms with fans .
__________________
a wasted talent is a theft
  Reply With Quote
Old September 6th, 2007, 10:19 AM   #4
JesperMP
Lifetime Supporting Member + Moderator
Denmark

JesperMP is offline
 
JesperMP's Avatar
 
Join Date: Feb 2003
Location: Copenhagen.
Posts: 11,784
Maybe animated GIFs can work as illustrations in WinCC Flexible.
Would like to know myself is this is possible.
__________________
Jesper
3 strikes and you're out
  Reply With Quote
Old September 6th, 2007, 12:58 PM   #5
catalin78
Member
Romania

catalin78 is offline
 
catalin78's Avatar
 
Join Date: Feb 2005
Location: Constanta
Posts: 115
could be but i need a steady image and a rotating animated one , do you have some ? i will test it
__________________
a wasted talent is a theft
  Reply With Quote
Old September 6th, 2007, 02:39 PM   #6
JesperMP
Lifetime Supporting Member + Moderator
Denmark

JesperMP is offline
 
JesperMP's Avatar
 
Join Date: Feb 2003
Location: Copenhagen.
Posts: 11,784
There is an animated GIF in my signature (hint: there's BEER in it !). If you only use it for testing I dont think you will violate any copyrights. You can also try to google "free animated GIF".
__________________
Jesper
3 strikes and you're out
  Reply With Quote
Old September 7th, 2007, 07:31 AM   #7
RGB
Member
Canada

RGB is offline
 
Join Date: Apr 2002
Location: Brantford, ON
Posts: 94
Instead of using a PLC variable to control the picture change, you can set up an internal variable on the panel itself and use short scripting to set the change.
__________________
Regards,

Rob
  Reply With Quote
Old September 7th, 2007, 08:33 AM   #8
JesperMP
Lifetime Supporting Member + Moderator
Denmark

JesperMP is offline
 
JesperMP's Avatar
 
Join Date: Feb 2003
Location: Copenhagen.
Posts: 11,784
Just tried to insert an animated GIF in a WinCC Flexible project.
Unfortunately, it doesnt animate at runtime
__________________
Jesper
3 strikes and you're out
  Reply With Quote
Old September 7th, 2007, 08:59 AM   #9
cjd1965
Member
United Kingdom

cjd1965 is offline
 
Join Date: Apr 2007
Location: UK
Posts: 1,236
Hi dont know if this link helps because I am not registered on that forum but they have examples of bottles moving on a conveyor

www.automation.siemens.com/WW/forum/guests/PostShow.aspx?PostID=15186 - 127k -

Cheers
  Reply With Quote
Old September 7th, 2007, 10:28 AM   #10
manmeetvirdi
Member
India

manmeetvirdi is offline
 
Join Date: Oct 2004
Location: India.
Posts: 749
Hi cjd1965
Same kind of animation is there on sample project of MP370 which can be downloaded from Siemens web site (http://support.automation.siemens.co...22900091).They have done this using script.But for that you need to have the pictures of the object at diffrent position.
Jesper even I also gave a shot to import animated file into WinCC flexible only to meet failure.
  Reply With Quote
Old February 18th, 2009, 05:22 AM   #11
Marshy
Member
United Kingdom

Marshy is offline
 
Join Date: Apr 2007
Location: Bath,UK
Posts: 216
Realise I'm a bit late on this thread, but came across it whilst I was looking for tips on how to do the same thing

I'm running WinCC Flex 2008 and an MP277 touch.

I downloaded the MP277 sample project and in that project there is a Silo application where they're animating the fan.

When the screen is loaded they generate a Simulation Tag which switches on and off.

This tag was then used in a multiplexed tag to show whether the fan was running or not.
Attached Images
File Type: jpg Simulate.jpg (17.6 KB, 292 views)
  Reply With Quote
Old April 17th, 2009, 05:11 AM   #12
Quartz
Member
Lithuania

Quartz is offline
 
Join Date: Jan 2008
Location: Kaunas
Posts: 23
I was looking for animation example for Wincc Flexible 2007 with no luck. but today i have found a solution. I think it must work with all panels which support scripts.

So i have placed in screen GraphicIO Field, created graphic list with 10 images
As process tag i have created AnimationByte tag.

To rotate AnimationByte values from 1 to 10 i've created script. In sheduler created job which start script on change screen.

Script:
Code:
Dim Sec,LastSec,LoopCount,LoopCount2, Speed, Counts_10ms
Speed=4                         ' rotation speed  10ms*4 = 40ms
If SmartTags("AnimationByte")<>0 Then Exit Sub  ' to prevent run sub multiple times
Do
	LoopCount=LoopCount+1
	Sec=Second(Now)
	If Sec<>LastSec Then 
		LastSec=Sec
		Counts_10ms=LoopCount/100
		LoopCount=0
	End If
	LoopCount2=LoopCount2+1
	If LoopCount2>=(Counts_10ms*Speed) Then 
		SmartTags("AnimationByte")=SmartTags("AnimationByte")+1
		If SmartTags("AnimationByte")>10 Then SmartTags("AnimationByte")=1 End If
		LoopCount2=0
	End If
	
Loop
So happy animating!
  Reply With Quote
Old April 17th, 2009, 08:42 AM   #13
Quartz
Member
Lithuania

Quartz is offline
 
Join Date: Jan 2008
Location: Kaunas
Posts: 23
unfortunately, this endless loop blocks executing other scripts. Tags still updating ok.
Is there any command like "DoEvents"?
  Reply With Quote
Old April 17th, 2009, 09:48 AM   #14
CharlesM
Member
United States

CharlesM is offline
 
Join Date: Aug 2005
Location: Arkansas
Posts: 1,100
Looks to me like the Simulation Tag will do everything you are doing in your script. This is on my "to do" list when I get time. Flexible does some animations well but not others. I think the main thing it is lacking is a way to rotate items.

OT
I have been working on making animations in Solidworks showing different machine cycles. I can save these animations out to avi files but I can also save them as a series of images. When I get time I would like to take a series of these pictures and put them into a image list in WinCC Flexible then index through them using this simulation tag. I think it would make some nice animation on a HMI.
  Reply With Quote
Old April 20th, 2009, 02:31 AM   #15
Quartz
Member
Lithuania

Quartz is offline
 
Join Date: Jan 2008
Location: Kaunas
Posts: 23
Hmm cant find Simulation Tag. I have wincc flexible 2007 version. I cant open siemens sample projects, tey all are 2008 version projects.
Is Simulation Tag aviable only in version 2008?
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Citect Vs WinCC - Long Doug_Adam LIVE PLC Questions And Answers 22 October 3rd, 2014 12:56 PM
Fan rotation animation in RSView32 nirmal LIVE PLC Questions And Answers 3 January 6th, 2012 05:33 AM
WINCC Flex 2005 + SP1 = no OP73 communication Combo LIVE PLC Questions And Answers 3 May 9th, 2010 09:51 PM
Siemens WinCC Flex to Oracle Wired LIVE PLC Questions And Answers 1 October 19th, 2005 02:37 AM
WinCC Flex - Coming Soon!! PLucas LIVE PLC Questions And Answers 21 August 22nd, 2005 07:23 AM


All times are GMT -5. The time now is 06:35 PM.


.