Siemens wincc hmi basic object property and programming in vb script

Published on Jan10, 2025 | Category: wincc tia
Share this article:

basic object like line, circle, rectangular etc are available in the wincc tia portal. you can use these object into your hmi screen and configure their property with in property of object or you can also make a script for these basic object. basic object don\'t have any event. basic object are useful for making a graphical presentation better. in this article only for basic object and property configuration. article have simple vb script for all basic object so you can understand how these basic object are work in your hmi.

img/wincc hmi basic object/siemens wincc basic object tia.webp

Siemens wincc textfield basic object

A text field is a element that displays string. it is used to describe or identify another element, such as a text field, button, or checkbox. it is also useful to show status result, error result of vbscript. text field help users or operator to understand the purpose of a given input or action on a HMI screen.

img/wincc hmi basic object/Siemens wincc textfield basic object.webp

below is the associated text field property which are useful to make text field more user friendly

img/wincc hmi basic object/siemens wincc associated text field property.webp

wincc tia vbscript example for your text field

in this simple example of vbscript all property of text field is changed when button is pressed. add a button and a textfield.as shown in below images

img/wincc hmi basic object/component for vbscript.webp

below is vbscript for text field. this vbscript helps to understand how to change property of text field by using vbscript in wincc tia portal.in this vbscript Increment Text Field with Color Change. following is the vbscript explanation

img/wincc hmi basic object/wincc tia vbscript example for your text field.webp

siemens wincc line basic object

a line is one of the fundamental elements used to create shapes, structures, and visual compositions. A straight line has no curves or angles and continues in one direction. Often used to create basic shapes (like rectangles, squares, or triangles) or as boundaries, borders, or dividers in designs.

img/wincc hmi basic object/siemens wincc line basic object.webp

in a property of line you can change line size, line type, line color in appearance property. you can set layout, position, width, height of line. Lines can have varying thicknesses. Thicker lines often stand out more and can be used to highlight or create emphasis, while thinner lines can add subtle details or intricate designs.

img/wincc hmi basic object/siemens wincc line basic object property.webp

siemens wincc rectangle, circle, ellipse basic object

basic shapes like rectangles, circles, and ellipses are foundational elements used in various contexts, from simple designs to complex illustrations. These shapes are widely used for 2d animation and graphics. their property are also change by property editor or by vbscript. in a property you can change background color, border radius and color, set style sheet.

img/wincc hmi basic object/siemens wincc rectangle, circle, ellipse basic object.webp

below is the simple example of vbscript to change background color and width of rectangle, circle, ellipse when button is pressed. after creating vb script add this vbscript in button press events.

img/wincc hmi basic object/vbscript for siemens wincc rectangle, circle, ellipse basic object.webp

Siemens wincc graphics view basic object

A graphics view is a visual representation or interface used to display image. you can also animate these graphics view images by using animation property or vbscript. first insert graphics on the screen and select general property here you can find graphics list select any garphics to show. it is also possible in graphics view to add images from your computer or create graphics from library editor.

img/wincc hmi basic object/Siemens wincc graphics view basic object.webp

siemens wincc poly line and polygon basic object

A PolyLine is a shape made up of a series of connected straight line segments. It does not need to form a closed loop, meaning the last point does not connect back to the first. A Polygon is a closed shape made up of straight line segments. It has at least three sides and the last point connects back to the first to form a closed loop.