Operator Terminal Expert- How to change a text (text, font and background color) using a tag value?
Issue:
How can we change a text representing the state of a machine based on the value of a variable?
Product Line:
EcoStruxure Operator Terminal Expert (all versions)
Resolution:
There are many ways to achieve the animation of a text to show the state of a machine based on the value of a status register.
Attached is a small example project Test_Animate_Text.vxdz demonstrating 4 ways of doing it. (Software EcoStruxure Operator Terminal Eexpert v3.3 SP1)
Four methods demonstrated:
1- N-State Lamp object that exist and do just that. It is the easiest method but the object name is misleading.
Insert one N-State Lamp object.
In the Properties, Function - Basic:
Set the Type to Word and State Change Condition to State
Configure the number of States (texts) that are needed. (Note: 4 means states 0 to 3.)
Configure the Variable to the variable for the states.
Under Favorite properties:
For each states, define the Text, the Font Color and the Fill color.
2- Multiple String Display objects and display the right text using the Visibility property:
Insert and configure a String Display object for each state.
Pile them over each other, making sure they have the same size.
Use the Visibility property to make the relevant text visible based on the value of the status register.
For that, the use of Expression Converters that will give a "1" for invisible and a "0" for visible is needed.
Need a converter for each state, the expression will be of the form: [FromData] != (value).
3- One String Display object and modify the text and colors using a script.
Insert and configure one String Display object.
Create a screen script that will modify the String Display properties based on the status register value to set the text, colors, etc.
4- One String Display object and use of Range Converters to change the text and colors.
Insert and configure one String Display object.
Create a Range Converter to modify the text.
Create a Range Converter to modify the text color.
Create a Range Converter to modify the String Display background (fill) color.
Modify to appropriate properties to modify them based on the status register value to which the appropriate converter is applied.
See the project for more details.
If this FAQ did not solve your issue, you can chat with us at chat with us or e-mail us at customer.services@se.com to create a case with our Technical Support Team.
If you are not located in North America, please contact your local Customer Care Center for assistance:
게시 대상: 슈나이더 일렉트릭 Korea
도움이 필요하신가요?
제품 선택기
애플리케이션에 적합한 제품과 액세서리를 빠르고 쉽게 찾을 수 있습니다.
견적 받기
영업 관련하여 온라인으로 문의하시면 전문가가 연락드립니다.
구매처
해당 지역의 가장 가까운 슈나이더 일렉트릭 대리점을 쉽게 찾을 수 있습니다.
지원 센터
한 곳에서 모든 요구 사항에 대한 지원 리소스를 찾아보십시오.