<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to ModbusTCP-type BIT or BOOL</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e2b94b1d42/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e2b94b1d42/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/e2b94b1d42/</id><updated>2020-11-16T08:46:49.196000Z</updated><subtitle>Recent posts to ModbusTCP-type BIT or BOOL</subtitle><entry><title>ModbusTCP-type BIT or BOOL</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e2b94b1d42/?limit=25#d1f1" rel="alternate"/><published>2020-11-16T08:46:49.196000Z</published><updated>2020-11-16T08:46:49.196000Z</updated><author><name>MadsKaizer</name><uri>https://forge.codesys.com/u/madskaizer/</uri></author><id>https://forge.codesys.com17b970e478476ba8c5fcd4e166586f6e1726b95c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You could use the WORD_TO_BIT, BIT_TO_WORD or just call the BITs directly on the word variable as wVariable1.0 where ".0" is the first BIT of the WORD&lt;/p&gt;
&lt;p&gt;I wrote an example of doing MODBUS-TCP communication in Codesys: &lt;a href="http://disorder.dk/wonderware/2020/10/07/modbus-tcp-between-codesys-controllers/" rel="nofollow"&gt;http://disorder.dk/wonderware/2020/10/07/modbus-tcp-between-codesys-controllers/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ModbusTCP-type BIT or BOOL</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e2b94b1d42/?limit=25#27c4" rel="alternate"/><published>2020-11-15T06:16:26.268000Z</published><updated>2020-11-15T06:16:26.268000Z</updated><author><name>razvoj</name><uri>https://forge.codesys.com/u/razvoj/</uri></author><id>https://forge.codesys.com304c12c78fb47cc5c74f34a91810f3bfdf5155ce</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;I am useing ModbusTCP library with RaspberryPI. I am using Input registers as WORDs and BOOLs. There is no problem with words. &lt;br/&gt;
I get a compile problem with BOOLs: Type 'BIT' is not equal to type 'BOOL'...&lt;br/&gt;
Why BIT type? The digital type in ModbusTCP Input registers is BOOL. I do not understand this. Any solutions?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>