<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Toggling Visualizations using HMI Physical Buttons</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0dae266c00/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0dae266c00/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/0dae266c00/</id><updated>2024-02-28T14:43:06.891000Z</updated><subtitle>Recent posts to Toggling Visualizations using HMI Physical Buttons</subtitle><entry><title>Toggling Visualizations using HMI Physical Buttons</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0dae266c00/?limit=25#e87f" rel="alternate"/><published>2024-02-28T14:43:06.891000Z</published><updated>2024-02-28T14:43:06.891000Z</updated><author><name>dhumphries</name><uri>https://forge.codesys.com/u/dhumphries/</uri></author><id>https://forge.codesys.com8b79ebe9c58536946f339a2c1183c103aea90a61</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Nothing wrong with ladder, in a lot of applications it is simpler than ST or CFC, you're a lot less likely to have syntax issues in a ladder diagram than in structured text as long as you stick with traditional ladder elements.&lt;/p&gt;
&lt;p&gt;Your attempt was almost valid, but you tried to change the currentvisu variable using a blend of structured text and ladder, which isn't allowed.  You need to use the MOVE operator and define the visualization name as a string on the input side and the visuelems.currentvisu as the target on the output side.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Toggling Visualizations using HMI Physical Buttons</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0dae266c00/?limit=250#ba6c" rel="alternate"/><published>2024-02-13T13:11:47.146000Z</published><updated>2024-02-13T13:11:47.146000Z</updated><author><name>dkugler</name><uri>https://forge.codesys.com/u/dkugler/</uri></author><id>https://forge.codesys.com42d316192989af864d802df6bfdd3203fd117752</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;learn to program in structured text or CFC and forget this antique ladder logic..&lt;br/&gt;
I'm not firm to do that in ladder&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Toggling Visualizations using HMI Physical Buttons</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0dae266c00/?limit=25#e0f9/4d30" rel="alternate"/><published>2024-02-13T13:05:04.389000Z</published><updated>2024-02-13T13:05:04.389000Z</updated><author><name>nmcc</name><uri>https://forge.codesys.com/u/nmcc/</uri></author><id>https://forge.codesys.com312c2fe20da66a201bd314bc6f7915af392873fa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Here is a screenshot. I really do not know how to format the variable exchange you are talking about. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Toggling Visualizations using HMI Physical Buttons</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0dae266c00/?limit=25#e0f9/6f55" rel="alternate"/><published>2024-02-13T13:05:02.958000Z</published><updated>2024-02-13T13:05:02.958000Z</updated><author><name>nmcc</name><uri>https://forge.codesys.com/u/nmcc/</uri></author><id>https://forge.codesys.com07af2a0949779e317a54aa8dde22e1f0ff69efb7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Here is a screenshot. I really do not know how to format the variable exchange you are talking about. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Toggling Visualizations using HMI Physical Buttons</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0dae266c00/?limit=250#e0f9" rel="alternate"/><published>2024-02-13T12:59:27.863000Z</published><updated>2024-02-13T12:59:27.863000Z</updated><author><name>dkugler</name><uri>https://forge.codesys.com/u/dkugler/</uri></author><id>https://forge.codesys.comb03459fbf16e1fc1682d417b20bc83f77038b188</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;post a screenshot of the ladder and the error message. I'm not able to have a lock at your monitor actually :-)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Toggling Visualizations using HMI Physical Buttons</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0dae266c00/?limit=25#26e0/804d" rel="alternate"/><published>2024-02-13T12:36:45.766000Z</published><updated>2024-02-13T12:36:45.766000Z</updated><author><name>nmcc</name><uri>https://forge.codesys.com/u/nmcc/</uri></author><id>https://forge.codesys.com27d1c8f254e9ddeefd80212d1e747f7a01a55b61</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey thank you for the reply dkugler. I am sorry if this seems like a stupid question. I have the use current visuvariable checkbox enabled. I can see the string names of all my visualizations. I am trying to use ladder logic to be the anser to the button press using "VisuElems.CurrentVisu := 'MainScreen';. This returns an error. Any idea what I am doing wrong or could you point me in the right direction for fixing this. Thanks, &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Toggling Visualizations using HMI Physical Buttons</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0dae266c00/?limit=25#26e0/e804" rel="alternate"/><published>2024-02-13T12:36:44.028000Z</published><updated>2024-02-13T12:36:44.028000Z</updated><author><name>nmcc</name><uri>https://forge.codesys.com/u/nmcc/</uri></author><id>https://forge.codesys.come5031aca5f8c783a13939f25bb61c55e88b7fca9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey thank you for the reply dkugler. I am sorry if this seems like a stupid question. I have the use current visuvariable checkbox enabled. I can see the string names of all my visualizations. I am trying to use ladder logic to be the anser to the button press using "VisuElems.CurrentVisu := 'MainScreen';. This returns an error. Any idea what I am doing wrong or could you point me in the right direction for fixing this. Thanks, &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Toggling Visualizations using HMI Physical Buttons</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0dae266c00/?limit=250#26e0" rel="alternate"/><published>2024-02-13T09:52:04.632000Z</published><updated>2024-02-13T09:52:04.632000Z</updated><author><name>dkugler</name><uri>https://forge.codesys.com/u/dkugler/</uri></author><id>https://forge.codesys.comf61c7ad357c9f4d73fb8f8609db0450d3dd0365d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;the magic option is named "Use CurrentVisu variable" &lt;br/&gt;
activate this option in the Visualization Manager an have a look:&lt;br/&gt;
&lt;a href="https://help.codesys.com/webapp/_visu_obj_manager;product=core_visualization;version=3.5.14.0" rel="nofollow"&gt;https://help.codesys.com/webapp/_visu_obj_manager;product=core_visualization;version=3.5.14.0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;if your button is pressed, "feed" the string varable VisuElems.CurrentVisu := 'visu1';  with the correct name of the depending visu. &lt;br/&gt;
alternative: place a frame element at a empty main visu, konfigure all visus to be shown by this frame.&lt;br/&gt;
With setting the switching variable of the frame to the index value of the depending visu, it will switch to it.&lt;br/&gt;
Advantage: the visu names are not hardcoded as string in the ladder lodgic. Good luck!&lt;br/&gt;
Hint: If you have multiple VisuClients(Target, WebVisu,...) all will show the same visu. Independent switching is much more difficult, but there is a example from codesys. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Toggling Visualizations using HMI Physical Buttons</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0dae266c00/?limit=25#0969" rel="alternate"/><published>2024-02-12T15:04:48.758000Z</published><updated>2024-02-12T15:04:48.758000Z</updated><author><name>nmcc</name><uri>https://forge.codesys.com/u/nmcc/</uri></author><id>https://forge.codesys.come18b82f3016f8f7914818cb08f0cf65c99dead60</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, I am extremely new to using codesys. I have an IFM CR1102 HMI with physical buttons on the right side. I need to have these buttons toggle which visualization is active. I currently have ladder logic for when the button is pressed just need the action side for setting the active visualization. Any help is appreciated. &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>