<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to State colors</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/2574517dd9/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/2574517dd9/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/2574517dd9/</id><updated>2020-02-27T18:14:18.818000Z</updated><subtitle>Recent posts to State colors</subtitle><entry><title>State colors</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/2574517dd9/?limit=25#2c7a" rel="alternate"/><published>2020-02-27T18:14:18.818000Z</published><updated>2020-02-27T18:14:18.818000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comb4dd6087db3648ebcdc6f6f0d806aa7d97d307fe</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;since semi transparence was introduced(guess 3.5SP6):&lt;/p&gt;
&lt;p&gt;Color variables&lt;br/&gt;
Applied for dynamic definitions for the color of the element via a project variable.&lt;br/&gt;
A color is defined by a hex number which is composed of Red/Green/Blue (RGB) components.&lt;br/&gt;
A project variable of type DWORD must be entered like prog1.dwFillColor.&lt;br/&gt;
The variable must define the color value in hexadecimal format.&lt;br/&gt;
&lt;br/&gt;
To fill the complete DWORD, the first two digits after "16#" have to be set to zero: "16#00RRGGBB".&lt;br/&gt;
&lt;br/&gt;
&lt;strong&gt;HIND to the first two digits:&lt;/strong&gt;&lt;br/&gt;
    00 is used when under Visualization Manager &amp;gt; Activate semi-transparent drawing is NOT active&lt;br/&gt;
    FF, instead of 00, is used when under Visualization Manager &amp;gt; Activate semi-transparent drawing is active&lt;/p&gt;
&lt;p&gt;This is missing in the onlinehelp, there is an open point in our tracking system.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Colors.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1473"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: semi.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1472"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>State colors</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/2574517dd9/?limit=25#626a" rel="alternate"/><published>2020-02-27T18:14:15.739000Z</published><updated>2020-02-27T18:14:15.739000Z</updated><author><name>asi</name><uri>https://forge.codesys.com/u/asi/</uri></author><id>https://forge.codesys.comd02a0b593d99d65acc4ec03b1c3d85467972ac3a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;Is there a known bug in V3 concerning colorvariables?&lt;/p&gt;
&lt;p&gt;I tried a DWORD ("16#FF0000" (red)) in "Fill Color" but it only changes to white after running the visu.&lt;br/&gt;
If I leave the field blank it gets its "Normal state" color like it should.&lt;/p&gt;
&lt;p&gt;I really would like to use this features.... toggling between normal and alarm state is not an option for me.&lt;/p&gt;
&lt;p&gt;Can anyone help?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;I am using the latest V3.5 SP7 Patch3&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>State colors</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/2574517dd9/?limit=25#a028" rel="alternate"/><published>2020-02-27T18:14:14.649000Z</published><updated>2020-02-27T18:14:14.649000Z</updated><author><name>t.lundahl</name><uri>https://forge.codesys.com/u/t-lundahl/</uri></author><id>https://forge.codesys.com5a5d92646090aae924b17b6835fbc3c50d3e4239</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;IF ThisState THEN&lt;br/&gt;
 ColorVariable := 16#FF FF 00; (RGB if I remeber correct R=255 G=255 B=0)&lt;br/&gt;
ELSIF AlarmState THEN&lt;br/&gt;
 ColorVariable := 16#00 FF 00;&lt;br/&gt;
ELSIF OtherState THEN&lt;br/&gt;
 ColorVariable := 16#00 00 FF;&lt;br/&gt;
ELSE&lt;br/&gt;
 ColorVariable := 16#00 00 00;&lt;br/&gt;
END_IF;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>State colors</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/2574517dd9/?limit=25#a5db" rel="alternate"/><published>2020-02-27T18:14:13.562000Z</published><updated>2020-02-27T18:14:13.562000Z</updated><author><name>drChiavo</name><uri>https://forge.codesys.com/u/drchiavo/</uri></author><id>https://forge.codesys.com22cf7ad0f1152426874d70f91b9ab08481ba0e4c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;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?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>State colors</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/2574517dd9/?limit=25#7826" rel="alternate"/><published>2020-02-27T18:14:10.502000Z</published><updated>2020-02-27T18:14:10.502000Z</updated><author><name>t.lundahl</name><uri>https://forge.codesys.com/u/t-lundahl/</uri></author><id>https://forge.codesys.come90c7f7bd7a2f559c27e425b63b445cb7112dd6a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I did this in version 2. You need to use your own variable (DINT i think it is).&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ColorProperties.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1446"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>State colors</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/2574517dd9/?limit=25#6e42" rel="alternate"/><published>2020-02-27T18:14:09.415000Z</published><updated>2020-02-27T18:14:09.415000Z</updated><author><name>drChiavo</name><uri>https://forge.codesys.com/u/drchiavo/</uri></author><id>https://forge.codesys.com231ba585f94a5f62eb93c7e2982fc0d213d4594c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;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?&lt;/p&gt;
&lt;p&gt;Attached an example of my three states.&lt;br/&gt;
thanks&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Display.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1445"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>