3/7/2006 12:02 PM | |
Joined: 9/27/2005 Last visit: 11/27/2007 Posts: 1398 Rating: (151)
|
One way would be to use an event script on the slider instead of linking it to a tag. Steps to do this are: · Create floating point tag, e.g. slider1 · Draw slider on screen with min / max values of 0to 10 and set the step value to 1 · Right-click the slider and select Properties · In the Properties Dialog Window navigate to Events \ Property Topics \ Miscellaneous \ Process Driver Connection \ Change and create a VBS script The script could be for example [code] Sub Process_OnPropertyChanged(ByVal Item, ByVal value) HMIRuntime.Tags("slider1").Write value / 10.0 End Sub [/code] Of course you may need to change the values I have used. The key is to divide the value from the slider and write the result to the tag. I have attached a simple example developed using WinCC V6 SP3 I hope this helps. I am sure there are other ways to do this too. Regards, Salma Attachmentslider.zip (131 Downloads) |
3/7/2006 4:34 PM | |
Joined: 3/7/2006 Last visit: 11/5/2024 Posts: 37 Rating: (2) |
Thank you very much. Andreu. |
Follow us on