10/1/2015 5:23 PM | |
Joined: 9/23/2005 Last visit: 12/12/2024 Posts: 4366 Rating: (1457)
|
“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 clicking on button a Boolean tag is inverted (True - False). To invert a bit could be easily adapted for other simple script tasks (set bit, reset bit, set value, etc.). It is also base of many other simple samples.
Requirements: WinCC Professional V13 SP1.
Configuration main steps:
Function
VB Script
Sub OnClick(ByVal item)
InvertBit "HMI_Tag_1"
End Sub
C Script
#include "GlobalDefinitions.h" void OnClick(char* screenName, char* objectName, char* propertyName) {
InvertBit ("HMI_Tag_1");
}
References: Manual WinCC Professional V13.0 https://support.industry.siemens.com/cs/br/pt/view/92323076/en
Online helps system WinCC Professional V13.0 SP1 https://support.industry.siemens.com/cs/br/pt/view/109096785/en
FAQ Which VBS information and VBS programming tools are there in WinCC (TIA Portal)? https://support.industry.siemens.com/cs/br/pt/view/59885894/en
Tips and tricks for creating scripts in WinCC (TIA Portal) https://support.industry.siemens.com/cs/br/pt/view/57132412/en
Project:
As project.zip
AttachmentProject.zip (254 Downloads) |
Denilson Pegaia |
|
12/2/2015 2:10 PM | |
Joined: 9/3/2014 Last visit: 3/13/2019 Posts: 4766 Rating: (122) |
New question published by Lakrids by Johan Bülow is split to a separate thread with the subject Invert a signal from input %I0.0. Best regards |
Follow us on