10/1/2015 8:02 PM | |
Joined: 9/23/2005 Last visit: 8/27/2024 Posts: 4347 Rating:
|
“Simple Samples” are small projects that demonstrate simple features. The target is give a quick overview about the theme and be used as start point for related discussions. Follow there are a short description and the configuration main steps.
Description:
By changing a value of a tag (HMI_Tag_1), a script will be called and increment the value of a second tag (HMI_Tag_2).
WinCC could call scripts triggered by time or by Tag change. It makes possible, for example, to call a script (indirectly) by a PLC command.
Requirements: WinCC V7.3.
Project with a minimum configuration (stop button, tags, etc.).
Configuration main steps:
Option Explicit Function action Dim aaa Set aaa = HMIRuntime.Tags("HMI_Tag_2") aaa.Read aaa.Value = aaa.Value + 1 aaa.Write
End Function
Thanks: Thanks to the Siemens United States Technical Support (in special Mr. David Crockett) for the Help with this TIP.
References: Portal SIMATIC WinCC in Online Support https://support.industry.siemens.com/cs/br/pt/view/93906404/en
Manual WinCC V7.3: Working with WinCC https://support.industry.siemens.com/cs/ww/en/view/102754925
WinCC V7.3 Scripting: VBS, ANSI-C, VBA https://support.industry.siemens.com/cs/ww/en/view/102777678
Application and tools Demo projects for SIMATIC WinCC V7.3 https://support.industry.siemens.com/cs/br/pt/view/93148272/en
Example Blocks for WinCC V7 and STEP 7 V5 (for S7-300 with SCL and S7-400 with CFC, SCL) https://support.industry.siemens.com/cs/br/pt/view/68679830/en
Example blocks for WinCC V7 and STEP 7 (TIA Portal) (for S7-1200 and S7-1500 in SCL) https://support.industry.siemens.com/cs/br/pt/view/31624179/en
Project: Due a size / format restrictions, the project are first compacted with 7z format (project.z7) and after that attached to a zip archive (data.zip). AttachmentData.zip (725 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to
2 thankful Users |
Follow us on