5/16/2023 12:42 PM | |
Joined: 4/8/2021 Last visit: 6/17/2024 Posts: 638 Rating: (102) |
Hi I think more information about your use case is needed in order to know the most suitable solution for you. For example if your tag is a PLC tag i think the easiest way to do this is by using the increment INC function block. https://support.industry.siemens.com/cs/ww/en/view/109815056/162084226955 Hope it helps. Br, Cocolino |
Best regards, |
|
5/23/2023 11:51 AM | |
Joined: 8/3/2009 Last visit: 6/25/2024 Posts: 13115 Rating: (1666)
|
Hello U_f0f3ec87-89bf-4... how to read/write a tag value you will find information and examples in the help system: https://support.industry.siemens.com/cs/ww/en/view/109792585/118089674379 In a "oneline" VB Script It could be like this: ---------- HMIRunime.Tags("Tagname").Write HMIRuntime.Tags("Tagname").Read +1 ---------- ------- 'VBS130 Dim objTag Set objTag = HMIRuntime.Tags("Tag1") objTag.Read objTag.Value = objTag.Value + 1 objTag.Write --------- Bye Murof
|
If this Information really helps, you could use the Rate function |
|
Follow us on