<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to first visualisation</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/23a917c38f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/23a917c38f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/23a917c38f/</id><updated>2020-05-20T17:59:31.308000Z</updated><subtitle>Recent posts to first visualisation</subtitle><entry><title>first visualisation</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/23a917c38f/?limit=25#c22d/63e6" rel="alternate"/><published>2020-05-20T17:59:31.308000Z</published><updated>2020-05-20T17:59:31.308000Z</updated><author><name>leila</name><uri>https://forge.codesys.com/u/leila/</uri></author><id>https://forge.codesys.com7a5c138e685d9597614898d3bdbbb1cab236acca</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks. :)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>first visualisation</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/23a917c38f/?limit=25#c22d" rel="alternate"/><published>2020-05-20T13:55:46.639000Z</published><updated>2020-05-20T13:55:46.639000Z</updated><author><name>JAPIB</name><uri>https://forge.codesys.com/u/japib/</uri></author><id>https://forge.codesys.comef48e958e8cc4474425ee705d9ed5f6cf6a23519</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
With a button in the visualization you can't force a physical input.&lt;br/&gt;
So it will works in simulation mode, but in real situation physical input will takes priority !&lt;br/&gt;
If you want to control an output (or whatever variable) with a physical input and with a button, you have to use 2 variables.&lt;/p&gt;
&lt;p&gt;For example, a very simple one !! :&lt;br/&gt;
VAR&lt;br/&gt;
    MyButton:BOOL; (&lt;em&gt; to use with the button in a visualization page&lt;/em&gt;)&lt;br/&gt;
    MyInput AT %IX0.0:BOOL; (&lt;em&gt;Physical input&lt;/em&gt;)&lt;br/&gt;
    MyOutput AT %QX1.1:BOOL; (&lt;em&gt;Physical output&lt;/em&gt;)&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;p&gt;(&lt;em&gt;Program in ST langage&lt;/em&gt;)&lt;br/&gt;
MyOutput:= MyButton OR MyInput; &lt;br/&gt;
//By this way you can control the output with both button and physical input&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>first visualisation</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/23a917c38f/?limit=25#4985" rel="alternate"/><published>2020-05-20T08:05:25.069000Z</published><updated>2020-05-20T08:05:25.069000Z</updated><author><name>leila</name><uri>https://forge.codesys.com/u/leila/</uri></author><id>https://forge.codesys.comed373a832612fc09d3e94bc77f90651210221935</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi. I just start learning about PLCs and Codesys , so have some simple questions.&lt;/p&gt;
&lt;p&gt;What happens if you use a physical input (fx. a switch from the control box on plc) as input&lt;br/&gt;
variable to a button ? (Is it the physical or virtual input that takes priority ?)&lt;/p&gt;
&lt;p&gt;How could a physical and a virtual (visualisation) input be made to control the same&lt;br/&gt;
output ?&lt;br/&gt;
Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>