Can anyone show me an example on how to add an indicator to the form, and how to change its color depending on the value, either analog value from holding register or bit from a coil.
What control should i use and how should i use it?
Best regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I got the THMILabel working. But i am not quite sure on how to change the color of THMIText if value is equal to for example 10. Do i need to code it or only change a parameter?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On THMIText you will have a property called Zones. It's a collection of TTextZone. Each zone has a condtion that will say if it will displayed or not. You can have a defatult zone when no other zone has been selected to the current tag value.
You can insert how many text zones as you want.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Can anyone show me an example on how to add an indicator to the form, and how to change its color depending on the value, either analog value from holding register or bit from a coil.
What control should i use and how should i use it?
Best regards
Use a THMIText togheter with a THMILabel
The THMIText will change de background color, the THMILabel will display the value.
You can use THMIColorPropertyConnector too.
Thank you fabio :)
I got the THMILabel working. But i am not quite sure on how to change the color of THMIText if value is equal to for example 10. Do i need to code it or only change a parameter?
Only change parameters.
Im sorry for asking dumb this dumb question but which parameters do i need to change to get the background color to change if value = 10?
On THMIText you will have a property called Zones. It's a collection of TTextZone. Each zone has a condtion that will say if it will displayed or not. You can have a defatult zone when no other zone has been selected to the current tag value.
You can insert how many text zones as you want.
Thank you Fabio!!! Exactly what i was looking for
Just need to know where and what the parameters are doing.
It can probably be found in the class?
Best regards
Lets say i would like to tie a tag up to a TDTAnalogueGauge, how can i acheive that?
Also, i am very interested in creating a alarming function. Any input on this is highly appreciated.
Best regards
I don't know the class TDTAnalogueGauge
Have you looked a complete example at:
https://sourceforge.net/p/pascalscada/code/HEAD/tree/trunk/examples/laz_isotcp_hourmeter
?