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 

Wincc 7.4 - Animation - Rotating & Moving Arrow

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIEMENS SIMATIC HMI
View previous topic :: View next topic  
Author Message
lkmnvrs
Junior
Junior


Joined: 21 Jan 2016
Posts: 4

PostPosted: 07/02/2017 14:42    Post subject: Wincc 7.4 - Animation - Rotating & Moving Arrow Reply with quote

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 :wall:
Back to top
View user's profile Send private message Send e-mail
trak
Member junior
Member junior


Joined: 24 Apr 2015
Posts: 62

PostPosted: 07/02/2017 15:32    Post subject: Re: Wincc 7.4 - Animation - Rotating & Moving Arrow Reply with quote

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 :wall:


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
View user's profile Send private message
lkmnvrs
Junior
Junior


Joined: 21 Jan 2016
Posts: 4

PostPosted: 08/02/2017 09:56    Post subject: Re: Wincc 7.4 - Animation - Rotating & Moving Arrow Reply with quote

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 :wall:


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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIEMENS SIMATIC HMI 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