<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Convert decimal to 128 bits</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/83609397fb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/83609397fb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/83609397fb/</id><updated>2020-02-27T22:20:10.458000Z</updated><subtitle>Recent posts to Convert decimal to 128 bits</subtitle><entry><title>Convert decimal to 128 bits</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/83609397fb/?limit=25#95dc" rel="alternate"/><published>2020-02-27T22:20:10.458000Z</published><updated>2020-02-27T22:20:10.458000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com240668f5007a8897e054a63514b68d4abd15e3f2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;lets assume the factory makes a cabinet with max 128 drawers (your bits)&lt;br/&gt;
the customer checks the catalogue &lt;br/&gt;
in the cat there are lots of types like 3 drawer bottom is type 1&lt;br/&gt;
3 drawer top is type 2&lt;br/&gt;
3 drawer 5 from bottom is type 3&lt;br/&gt;
5 drawer 5 from bottom 6 drawers open then 2 drawers is type 4&lt;br/&gt;
etc.&lt;/p&gt;
&lt;p&gt;and picks a cabinet.&lt;br/&gt;
he gives you the typenumber for example 3 as a word.&lt;br/&gt;
you have an array with these typenumbers as look up list and 8 words so for easy it is array &lt;span&gt;[9,100]&lt;/span&gt; of word:=(.......,3,11100000,0,0,0,0,0,0,0,4,0000001111100000,0000000000000011,.......)&lt;br/&gt;
so word1 is array&lt;span&gt;[2,2]&lt;/span&gt;word2 is 3,2 etc.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Convert decimal to 128 bits</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/83609397fb/?limit=25#f67f" rel="alternate"/><published>2020-02-27T22:20:08.756000Z</published><updated>2020-02-27T22:20:08.756000Z</updated><author><name>kmckinney</name><uri>https://forge.codesys.com/u/kmckinney/</uri></author><id>https://forge.codesys.com2e7f9e4d1594eb053f9454c81c8bdb1425b025a2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;shooter hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
so you get a limited decimal number &lt;br/&gt;
find the number in an array, giving you back the type number.&lt;br/&gt;
with this type you can set a lot of bits by using for simplicity 16 arrays of 8 bits or 8 arrays with words.&lt;br/&gt;
example POS says 123&lt;br/&gt;
array &lt;span&gt;[200 types,2]&lt;/span&gt;&lt;br/&gt;
find number 123 in array, if found you get back a typenumber&lt;br/&gt;
another array has  out &lt;span&gt;[200,8]&lt;/span&gt; words&lt;br/&gt;
so go to typenumber and you will find the bits needed.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I'm not sure i am understanding. Do you know where I can research the concept to better understand.&lt;br/&gt;
What do you mean array &lt;span&gt;[200 types, 2]&lt;/span&gt;? A 2-dimensional array of...? Is 123 a value of an array&lt;span&gt;[index]&lt;/span&gt;? What exactly is typenumber...never heard of it before. Please know I am asking for clarity not being a pain or sarcastic. I am really trying to understand. Thank you for all your help&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Convert decimal to 128 bits</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/83609397fb/?limit=25#3ed4" rel="alternate"/><published>2020-02-27T22:20:04.410000Z</published><updated>2020-02-27T22:20:04.410000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com1509ceea62d968ef93d080479d89e67cfa7717b1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;so you get a limited decimal number &lt;/p&gt;
&lt;p&gt;find the number in an array, giving you back the type number.&lt;br/&gt;
with this type you can set a lot of bits by using for simplicity 16 arrays of 8 bits or 8 arrays with words.&lt;br/&gt;
example POS says 123&lt;br/&gt;
array &lt;span&gt;[200 types,2]&lt;/span&gt;&lt;br/&gt;
find number 123 in array, if found you get back a typenumber&lt;br/&gt;
another array has  out &lt;span&gt;[200,8]&lt;/span&gt; words&lt;br/&gt;
so go to typenumber and you will find the bits needed.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Convert decimal to 128 bits</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/83609397fb/?limit=25#f0a4" rel="alternate"/><published>2020-02-27T22:20:02.850000Z</published><updated>2020-02-27T22:20:02.850000Z</updated><author><name>kmckinney</name><uri>https://forge.codesys.com/u/kmckinney/</uri></author><id>https://forge.codesys.comd59541ade9c9588757158e258985ed42e16bfa0b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for your response shooter.&lt;/p&gt;
&lt;p&gt;When a customer makes a purchase, the POS needs to send me some type of information that lets me know what combination of outputs need to be turned on (what combination of outputs the customer purchased).&lt;/p&gt;
&lt;p&gt;My original thought was POS sends me a decimal over modbus and I convert to a word. But like you stated the decimal for 128 bits is too large for decimal form. So now I'm trying to determine the next best solution.&lt;/p&gt;
&lt;p&gt;POS could send array, string, maybe 4 double words. But I think I'd prefer an array. Reason being, the array index could represent the bits and the value of the array at the index could represent the value of the bit.&lt;/p&gt;
&lt;p&gt;That is what I am thinking now but I would love suggestions from another who has more experience than me. This is my first time working with Modbus so I'd like to communicate as efficiently as possible.&lt;/p&gt;
&lt;p&gt;Thank you again for responding to my question, I look forward to reading your response&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Convert decimal to 128 bits</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/83609397fb/?limit=25#47cf" rel="alternate"/><published>2020-02-27T22:20:01.258000Z</published><updated>2020-02-27T22:20:01.258000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com9e5424937af2b9e717b1c768b1b3cfc82f221229</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;128 bits is a very very big decimal number.&lt;br/&gt;
so 8 bits is 255 16 bits is 65535 &lt;br/&gt;
128 is 3,4028236692093846346337460743177e+38 oops so other solution isneeded.&lt;br/&gt;
so we will need more info.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Convert decimal to 128 bits</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/83609397fb/?limit=25#d41b" rel="alternate"/><published>2020-02-27T22:19:56.832000Z</published><updated>2020-02-27T22:19:56.832000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com22c7865c037c8931582be45baaf5fd294eef5c70</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;I corrected my last post - shifting over 128 bits against a WORD won't help (only gives outputs 0..15).&lt;/p&gt;
&lt;p&gt;How is the information being delivered to you?  Over a fieldbus, by a file, by ???  The most compact data transfer is by sending you 4 DWORDs, each DWORD controlling 32 outputs.  You could require a 128 character string, but that costs transmission time and seems a bit crude.&lt;/p&gt;
&lt;p&gt;So maybe quickly solve as:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;PROGRAM&lt;/span&gt; &lt;span class="nv"&gt;MapOutputs&lt;/span&gt;
&lt;span class="nv"&gt;VAR_INPUT&lt;/span&gt;
   &lt;span class="nv"&gt;Outs_92_131&lt;/span&gt; : &lt;span class="nv"&gt;DWORD&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;Outs_62_91&lt;/span&gt;  : &lt;span class="nv"&gt;DWORD&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;Outs_32_61&lt;/span&gt;  : &lt;span class="nv"&gt;DWORD&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;Outs_0_31&lt;/span&gt;   : &lt;span class="nv"&gt;DWORD&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_VAR&lt;/span&gt;
