11/14/2016 4:18 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: On each 2 seconds time interval a script is called. In this example the script increment a TAG. Note: depending of the context (e.g. number of script running in parallel, time interval, logic complexity, etc.), scripting calling by time could overload the PC processing. Many times there is better way to solve the same problem like, for example, scripting called by tag changes (WinCC V7.3 – Simple Sample: calling a script by a tag change ) 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_5") 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). AttachmentAction.zip (196 Downloads) |
Last edited by: Denilson Pegaia at: 11/14/2016 4:19:45 PMDenilson Pegaia |
|
This contribution was helpful to
1 thankful Users |
Follow us on