<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Symbolic IEC variable access</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/09e9994123/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/09e9994123/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/09e9994123/</id><updated>2020-02-27T13:47:57.063000Z</updated><subtitle>Recent posts to Symbolic IEC variable access</subtitle><entry><title>Symbolic IEC variable access</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/09e9994123/?limit=25#ab3b" rel="alternate"/><published>2020-02-27T13:47:57.063000Z</published><updated>2020-02-27T13:47:57.063000Z</updated><author><name>pangwei</name><uri>https://forge.codesys.com/u/pangwei/</uri></author><id>https://forge.codesys.com2da1e678a1d663c5ece259ae7b15825181e13281</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thans!&lt;br/&gt;
Now,i can access the iec variable by the name!&lt;br/&gt;
In codesys ,i used the Symbol configuration to define variables which i need accessed outside of codesys.&lt;br/&gt;
Also,i used the templates in CoDeSysRTK to access the predefine variables .&lt;br/&gt;
i do it successed!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Symbolic IEC variable access</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/09e9994123/?limit=25#19c3" rel="alternate"/><published>2020-02-27T13:47:57.009000Z</published><updated>2020-02-27T13:47:57.009000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.combfd1d1601afdd7bae093fb546e5975eb9e0042a2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This depends on the PLC you use.&lt;br/&gt;
Normally you should be able to use the programming port (USB/Serial/Ethernet).&lt;br/&gt;
In your CoDeSys V3 application you can right click on the application and add the object: Symbol Configuration.&lt;br/&gt;
Here you should add the variables.&lt;br/&gt;
Please contact your PLC vendor and HMI vendor for further details.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Symbolic IEC variable access</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/09e9994123/?limit=25#e056" rel="alternate"/><published>2020-02-27T13:47:56.955000Z</published><updated>2020-02-27T13:47:56.955000Z</updated><author><name>yue-qi-qi</name><uri>https://forge.codesys.com/u/yue-qi-qi/</uri></author><id>https://forge.codesys.com11c06636e51c2d0952575847e88d6233ce8963c5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In this case you can directly access the CoDeSys PLC variables.&lt;br/&gt;
In this case you need to add the Symbol Configuration to your application and select which variables can be accessed by the HMI.&lt;/p&gt;
&lt;p&gt;====================================================&lt;br/&gt;
How to diectly access the CoDeSys PLC variables without a protocol such as CANOpen or J1939? How to access via Symbol Configuration？&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Symbolic IEC variable access</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/09e9994123/?limit=25#b6f1" rel="alternate"/><published>2020-02-27T13:47:56.889000Z</published><updated>2020-02-27T13:47:56.889000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com4b2dca8039f76a6d405360f0e97aab910b735a99</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This is only valid for some devices. The device should in this case have Modbus Slave capabilities.&lt;/p&gt;
&lt;p&gt;In general the easiest solution would be to use the CoDeSys HMI.&lt;br/&gt;
Choose an HMI which can run the CoDeSys HMI (could also be an industrial PC with e.g. Windows XP embedded) and create your visualization in your CoDeSys application.&lt;/p&gt;
&lt;p&gt;If you have an HMI which doesn't run the CoDeSys Visualisation, but has its own tool, it would be best to choose one which has a specific CoDeSys driver.&lt;br/&gt;
In this case you can directly access the CoDeSys PLC variables.&lt;br/&gt;
In this case you need to add the Symbol Configuration to your application and select which variables can be accessed by the HMI.&lt;/p&gt;
&lt;p&gt;If your HMI is a PC, you could also choose to use a SCADA package and access the variables (available through the Symbol Configuration) with the CoDeSys OPC server. All SCADA packages have an OPC client and therefore it works quite easily.&lt;/p&gt;
&lt;p&gt;I hope this helps you find the right solution.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Symbolic IEC variable access</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/09e9994123/?limit=25#2509" rel="alternate"/><published>2020-02-27T13:47:56.826000Z</published><updated>2020-02-27T13:47:56.826000Z</updated><author><name>jzhvymetal</name><uri>https://forge.codesys.com/u/jzhvymetal/</uri></author><id>https://forge.codesys.com2723bd42e5f8cdc0a5f26b8fb500c4a2db84ae82</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Here is a table that will help you.  You have to use the AT keyword to locate the variables to IEC address.  Then the HMI reads the IEC address via Modbus registers.&lt;/p&gt;
&lt;p&gt;Here are some examples how to use the AT keyword&lt;/p&gt;
&lt;p&gt;myBool  AT %MX0.0 : BOOL; //Boolean Type&lt;br/&gt;
myInput AT %IX0.0 : BOOL;&lt;br/&gt;
myOut   AT %QX0.0 : BOOL;&lt;/p&gt;
&lt;p&gt;myByte  AT %MB0   : BYTE; //Byte Type&lt;br/&gt;
mySINT  AT %MB0   : SINT;&lt;br/&gt;
myUSINT AT %MB0   : USINT;&lt;br/&gt;
myByteArary AT %MB0 : ARRAY&lt;span&gt;[0..10]&lt;/span&gt; OF BYTE; &lt;/p&gt;
&lt;p&gt;myWORD  AT %MW0   : WORD; //16 bit types&lt;br/&gt;
myINT   AT %MW0   : INT;&lt;br/&gt;
myUINT  AT %MW0   : UINT;&lt;br/&gt;
myWordArary AT %MW0 : ARRAY&lt;span&gt;[0..10]&lt;/span&gt; OF WORD; &lt;/p&gt;
&lt;p&gt;myDWORD AT %MD0   : DWORD; //32bit Types&lt;br/&gt;
myDINT  AT %MD0   : DINT;&lt;br/&gt;
myUDINT AT %MD0   : UDINT;&lt;br/&gt;
myReal  AT %MD0   : REAL;&lt;br/&gt;
myDwordArray AT %MD0 : ARRAY&lt;span&gt;[0..10]&lt;/span&gt; OF DWORD;&lt;/p&gt;
&lt;p&gt;mySTRING AT %MB0 : STRING;  //STRING  &lt;/p&gt;
&lt;p&gt;Jzhvymetal&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=363" rel="nofollow"&gt;SoM Modbus Table.xls &lt;span&gt;&lt;span&gt;[418.5 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Symbolic IEC variable access</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/09e9994123/?limit=25#5381" rel="alternate"/><published>2020-02-27T13:47:56.772000Z</published><updated>2020-02-27T13:47:56.772000Z</updated><author><name>pangwei</name><uri>https://forge.codesys.com/u/pangwei/</uri></author><id>https://forge.codesys.comf7bcccdce0834224d90c7f53434702a7f747e51f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In my systems , there is the requirement of accessing the variables of the IEC application to display in a HMI.&lt;br/&gt;
Do you have any examples?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>