Example: bankruptcy

WinCC V7.4 WinCC: Scripting (VBS, ANSI-C,

SIMATIC HMIWinCC : Scripting (VBS, ansi -C, VBA)System ManualPrint of the Online Help02/2016A5E37536061-AAVBS for Creating Procedures and Actions1 ansi -C for Creating Functions and Actions2 VBA for Automated Configuration3 Legal informationWarning notice systemThis manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of that death or severe personal injury will result if proper precautions are not that death or severe personal injury may result if proper precautions are not that minor personal injury can result if proper precautions are not that property damage can result if proper precautions are not more than one degree of danger is present, the warning notice representing the highest degree of danger will be used.

approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed. Trademarks

Tags:

  Ansi, Approved, Commissioning, Scripting, Wincc, Naic s

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of WinCC V7.4 WinCC: Scripting (VBS, ANSI-C,

1 SIMATIC HMIWinCC : Scripting (VBS, ansi -C, VBA)System ManualPrint of the Online Help02/2016A5E37536061-AAVBS for Creating Procedures and Actions1 ansi -C for Creating Functions and Actions2 VBA for Automated Configuration3 Legal informationWarning notice systemThis manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of that death or severe personal injury will result if proper precautions are not that death or severe personal injury may result if proper precautions are not that minor personal injury can result if proper precautions are not that property damage can result if proper precautions are not more than one degree of danger is present, the warning notice representing the highest degree of danger will be used.

2 A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property PersonnelThe product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these use of Siemens productsNote the following:WARNINGS iemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens.

3 Proper transport, storage, installation, assembly, commissioning , operation and maintenance are required to ensure that the products operate safely and without any problems. The permissible ambient conditions must be complied with. The information in the relevant documentation must be names identified by are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the of LiabilityWe have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent AGDivision Digital FactoryPostfach 48 4890026 N RNBERGGERMANYA5E37536061-AA 03/2016 Subject to changeCopyright Siemens AG rights reservedTable of contents1 VBS for Creating Procedures and for creating procedures and Visual Basic Script in and Use of Procedures and of Global Tags in Script in an Editing with the Actions or and Editing and Editing a New to Write Procedure Standard and Project to add module-related a Module with a a a Procedure or and Editing and Editing a New to Edit to add action-related an Action with a Animation How to add a trigger of the type "Timer".

4 How to add a trigger of the type "Tag".. How to change a How to delete a to Rename an to activate global actions in : Scripting (VBS, ansi -C, VBA)System Manual, 02/2016, GSC Inserting the GSC Diagnostics Window into a GSC Diagnostics GSC Diagnostics GSC How to insert the GSC Runtime Window into a GSC Runtime with the Testing with the How to Activate the Principles of Structure of VBScript Action and Procedure Names in the Selecting a Script for Processing Scripts Setting Deleting How to Set Bookmarks in How to Determine and Modify Tag and Property Executing Script and Objects and Alarm Alarms object (list).. AlarmLogs DataItem DataLogs DataSet Object (List).

5 HMIR untime Item Layer Layers Object (Listing).. Logging ProcessValue ProcessValues Object (List).. Project ScreenItem ScreenItems Object (List).. Screen Screens Object (List).. SmartTags Tag Tags Object (List).. TagSet Object (List).. types of the ScreenItem of contentsWinCC: Scripting (VBS, ansi -C, VBA)4 System Manual, 02/2016, Object types of the ScreenItem Standard Smart Windows Tube Customized X - Methods A to Get Methods H to Methods N to Methods S to Methods U to Error Messages from Database of of in Examples in Example: Accessing objects in Graphics Example: Defining the color of Example: How to Configure Language Example: Deactivating Example: Configuring change picture Example: Configuring Change Picture Via of contentsWinCC.

6 Scripting (VBS, ansi -C, VBA)System Manual, 02/2016, Example: Configuring diagnostics output via Example: Writing tag Example: How to Read Tag Example: Writing Object Example: How to Start an Action on the Server (Logging Object).. Example: You connect or disconnect a database backup with Dynamization of General examples for Example: Configuring a Database Connection with Example: Using the MS Automation Example: Starting an external Principles of Principles of ansi -C for Creating Functions and Functions and Actions with Functions and of Project of Standard of Internal of Local of Global to Add Global Script Runtime to a Project's Startup of Global of DLLs in Functions and Global Script Global Script in the Edit Working in the Edit Editing Functions with the Editing Functions with the with the to Set Different to Set the Font to Use "Save ".

7 To Delete Actions or Project and Standard to Generate a New to Compile All How to Search in Printing Functions and Printing Functions and How to Set the Print How to Open Page How to Print the Project of contentsWinCC: Scripting (VBS, ansi -C, VBA)6 System Manual, 02/2016, and Editing and Editing to Create a New to Write Function to Use Internal to Use Standard and Project Additional Function-Related to Protect a Function Against Unauthorized to Compile and Save a to Rename a How to Use Functions from Other and Editing To Create and Edit Coding to Create a New to Edit to add action-related to Protect an Action Against Unauthorized to Compile and Save an How to Add a New Trigger of the "Timer" How to Add a New Trigger of the "Tag" How to change a How to delete a to Assign How to Export an How to Import an How to Rename an How to Use Actions From Other Behavior of Behavior of GSC How to Place GSC Runtime in a Process Attributes of GSC

8 How to Edit GSC How to Place GSC Diagnose in a Process Picture?.. Attributes of GSC The Toolbar of GSC function Standard functions - short Obsolete of contentsWinCC: Scripting (VBS, ansi -C, VBA)System Manual, 02/2016, Internal functions - short Examles - A to Examples - GetAlarmHigh to Examples - GetRangeMax to Examples - H to Examples - SetAlarmHigh to Examples - SetRangeMax to Examples of WinCC Examples - Obsolete Bar Bar Flash I/O field, output I/O field, data type of the field I/O field, field Element alignment in check boxes and radio Color Format Fill Line Line end List Language Text Tag Structure definition Structure definition Structure definition Structure definition Structure definition Structure definition Structure definition Structure definition Structure definition Structure definition VBA for Automated : Using VBA in : Using VBA in : Using of contentsWinCC.

9 Scripting (VBS, ansi -C, VBA)8 System Manual, 02/2016, VBA Code in a WinCC to export and import VBA VBA Macros in Graphics in the Graphics in the Graphics the Graphics Designer with the Graphics Designer with Configuration with Customized Menus and the component library with Pictures with Pictures with to Create Picture-specific Menus and Layers with a Copy of a Picture with Objects with Objects with objects, Smart objects, Windows objects and Tube Dynamics with Dynamics with Dynamics in the Properties of Pictures and Event-Driven Actions with External Applications with External Applications with : Accessing MS Excel with in the WinCC Configuration in the WinCC Configuration : VBA in the WinCC Configuration Add to Configure an AddIn in the Graphics : Creating Add : Creating Add : Creating an Add In with Visual Basic object model of the Graphics Reference: Reference: Reference: and in Other WinCC of contentsWinCC: Scripting (VBS, ansi -C, VBA)System Manual, 02/2016, in Other WinCC in Tag im Tag in the Text in Alarm of contentsWinCC: Scripting (VBS, ansi -C, VBA)10 System Manual, 02/2016, A5E37536061-AAVBS for Creating Procedures and for creating procedures and actionsContentsWinCC provides the possibility of dynamizing the Runtime environment using the Visual Basic Script.

10 It is possible to use VBS to program global actions and procedures as well as dynamizing graphic objects and triggering actions in chapter will show you How to work with VBScript editors How to create and edit procedures How to create and edit actions How to activate VBScripts in Runtime How to execute diagnostics on scripts in Runtime The object model of graphic Runtime system Detailed examples on using VBScriptWinCC: Scripting (VBS, ansi -C, VBA)System Manual, 02/2016, Visual Basic Script in WinCCIntroductionIn addition to the C script, WinCC also provides the VBScript program language as a programming interface in order to make the WinCC Runtime environment dynamic. Target Group of the DocumentationThis documentation is aimed at project engineers with experience of Visual Basic or WinCC Scriptings (C) used to OptionsVBScript (VBS) provides access to tags and objects of the graphical Runtime system at Runtime and can execute picture-independent functions: Tags: Tag values can be read and written in order, for example, to specify tag values for the PLC by clicking the mouse when positioned on a button.


Related search queries