<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Pointer to Softmotion axis</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/be9b65be2c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/be9b65be2c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/be9b65be2c/</id><updated>2023-11-23T16:26:45.795000Z</updated><subtitle>Recent posts to Pointer to Softmotion axis</subtitle><entry><title>Pointer to Softmotion axis</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/be9b65be2c/?limit=25#45ca" rel="alternate"/><published>2023-11-23T16:26:45.795000Z</published><updated>2023-11-23T16:26:45.795000Z</updated><author><name>tk096</name><uri>https://forge.codesys.com/u/tk096/</uri></author><id>https://forge.codesys.com6574e335870387eb8fcd532746d923ed6affdee6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, you can take a look at &lt;a href="https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_pragma_attribute_global_init_slot.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_pragma_attribute_global_init_slot.html&lt;/a&gt;&lt;br/&gt;
Maybe it helps.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Pointer to Softmotion axis</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/be9b65be2c/?limit=25#1f2b" rel="alternate"/><published>2023-11-09T14:23:23.937000Z</published><updated>2023-11-09T14:23:23.937000Z</updated><author><name>totorovic</name><uri>https://forge.codesys.com/u/totorovic/</uri></author><id>https://forge.codesys.comb6df72eba4d8f42d3a97c974a9126fe0a6a2d35a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I get the same warning message with initialized variable.&lt;br/&gt;
Codesys 3.5.19.20&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Pointer to Softmotion axis</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/be9b65be2c/?limit=25#c5fb" rel="alternate"/><published>2023-10-27T20:50:31.453000Z</published><updated>2023-10-27T20:50:31.453000Z</updated><author><name>simotion</name><uri>https://forge.codesys.com/u/simotion/</uri></author><id>https://forge.codesys.comb89b7610e118ca5a57daeeaa98fe3ad2e9caef37</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;No ideas?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Pointer to Softmotion axis</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/be9b65be2c/?limit=25#77d0" rel="alternate"/><published>2023-10-25T10:37:59.991000Z</published><updated>2023-10-25T10:37:59.991000Z</updated><author><name>simotion</name><uri>https://forge.codesys.com/u/simotion/</uri></author><id>https://forge.codesys.coma07ebe2620013e2bcb0409dc581b13019e626f84</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In my projet I use Softmotion.&lt;br/&gt;
There are several Softmotion axis (type SM_Drive_Virtual).&lt;br/&gt;
In the Global Variable List I have an array of pointers to the adress of the Axis.&lt;br/&gt;
Axis : ARRAY&lt;span&gt;[1..iMaxCntAxes]&lt;/span&gt; OF POINTER TO AXIS_REF_SM3 := &lt;a class="" href="../ADR(AX01_Axis),%20%20%20//%20[1"&gt;&lt;br/&gt;
                                            ADR(AX01_Axis),   // [1&lt;/a&gt;&lt;br/&gt;
                                            ADR(AX02_Axis),   // &lt;a class="alink" href="/forge/talk-ru/2/"&gt;[2]&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This works, but when compiling I get the message : &lt;br/&gt;
 .&lt;br/&gt;
&lt;span&gt;[WARNING]&lt;/span&gt;       E3D: GVL &lt;a class="" href="../Line%2022"&gt;Device: PLC Logic: Application&lt;/a&gt;: C0564:  A reference to uninitialized variable AX01_Axis is used for initialization of Axis. Accessing the uninitialized variable may result in unexpected behavior.&lt;br/&gt;
&lt;span&gt;[WARNING]&lt;/span&gt;       E3D: GVL &lt;a class="" href="../Line%2022"&gt;Device: PLC Logic: Application&lt;/a&gt;: C0564:  A reference to uninitialized variable AX02_Axis is used for initialization of Axis. Accessing the uninitialized variable may result in unexpected behavior.&lt;/p&gt;
&lt;p&gt;Is there a way when initializing to force the hardware (softmotion axis) to first initialize and then the Global Variable List?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>