10/2/2015 7:08 PM | |
Joined: 9/23/2005 Last visit: 4/17/2024 Posts: 4325 Rating: (1420) |
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:
VB script has the feature to show messages and get feedback (e.g. yes / no) in a simple way.
In this simple sample the message box are used in two ways: 1 – Show a simple user message. 2 – Get a feedback (confirmation) before invert a binary tag.
Requirements: WinCC V7.3.
Project with a minimum configuration (stop button, tags, etc.).
Configuration main steps: 1 – Show a simple user message.
Sub OnClick(Byval Item)
Msgbox("that is a VB message box example")
End Sub
2 – Get a feedback (confirmation) before invert a binary tag.
Sub OnClick(Byval Item)
Dim aaa aaa = MsgBox("Do you really want to invert this bit?",vbYesNo,"Confirmation") If aaa = vbYes Then HMIRuntime.tags("HMI_Tag_1").write (1 - HMIruntime.Tags("HMI_Tag_1").read) End If
End Sub
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
Images: Due a size / format restrictions, the project is attached as zip archive (data.zip). Attachmentdata.zip (204 Downloads) |
Denilson Pegaia |
|
Follow us on