| View previous topic :: View next topic |
| Author |
Message |
isass Junior

Joined: 09 Jan 2018 Posts: 4
|
Posted: 04/03/2020 15:46 Post subject: Rotation fan animation by script |
|
|
hi to all
i want make script for rotation fan in the hmi. i write this script but don't work.
int count = 0 ;
if (count == 0){
count =count+1;
if (count >= 25){
count =0;
}}
FAN_DONME.write(count);
pls help me.  |
|
| Back to top |
|
 |
btk35 Junior

Joined: 24 Jan 2019 Posts: 3 Location: Turkey
|
Posted: 17/03/2020 10:02 Post subject: |
|
|
| i need too. please help |
|
| Back to top |
|
 |
deyylas Junior

Joined: 25 Jun 2019 Posts: 1
|
Posted: 17/03/2020 13:23 Post subject: |
|
|
| Code: | //If needed more speed or less speed Just modify these.
//(example for speed from time*20 to time*100)
//(example for Slow from time*20 to time*8)
$a = time*10;
$b = time*20;
$c = time*30;
$d = time*40;
$e = time*50;
$t = time*60;
$o = time*70;
$p = time*80;
// -----X----- \\
if (speed == 1)
fan.rotateY = $a;
if (speed == 2)
fan.rotateY = $b;
if (speed == 3)
fan.rotateY = $c;
if (speed == 4)
fan.rotateY = $d;
if (speed == 5)
fan.rotateY = $e;
if (speed == 6)
fan.rotateY = $t;
if (speed == 7)
fan.rotateY = $o;
if (speed == 8)
fan.rotateY = $p; |
|
|
| Back to top |
|
 |
rygs Junior

Joined: 28 Jun 2019 Posts: 1
|
Posted: 17/03/2020 13:27 Post subject: |
|
|
| https://www.youtube.com/watch?v=It46b26nDR4 |
|
| Back to top |
|
 |
|