request: wincc 7 moving pic

Fmam89

Member
Join Date
Aug 2015
Location
egypt
Posts
19
Hi Guys
I work in project using Wincc 7
I want to make motor or fan rotate when signal become true
and stop rotating when signal become false

I can do that ??
Thanks .
 
If your fan is a picture like bmp, jpg or png, then it's not possible to do a rotate animation on this objects.

Using gifs would be a solution, but gifs can only be used inside a webbrower-control.

But if you build your fan out of basic graphics objects (line, box, circles and so on), you can emulate a rotation by setting the elements visible and unvisble.

To realize this, you'll need a toogle bit, or a counter which is incremented in your specific cycle.
You can use an internal tag named like "counter5" (signed 16 Bit integer), which is every 250ms incremented by 1, and runs between 0 and 4.

To do the cyclic increment, you add a global C-script action with this code:
Code:
int val;
val = GetTagSWord("counter5");
val++;
if (val > 4) val = 0;
SetTagSWord("counter5", val);
As trigger for this action, you set a cyclic 250ms trigger (or whatever you need for your animation).

Then you toogle your fan-elements visible dependent on the value of "counter5".
 
In the past I have used a timer which is enabled by the bit being true, say to count to 4. Made 4 difference images in any pic editor (Paint.net for me) Rotate the pictures and save them as 4 difference files.

Make a graphics list for those 4 images and then use a graphic output field and point to the ET of the timer and voila!
 
can this be done by using wincc flexiable 2008 sp...
if yes how to do it ..i had try many but failed ..
 

Similar Topics

I have two old WinCC projects which were created with WinCC v5.1 I believe. Unfortunately I use version 7.0 so I cannot open them to see how they...
Replies
2
Views
2,045
So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
485
Hello all, I hope you're all doing well. I am a complete newbie with a program sent by the manufacturer. I want to use it on a different plc, as...
Replies
3
Views
333
I know it is fairly simple to post a screenshot, but many of us have large screens, so perhaps y'all could take the time to trim those screenshots...
Replies
4
Views
541
Good afternoon all I'm a bit puzzled. 19 inch AB HMI. addressed 192.168.1.22. laptop 192.168.1.10. I can see it in Linx. I can download .mer to...
Replies
3
Views
641
Back
Top Bottom