<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Modbus: Is there a way to get the channel index from the channel name?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/96c99a6e0a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/96c99a6e0a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/96c99a6e0a/</id><updated>2024-10-21T07:38:42.353000Z</updated><subtitle>Recent posts to Modbus: Is there a way to get the channel index from the channel name?</subtitle><entry><title>Modbus: Is there a way to get the channel index from the channel name?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/96c99a6e0a/?limit=25#9123" rel="alternate"/><published>2024-10-21T07:38:42.353000Z</published><updated>2024-10-21T07:38:42.353000Z</updated><author><name>DavidBo</name><uri>https://forge.codesys.com/u/davidbo/</uri></author><id>https://forge.codesys.com30b3defcba4a4b0b858e0a1d77313d91be43b7d6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When I use the FUNCTION_BLOCK ModbusChannel I have to sepcify the integer iChannelIndex&lt;br/&gt;
It can easily go wrong if one has many channels. It would be better if one could use the name. Is that possible?&lt;br/&gt;
Attached a snippet of the channel name and the channel index to the left.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>