<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Axis references in visualization</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e7ef149287/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e7ef149287/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/e7ef149287/</id><updated>2020-02-27T17:59:10.018000Z</updated><subtitle>Recent posts to Axis references in visualization</subtitle><entry><title>Axis references in visualization</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e7ef149287/?limit=25#a51c" rel="alternate"/><published>2020-02-27T17:59:10.018000Z</published><updated>2020-02-27T17:59:10.018000Z</updated><author><name>TotalPACkage</name><uri>https://forge.codesys.com/u/totalpackage/</uri></author><id>https://forge.codesys.com07030fa3178d26041f09074ba94461db6e1644d8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Josep M. Rams hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi.&lt;br/&gt;
The code you have post is from the library you are creating?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi Josep, &lt;/p&gt;
&lt;p&gt;I have solved my problem. The code posted was indeed part of the project but has since been re-written to solve my issue. &lt;/p&gt;
&lt;p&gt;In case anyone is interested, the structure of my visualization was incorrect. The axis references were not being recognized because the visualizations were not associated to a function block correctly. I needed to include a reference to a function block in the interface editor of the visu and create a function block with the correct axis associations to pair with the VISU.&lt;/p&gt;
&lt;p&gt;For this reason I removed all programs previous used, created function blocks for each visu window, and created a main function block with all the correct program logic and other fb calls. With this structure the user must only create a program, add the main visualization function block with axis reference, and associate the visualization to the visualization function block. &lt;/p&gt;
&lt;p&gt;This is how the MC_etc. function blocks behave as well.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: VisuStruct.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2814"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Axis references in visualization</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e7ef149287/?limit=25#7c75" rel="alternate"/><published>2020-02-27T17:59:07.048000Z</published><updated>2020-02-27T17:59:07.048000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.comed734a5557eb216d7f03cba9a84063180a694b6a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The code you have post is from the library you are creating?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Axis references in visualization</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e7ef149287/?limit=25#2c6d" rel="alternate"/><published>2020-02-27T17:59:05.994000Z</published><updated>2020-02-27T17:59:05.994000Z</updated><author><name>TotalPACkage</name><uri>https://forge.codesys.com/u/totalpackage/</uri></author><id>https://forge.codesys.com2f3b677ca7afd44ae29f71d9038246fa0c8fd1c6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Josep M. Rams hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Can you post an screen capture of visu varuables definition and some capture of the fb variables dwfinition?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi Josep,&lt;/p&gt;
&lt;p&gt;Sure. I don't have any visu definitions in the Interface Editor. I am using visu buttons to directly manipulate variables in the program associated with the visualization. &lt;br/&gt;
For instance the enable button uses the "execute ST-code" input configuration (OnMouseClick) to enable function block inputs and variable states to control button colors. see image attached. &lt;/p&gt;
&lt;p&gt;In terms of the axis definitions, within the program a function block is called and the axis name is assigned to the axis input. This works in the project that the visualization is designed in but when I generate a library with this visu, the references I use for the axis input does not work. This can be seen in the image attached with the axis name "X" and this axis input "Axis". &lt;/p&gt;
&lt;p&gt;I hope this clarifies the problem.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: EnableButtonConfiguration.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2811"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: EnableButtonProgramLogic.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2812"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Axis references in visualization</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e7ef149287/?limit=25#6318" rel="alternate"/><published>2020-02-27T17:59:03.016000Z</published><updated>2020-02-27T17:59:03.016000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com0088a5f011e425690db26984a39f8bf71832771b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Can you post an screen capture of visu varuables definition and some capture of the fb variables dwfinition?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Axis references in visualization</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e7ef149287/?limit=25#ee58" rel="alternate"/><published>2020-02-27T17:59:01.967000Z</published><updated>2020-02-27T17:59:01.967000Z</updated><author><name>TotalPACkage</name><uri>https://forge.codesys.com/u/totalpackage/</uri></author><id>https://forge.codesys.comb48412d9cb5debc91def6032c306bf767efa5416</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have created a library of function blocks and a visualization which calls those function blocks to allow ease of use. When in the library project the visualization works great, when pulled from the library in a separate project the axis links are not recognized, error code "&lt;span style="color: #FF0000;"&gt;C0046: Identifier 'X' not defined&lt;/span&gt;".&lt;/p&gt;
&lt;p&gt;My visualization is composed of several programs to handle the visualization behavior and to call the function blocks required. The function blocks use the &lt;span style="color: #0000FF;"&gt;VAR_IN_OUT&lt;/span&gt; variable &lt;span style="color: #0000FF;"&gt;Axis&lt;/span&gt; of type &lt;span style="color: #0000FF;"&gt;AXIS_REF_ETC_DS402_CS&lt;/span&gt;. This axis input is assigned "X" in the programs, which is the name of the axis in the device tree. The function blocks are written to the &lt;span style="color: underline;"&gt;PLC Open Compliant Libraries&lt;/span&gt; standard version 1.0.&lt;/p&gt;
&lt;p&gt;I have a suspicion there is either a different way to reference axes in the device tree (pointers?) or I have structured my visualization incorrectly. &lt;/p&gt;
&lt;p&gt;Any thoughts, ideas, questions? Any feedback would be appreciated. Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>