&lt;span class="nv"&gt;VAR&lt;/span&gt;
   &lt;span class="nv"&gt;Out&lt;/span&gt;   : &lt;span class="nv"&gt;ARRAY&lt;/span&gt;[&lt;span class="mi"&gt;0&lt;/span&gt;..&lt;span class="mi"&gt;127&lt;/span&gt;] &lt;span class="nv"&gt;OF&lt;/span&gt; &lt;span class="nv"&gt;BOOL&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_VAR&lt;/span&gt;
&lt;span class="k"&gt;FOR&lt;/span&gt; &lt;span class="nv"&gt;J&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="nv"&gt;TO&lt;/span&gt; &lt;span class="mi"&gt;127&lt;/span&gt; &lt;span class="k"&gt;DO&lt;/span&gt;
   &lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;J&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
      &lt;span class="nv"&gt;Temp&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;Out_0_31&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;ELSIF&lt;/span&gt; &lt;span class="nv"&gt;J&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;32&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
      &lt;span class="nv"&gt;Temp&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;Out_32_61&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;ELSIF&lt;/span&gt; &lt;span class="nv"&gt;J&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;64&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
      &lt;span class="nv"&gt;Temp&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;Out_62_95&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;ELSIF&lt;/span&gt; &lt;span class="nv"&gt;J&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;96&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
      &lt;span class="nv"&gt;Temp&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;Out_92_127&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;END_IF&lt;/span&gt;
   &lt;span class="nv"&gt;Out&lt;/span&gt;[&lt;span class="nv"&gt;J&lt;/span&gt;] :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;Temp&lt;/span&gt;.&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;Temp&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;SHR&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;Temp&lt;/span&gt;, &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_FOR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;There are many other more  ways to solve this - offered as a down-and-dirty method to show concept.&lt;/p&gt;
