10/1/2015 5:05 PM | |
Joined: 9/23/2005 Last visit: 12/5/2023 Posts: 4281 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 clicking on a button, the run-time application is stopped. E.g. the implementation of close application function is a first step of a project development. This function could be adapted to “close application and shut down”, useful for UPS supplied systems.
Requirements: WinCC Professional V13 SP1.
Procedure: By Function
By C Script
#include "GlobalDefinitions.h" void OnClick(char* screenName, char* objectName, char* propertyName) {
StopRuntime (hmiStopRuntime);
}
By VB Script
Sub OnClick(ByVal item)
StopRuntime hmiStopRuntime
End Sub
Tip: use “StopRuntime hmiStopRuntimeAndOperationSystem” to shut down the windows too.
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 (98 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to
1 thankful Users |
Follow us on