I'm doing a visualization and I want to know, if it is possible to have three state colors for an object? For example, if I have a button and I want to change the color three times. I have just seen that there are just two state "Normal State and Alarm state". Is there another way to add an additional state?
Attached an example of my three states.
thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I did this in version 2. You need to use your own variable (DINT i think it is).
And under ColorVariable (Expert Mode) you can add the variable you need for normal state and alarmstate. And you change the colorcode to the variable by code instead.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks for your answer but I already knew this two states (Normal and Alarm states). Do you know if there is any possibility to add an additional state?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is not the same because you add a variable to the normal state and then you change the color by changing the content of this variable in your code.
For example:
IF ThisState THEN
ColorVariable := 16#FF FF 00; (RGB if I remeber correct R=255 G=255 B=0)
ELSIF AlarmState THEN
ColorVariable := 16#00 FF 00;
ELSIF OtherState THEN
ColorVariable := 16#00 00 FF;
ELSE
ColorVariable := 16#00 00 00;
END_IF;
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a known bug in V3 concerning colorvariables?
I tried a DWORD ("16#FF0000" (red)) in "Fill Color" but it only changes to white after running the visu.
If I leave the field blank it gets its "Normal state" color like it should.
I really would like to use this features.... toggling between normal and alarm state is not an option for me.
Can anyone help?
Thanks!
I am using the latest V3.5 SP7 Patch3
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
since semi transparence was introduced(guess 3.5SP6):
Color variables
Applied for dynamic definitions for the color of the element via a project variable.
A color is defined by a hex number which is composed of Red/Green/Blue (RGB) components.
A project variable of type DWORD must be entered like prog1.dwFillColor.
The variable must define the color value in hexadecimal format.
To fill the complete DWORD, the first two digits after "16#" have to be set to zero: "16#00RRGGBB".
HIND to the first two digits:
00 is used when under Visualization Manager > Activate semi-transparent drawing is NOT active
FF, instead of 00, is used when under Visualization Manager > Activate semi-transparent drawing is active
This is missing in the onlinehelp, there is an open point in our tracking system.
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm doing a visualization and I want to know, if it is possible to have three state colors for an object? For example, if I have a button and I want to change the color three times. I have just seen that there are just two state "Normal State and Alarm state". Is there another way to add an additional state?
Attached an example of my three states.
thanks
Hi,
I did this in version 2. You need to use your own variable (DINT i think it is).
And under ColorVariable (Expert Mode) you can add the variable you need for normal state and alarmstate. And you change the colorcode to the variable by code instead.
Hello,
thanks for your answer but I already knew this two states (Normal and Alarm states). Do you know if there is any possibility to add an additional state?
This is not the same because you add a variable to the normal state and then you change the color by changing the content of this variable in your code.
For example:
IF ThisState THEN
ColorVariable := 16#FF FF 00; (RGB if I remeber correct R=255 G=255 B=0)
ELSIF AlarmState THEN
ColorVariable := 16#00 FF 00;
ELSIF OtherState THEN
ColorVariable := 16#00 00 FF;
ELSE
ColorVariable := 16#00 00 00;
END_IF;
Hello!
Is there a known bug in V3 concerning colorvariables?
I tried a DWORD ("16#FF0000" (red)) in "Fill Color" but it only changes to white after running the visu.
If I leave the field blank it gets its "Normal state" color like it should.
I really would like to use this features.... toggling between normal and alarm state is not an option for me.
Can anyone help?
Thanks!
I am using the latest V3.5 SP7 Patch3
Hi,
since semi transparence was introduced(guess 3.5SP6):
Color variables
Applied for dynamic definitions for the color of the element via a project variable.
A color is defined by a hex number which is composed of Red/Green/Blue (RGB) components.
A project variable of type DWORD must be entered like prog1.dwFillColor.
The variable must define the color value in hexadecimal format.
To fill the complete DWORD, the first two digits after "16#" have to be set to zero: "16#00RRGGBB".
HIND to the first two digits:
00 is used when under Visualization Manager > Activate semi-transparent drawing is NOT active
FF, instead of 00, is used when under Visualization Manager > Activate semi-transparent drawing is active
This is missing in the onlinehelp, there is an open point in our tracking system.
BR
Edwin