Sign in to follow this  
Followers 0
Leandro

Wincc Professional V 12 Scripts

2 posts in this topic

Hello! I have an issue with Wincc Professional V 12 (TIA) when trying to run a Script continously. What i want to do is to set a static text field with several strings according to the state of some PLC Inputs. This is for Emergency Stop States. When i press , for instance, input I2.3 from the PLC i want to write "Emergency One", when i press input I2.4 i want to write "Emergency Two", etc... everything done in the same text field. So, i guess i have to use scripts. I´ve already written a Script with this code: Sub FuncionVB_2() Dim CampoTexto If SmartTags("Parada_Actual") = 0 Then Set CampoTexto = HMIRuntime.Screens("Imagen_1").ScreenItems("Parada_Actual") CampoTexto.Text = "Emergency One"CampoTexto.FontBoldCampoTexto.FontSize(1000)CampoTexto.FlashingEnabled End If End Sub How can i run that code continously, in order to check the inputs states?? Thanks in advance.

Share this post


Link to post
Share on other sites
Call script for a "On change" event for a tag that contains you bits.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0