{}

Our Brands

Impact-Company-Logo-English Black-01-177x54

Welcome to the Schneider Electric Website

Welcome to our website.
Search FAQs
You are currently viewing the content available in Vietnam. If you are looking for information for another region, please select the correct country from the top-left dropdown in the page and 'Navigate to Browse FAQs' in the Support menu.
How do we display values in a Textbox or Rectangle in a WebVisualization in EcoStruxure Machine Expert?
Issue
In a WebVisualization interface, how do we configure a Texbox or Rectangle to display String or Numeric values?

Product Line
EcoStruxure Machine Expert
Modicon M241, M251, and M262 PLCs

Environment
PLC Logic Builder - WebVisualization in CoDeSys engine

Resolution
In order to display Strings or Numeric values in either a Rectangle or Text box in the Visualization,
you need to enter a Placeholder Wildcard in the "Texts-> Text" field:
"%s" for Strings
"%d" for Numeric Values

Then in the "Text variables->Text variable" property, choose a Symbol from your PLC project to display in the object.
See this example of a Text field object element:
image.png

More information can be seen in the CoDeSys documentation page:
CoDeSys Visualization (3.5.17.0) ->Reference, Programming -> Placeholders with Format Definition in the Output Text

image.png
image.png

Schneider Electric Vietnam

Explore more
Range:
Articles that might be helpful Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.
Explore more
Range: