<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Read Global Variable from an IoT Device</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8ce9c100ae/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8ce9c100ae/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/8ce9c100ae/</id><updated>2025-07-22T07:09:56.032000Z</updated><subtitle>Recent posts to Read Global Variable from an IoT Device</subtitle><entry><title>Read Global Variable from an IoT Device</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/8ce9c100ae/?limit=25#f621" rel="alternate"/><published>2025-07-22T07:09:56.032000Z</published><updated>2025-07-22T07:09:56.032000Z</updated><author><name>fedex03</name><uri>https://forge.codesys.com/u/fedex03/</uri></author><id>https://forge.codesys.com32478c1dbe823db58410965bbe3be2baaffe426c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;I am new to the forum, and to programming with CodeSys.&lt;br/&gt;
I am dealing with IoT device for industry and I should check if a device is able to read/write global variables in an EtherNet/IP Master.&lt;/p&gt;
&lt;p&gt;Since I do not have an EtherNet/IP PLC, I thought of using CodeSys as a softPLC.&lt;/p&gt;
&lt;p&gt;I created a program with a set of global variables (GVL) and a task that increments them.&lt;/p&gt;
&lt;p&gt;I would like to know if I need to enable any options so that the global variables can be read by IoT devices.&lt;br/&gt;
My device supports Class 2 Class (Explicit Messaging Connection) communication.&lt;/p&gt;
&lt;p&gt;Thank you in advance for your help.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>