<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Bit / Bool data types in function parameters</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7b49ee34c2/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7b49ee34c2/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/7b49ee34c2/</id><updated>2024-01-18T09:10:59.245000Z</updated><subtitle>Recent posts to Bit / Bool data types in function parameters</subtitle><entry><title>Bit / Bool data types in function parameters</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7b49ee34c2/?limit=50#882d" rel="alternate"/><published>2024-01-18T09:10:59.245000Z</published><updated>2024-01-18T09:10:59.245000Z</updated><author><name>SiegeLion</name><uri>https://forge.codesys.com/u/smartcoco/</uri></author><id>https://forge.codesys.come06bc3d440a128f44a77f1c077228c010438a096</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Memory addressing is measured in bytes, with BOOL occupying one byte. BIT is quite unique as it occupies one bit. So, try not to use BIT in the program.&lt;/p&gt;
&lt;p&gt;You can use the Unpack function to solve your problem.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bit / Bool data types in function parameters</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7b49ee34c2/?limit=25#02e7" rel="alternate"/><published>2024-01-17T14:39:06.411000Z</published><updated>2024-01-17T14:39:06.411000Z</updated><author><name>scarter</name><uri>https://forge.codesys.com/u/scarter/</uri></author><id>https://forge.codesys.com530914cfbdda9df7b08a7720cbb4838156e77393</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Any reason BIT and BOOL data types are not interchangeable?&lt;/p&gt;
&lt;p&gt;Trying to make a function which takes a BOOL IN/OUT parameter (Not allowed to use BIT)&lt;/p&gt;
&lt;p&gt;In the main logic if I make a DINT variable, and want to use each bit on different functions CODESYS will not allow it.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>