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.
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.
below is the associated text field property which are useful to make text field more user friendly
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
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
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.
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.
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.
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.
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.
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.