&lt;p&gt;You may also want to think about using a structure of BOOLs (not the same as a structure of BITS) if you want your code to show meaning for the output instead of just a bit on a DWORD.  For example, it may make more sense to specifically call out things like option A, option B, feature 17.  From there you can map those specific items to specific outputs.  For troubleshooting this is "better" because it speaks human.  For coding, it takes longer:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;TYPE&lt;/span&gt; &lt;span class="n"&gt;T_OUT&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="n"&gt;STRUCT&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="n"&gt;Option1&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;BOOL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="n"&gt;Option2&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;BOOL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="n"&gt;FeatureA&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;BOOL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="n"&gt;TopNotch&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;BOOL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="p"&gt;...&lt;/span&gt;
&lt;span class="n"&gt;END_STRUCT&lt;/span&gt;
&lt;span class="n"&gt;END_TYPE&lt;/span&gt;
&lt;span class="n"&gt;PROGRAM&lt;/span&gt; &lt;span class="n"&gt;PLC_PRG&lt;/span&gt;
&lt;span class="n"&gt;VAR_INPUT&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="n"&gt;Outs&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;T_OUT&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Then map each item of the structure to an output on your hardware IO mapping, which would look like:&lt;/p&gt;
&lt;p&gt;Ultimately, you really have to decide how your "customer" can give you the information easily and without errors such as flipping bit order, etc.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: output_map.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1295"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Convert decimal to 128 bits</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/83609397fb/?limit=25#f080" rel="alternate"/><published>2020-02-27T22:19:55.250000Z</published><updated>2020-02-27T22:19:55.250000Z</updated><author><name>kmckinney</name><uri>https://forge.codesys.com/u/kmckinney/</uri></author><id>https://forge.codesys.com891aa8f2ba9d0bab3505db89e805dd761364e802</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Scott first thank you for your response.&lt;/p&gt;
&lt;p&gt;Just to give you more detail. &lt;/p&gt;
&lt;p&gt;A customer makes a purchase and he/she has the 128 options. I'm trying to receive 1 variable that can be a combination of any of those 128 options. Obviously that is 4 DWords. I was thinking decimal might be the best way&lt;/p&gt;
&lt;p&gt;I'm not sure&lt;/p&gt;
&lt;p&gt;Or maybe have them send me an string of 128 (0 or 1)....but then I'd need to convert that into an array of bool....&lt;/p&gt;
&lt;p&gt;If you have suggestions let me know.&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Convert decimal to 128 bits</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/83609397fb/?limit=25#81f6" rel="alternate"/><published>2020-02-27T22:19:50.870000Z</published><updated>2020-02-27T22:19:50.870000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comc984d77f9d7bf27a7c6aacc377710f0c48a269c4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;Simple to do in ST:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;PROGRAM&lt;/span&gt; &lt;span class="nv"&gt;PLC_PRG&lt;/span&gt;
&lt;span class="nv"&gt;VAR&lt;/span&gt;
   &lt;span class="nv"&gt;Out&lt;/span&gt;   : &lt;span class="nv"&gt;ARRAY&lt;/span&gt;[&lt;span class="mi"&gt;0&lt;/span&gt;..&lt;span class="mi"&gt;127&lt;/span&gt;] &lt;span class="nv"&gt;OF&lt;/span&gt; &lt;span class="nv"&gt;BOOL&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;Decimal&lt;/span&gt; : &lt;span class="nv"&gt;WORD&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;Temp&lt;/span&gt; : &lt;span class="nv"&gt;WORD&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;J&lt;/span&gt;: &lt;span class="nv"&gt;INT&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_VAR&lt;/span&gt;
&lt;span class="nv"&gt;Temp&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;Decimal&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;FOR&lt;/span&gt; &lt;span class="nv"&gt;J&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="nv"&gt;TO&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt; &lt;span class="k"&gt;DO&lt;/span&gt;
   &lt;span class="nv"&gt;Out&lt;/span&gt;[&lt;span class="nv"&gt;J&lt;/span&gt;] :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;Temp&lt;/span&gt;.&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;Temp&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;SHR&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;Temp&lt;/span&gt;, &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_FOR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Typically BIT operations are used on type BYTE/WORD/DWORD for clarity (instead of INT, DINT), but the example code also works if Decimal is an INT or DINT.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Convert decimal to 128 bits</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/83609397fb/?limit=25#8856" rel="alternate"/><published>2020-02-27T22:19:49.155000Z</published><updated>2020-02-27T22:19:49.155000Z</updated><author><name>kmckinney</name><uri>https://forge.codesys.com/u/kmckinney/</uri></author><id>https://forge.codesys.comf8f151671f1d45fe2b02a31d2d7f1d1fc3f9bf1c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, I am new to codesys and I'm trying figure out a good method that would allow me to receive a decimal number (input) and convert it to binary allowing me to turn on 128 bits (outputs). I could really use some suggestions.  &lt;/p&gt;
&lt;p&gt;thanks for your input&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>