<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Rectangle Text Variable based on String</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/aefde4475e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/aefde4475e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/aefde4475e/</id><updated>2020-08-10T18:34:59.985000Z</updated><subtitle>Recent posts to Rectangle Text Variable based on String</subtitle><entry><title>Rectangle Text Variable based on String</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/aefde4475e/?limit=25#9e82" rel="alternate"/><published>2020-08-10T18:34:59.985000Z</published><updated>2020-08-10T18:34:59.985000Z</updated><author><name>davejc</name><uri>https://forge.codesys.com/u/davejc/</uri></author><id>https://forge.codesys.coma0d4f96e579d98ff649c2b0731f615d48006174a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sorry for the delay in getting back to you, got buried in a bunch of other work.  I looked over what you did, but I ended up sticking with the multiple frame approach.  Only for the fact that with the multiple frames, I can set limits when I use "Write Variable" input.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rectangle Text Variable based on String</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/aefde4475e/?limit=25#f2e5" rel="alternate"/><published>2020-08-06T06:02:10.332000Z</published><updated>2020-08-06T06:02:10.332000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.com7cdfd991e7d7e226e5836ce39d2da7d5c2eb1e05</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey,&lt;br/&gt;
I edited the project a bit.&lt;br/&gt;
Not able to test it since I don't have a eurotherm environment available.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rectangle Text Variable based on String</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/aefde4475e/?limit=25#0c3a" rel="alternate"/><published>2020-08-05T17:09:04.977000Z</published><updated>2020-08-05T17:09:04.977000Z</updated><author><name>davejc</name><uri>https://forge.codesys.com/u/davejc/</uri></author><id>https://forge.codesys.com5c94ab912d9c7f8dacd77d80ed62df9a8ca09c61</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I think I have a viable workaround for this.&lt;/p&gt;
&lt;p&gt;I created 15 separate visualizations that have all of the text blocks linked to the exact variable that I need them on.  For the main InputAdjust screen, I placed a frame with all 15 Visus in them and used "GVL.iTCSelect - 1" as the "Frame Switch Variable".  Seems to be doing exactly what I need it to.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rectangle Text Variable based on String</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/aefde4475e/?limit=25#a8ee" rel="alternate"/><published>2020-08-05T15:22:41.203000Z</published><updated>2020-08-05T15:22:41.203000Z</updated><author><name>davejc</name><uri>https://forge.codesys.com/u/davejc/</uri></author><id>https://forge.codesys.com088b40d4da8b54311d8f3e26a5408803bc74f756</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This'll be interesting.  I'm sure there are going to be a ton of library errors when you open this.&lt;/p&gt;
&lt;p&gt;What I am looking at is....&lt;br/&gt;
Visualizations -&amp;gt; Maintenance -&amp;gt; Maint_InputAdjust&lt;br/&gt;
Functions -&amp;gt; TCCalTextVariable&lt;/p&gt;
&lt;p&gt;The intended operation is that when an operator selects a value from the ComboBoxInteger (GVL.iTCSelect) on InputAdjust Screen, the "Text Variable" from all of those (24) Text Boxes needs to change based on the value of the combo box integer.&lt;/p&gt;
&lt;p&gt;The way the case is written in TCCalTextVariable can sort of show better what needs to change.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rectangle Text Variable based on String</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/aefde4475e/?limit=25#7154" rel="alternate"/><published>2020-08-05T14:49:21.910000Z</published><updated>2020-08-05T14:49:21.910000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.com698684ae995ab29c3d4bbb31a47d4d81f70668fb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can adjust this function in any way you need to.&lt;br/&gt;
E.g. you can add a variable iComboboxIndex as VAR_INPUT in your function.&lt;br/&gt;
Then use a CASE and return a different value depending on your selected index.&lt;/p&gt;
&lt;p&gt;For a more detailed version you should include a project and explain your issue&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rectangle Text Variable based on String</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/aefde4475e/?limit=25#9e0d" rel="alternate"/><published>2020-08-05T14:42:45.846000Z</published><updated>2020-08-05T14:42:45.846000Z</updated><author><name>davejc</name><uri>https://forge.codesys.com/u/davejc/</uri></author><id>https://forge.codesys.com4dd2eb34c189345e49eb13cf3188189ddb6fa06e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I should probably add this is my first Codesys project.  So I do not know all the real ins and outs when it comes to versions.  my PLC came with the installer for 3.5 SP9 Patch 6, so its all I know to use.&lt;/p&gt;
&lt;p&gt;I am able to open you project and see how you are using the Function to set the strong for Text Variable.  One last (I hope) follow up.  I need to change the Text Variable on 24 Rectangle Entities.  The Function seems to only want to let me change 1 Variable.  do I have to create 24 separate functions or can I do all of this in a single function?  It doesn't seem to like if I set the Function Output to a string array.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rectangle Text Variable based on String</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/aefde4475e/?limit=25#7049" rel="alternate"/><published>2020-08-05T12:37:13.008000Z</published><updated>2020-08-05T12:37:13.008000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.comdf562b490e5fe5a79ebed438a007ff53f127cfc8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey,&lt;br/&gt;
you can always use CODESYS 3.5 SP16 and download your application to a PLC with version 3.5.9.60.&lt;/p&gt;
&lt;p&gt;Depending on your PLC, you may not be able to update the visu profile or compiler version, but you should always be able to use a later IDE to make a download to a older PLC.&lt;/p&gt;
&lt;p&gt;Never the less I saved the project in a way, so you can open it with CODESYS 3.5 SP9&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rectangle Text Variable based on String</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/aefde4475e/?limit=25#1b05" rel="alternate"/><published>2020-08-05T12:05:27.009000Z</published><updated>2020-08-05T12:05:27.009000Z</updated><author><name>davejc</name><uri>https://forge.codesys.com/u/davejc/</uri></author><id>https://forge.codesys.com7070fc5497dde0f006553e50b8a2f6d06400c11a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Of course I cannot open your project.  I am assuming this is because I am not using the most current version of Codesys.  The PLC that I am using requires me to use Codesys 3.5 SP9 Patch 6.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rectangle Text Variable based on String</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/aefde4475e/?limit=25#f38f" rel="alternate"/><published>2020-08-05T05:29:42.571000Z</published><updated>2020-08-05T05:29:42.571000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.come15ba36ca27227078b2c22fa5a660cb1536eb088</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey,&lt;br/&gt;
you can use a function in your text variable.&lt;/p&gt;
&lt;p&gt;See attached project.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rectangle Text Variable based on String</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/aefde4475e/?limit=25#1a5d" rel="alternate"/><published>2020-08-05T00:09:34.969000Z</published><updated>2020-08-05T00:09:34.969000Z</updated><author><name>davejc</name><uri>https://forge.codesys.com/u/davejc/</uri></author><id>https://forge.codesys.com7890b89b798bc7f0dc557f3123402bf995a83324</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have to think there is a way to do this, but I cannot make it work.&lt;/p&gt;
&lt;p&gt;I have a Visu screen with a bunch of Rectangles being used for text entry.  There is a combo box that will allow the operator to switch between 15 different input location.  See attached image.&lt;/p&gt;
&lt;p&gt;So, let's just look at the Top Left Rectangle.  What I am trying to make happen is:&lt;/p&gt;
&lt;p&gt;If the ComboBox Integer value = 1, then the Rectangle Text Variable = GVLP.arSPCal2TC.rX&lt;br/&gt;
If ComboBox = 2, Text Variable = GVLP.arSPCal3TC.rX&lt;br/&gt;
if ComboBox = 3, Text Variable = GVLP.arSPCal4TCB.rX&lt;br/&gt;
(not going to list all 15 options).&lt;/p&gt;
&lt;p&gt;I cannot do this as an array because the function boxs I am using with these variables will not work with arrays.  I have tried, unsuccessfully.&lt;/p&gt;
&lt;p&gt;What I am wondering is can I set the Text Variable property of the Rectangle to be the output of a string variable?  LIke, I set the Text Variable property to "sTCrx1" and it the property instead of just reading the string, actually uses the string value as the text variable.&lt;/p&gt;
&lt;p&gt;Does this even make sense??&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>