 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
lkmnvrs Junior

Joined: 21 Jan 2016 Posts: 4
|
Posted: 07/02/2017 14:42 Post subject: Wincc 7.4 - Animation - Rotating & Moving Arrow |
|
|
Hello Forum,
I am trying with a VB Script as follows. This script is written in the properties of line > rotation angle.
Dim wet
Dim rot
set wet = HMIRuntime.Screens("Newpdl0").Screenitems("Line1")
set rot = HMIRuntime.Tags("Dummy1")
If 0 <> rot. Value Then
wet.RotationAngle = wet.RotationAngle+30
Endif
Trigger = Tag : Dummy1 : Up on Change
I am switching on a PUMP & after switching ON customer wants rotation symbol. So, I made this script. I have trying a lot to run this script. But, it is not Working.
I dont know, what fault could be in this....Please Helpppp.....
I need script for an continous moving arrow's from X axis A setpoint to B Setpoint after certain bit is High. I have tried doing this, but stuck....
Please provide your suggestions  |
|
| Back to top |
|
 |
trak Member junior

Joined: 24 Apr 2015 Posts: 62
|
Posted: 07/02/2017 15:32 Post subject: Re: Wincc 7.4 - Animation - Rotating & Moving Arrow |
|
|
| lkmnvrs wrote: | Hello Forum,
I am trying with a VB Script as follows. This script is written in the properties of line > rotation angle.
Dim wet
Dim rot
set wet = HMIRuntime.Screens("Newpdl0").Screenitems("Line1")
set rot = HMIRuntime.Tags("Dummy1")
If 0 <> rot. Value Then
wet.RotationAngle = wet.RotationAngle+30
Endif
Trigger = Tag : Dummy1 : Up on Change
I am switching on a PUMP & after switching ON customer wants rotation symbol. So, I made this script. I have trying a lot to run this script. But, it is not Working.
I dont know, what fault could be in this....Please Helpppp.....
I need script for an continous moving arrow's from X axis A setpoint to B Setpoint after certain bit is High. I have tried doing this, but stuck....
Please provide your suggestions  |
Create multiple graphic objects with the arrows you need and make visible the pictures (you created in paint) to an internal or external variable .
Hide/show this object, so you can rotate this graphic object in any angle with small efforts!!
Graphic objects cannot be rotated by VBS. |
|
| Back to top |
|
 |
lkmnvrs Junior

Joined: 21 Jan 2016 Posts: 4
|
Posted: 08/02/2017 09:56 Post subject: Re: Wincc 7.4 - Animation - Rotating & Moving Arrow |
|
|
| trak wrote: | | lkmnvrs wrote: | Hello Forum,
I am trying with a VB Script as follows. This script is written in the properties of line > rotation angle.
Dim wet
Dim rot
set wet = HMIRuntime.Screens("Newpdl0").Screenitems("Line1")
set rot = HMIRuntime.Tags("Dummy1")
If 0 <> rot. Value Then
wet.RotationAngle = wet.RotationAngle+30
Endif
Trigger = Tag : Dummy1 : Up on Change
I am switching on a PUMP & after switching ON customer wants rotation symbol. So, I made this script. I have trying a lot to run this script. But, it is not Working.
I dont know, what fault could be in this....Please Helpppp.....
I need script for an continous moving arrow's from X axis A setpoint to B Setpoint after certain bit is High. I have tried doing this, but stuck....
Please provide your suggestions  |
Create multiple graphic objects with the arrows you need and make visible the pictures (you created in paint) to an internal or external variable .
Hide/show this object, so you can rotate this graphic object in any angle with small efforts!!
Graphic objects cannot be rotated by VBS. |
Do you have any sample project...In wincc, it is difficult doing so.. I am trying a lot..Pls help |
|
| Back to top |
|
 |
|
|
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
|