<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Bitwise operation in HMI designer]]></title><description><![CDATA[<p dir="auto">I have to deal with some 16-bit statuswords. Every single bit of these words I would like to visualize within HMI designer. What is the most efficient way to do this?<br />
Should I do the bitwise operation already in the REXlogic or can I do the bitwise operation directly in the table with the connection strings? The latter would be ideal but for the moment I can only accomplish this by using first an ALIAS before doing the actual bitwise operation. Can it not be done directly?</p>
<p dir="auto">Test example :</p>
<p dir="auto"><img src="/assets/uploads/files/1611657503539-39a00482-58a2-43db-8b27-f12a3403a2e0-image.png" alt="39a00482-58a2-43db-8b27-f12a3403a2e0-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.rexygen.com/topic/204/bitwise-operation-in-hmi-designer</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 08:38:18 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/204.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Jan 2021 10:38:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bitwise operation in HMI designer on Wed, 27 Jan 2021 13:02:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/5">@cechurat</a></p>
<p dir="auto">It would be (time-wise) more convenient for me to create one SVG-object which can display all different statuses from a single alarm. Now the connecting of all these different alarm-bits in HMIdesigner is really time-consuming... but I'll manage... <img src="https://forum.rexygen.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6d51e091ff9" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
<p dir="auto">That's why I think that it would be a better solution to make a custom SVG that accepts a byte with all the necessary info...then only one connecting string is needed for one alarm. But for now, I'll stick to what I'm already doing because following the path of creating new custom objects will cost me even more time I'm afraid.</p>
]]></description><link>https://forum.rexygen.com/post/766</link><guid isPermaLink="true">https://forum.rexygen.com/post/766</guid><dc:creator><![CDATA[Apollo]]></dc:creator><pubDate>Wed, 27 Jan 2021 13:02:04 GMT</pubDate></item><item><title><![CDATA[Reply to Bitwise operation in HMI designer on Wed, 27 Jan 2021 07:10:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/185">@apollo</a> Hi Kris,</p>
<p dir="auto">what about using library subsystems (see doc: <a href="https://www.rexygen.com/doc/ENGLISH/MANUALS/RexygenStudio/RexygenStudio_ENG.html#x1-360005">https://www.rexygen.com/doc/ENGLISH/MANUALS/RexygenStudio/RexygenStudio_ENG.html#x1-360005</a>) in REXYGEN?<br />
Any change in the library source subsystem will make changes in all references used in algorithm instantly. Such a subsystem can look like:</p>
<p dir="auto"><img src="/assets/uploads/files/1611731295197-0e2ab398-d938-4011-b1fe-775878aff1a8-image.png" alt="0e2ab398-d938-4011-b1fe-775878aff1a8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Cheers,<br />
Tomas</p>
]]></description><link>https://forum.rexygen.com/post/762</link><guid isPermaLink="true">https://forum.rexygen.com/post/762</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Wed, 27 Jan 2021 07:10:41 GMT</pubDate></item><item><title><![CDATA[Reply to Bitwise operation in HMI designer on Wed, 27 Jan 2021 06:44:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/5">@cechurat</a><br />
Thanks for your reply, we are doing it now as you suggested within the logic itself. Now we end up with many of these : <img src="https://forum.rexygen.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=6d51e091ff9" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
<p dir="auto"><img src="/assets/uploads/files/1611729291846-b8312aa5-f285-4824-b666-dc07c683969e-image.png" alt="b8312aa5-f285-4824-b666-dc07c683969e-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Every word consists of 2 status-bytes of which I only need three the most. Every byte is representing the status of an alarm and these bits are for: active alarm, not-acknowledged alarm, sensor failure)</p>
<p dir="auto">Maybe the creation of a custom svg object to represent these statuses would be the best. It would save me a lot of copy/pasting and looking up different bits... which leave a lot of room to make mistakes</p>
]]></description><link>https://forum.rexygen.com/post/761</link><guid isPermaLink="true">https://forum.rexygen.com/post/761</guid><dc:creator><![CDATA[Apollo]]></dc:creator><pubDate>Wed, 27 Jan 2021 06:44:12 GMT</pubDate></item><item><title><![CDATA[Reply to Bitwise operation in HMI designer on Tue, 26 Jan 2021 21:14:54 GMT]]></title><description><![CDATA[<p dir="auto">Hi Kris,</p>
<p dir="auto">the solution you described using means of REXYGEN HMI Designer is the best I can think of now. Please, be aware that the ALIAS name used in expression need to be in alphabetical order before the expression name (e.g. ALIAS "temp" and expression "test" works fine - vice versa ALIAS "test" and expression "temp" won't work).</p>
<p dir="auto">I would suggest to use the bitwise operations within REXYGEN algorithm. You can easily see what's going on there in Watch mode. Also using function blocks can be sometimes more "readable" (this is not general truth).</p>
<p dir="auto">Cheers,<br />
Tomas</p>
]]></description><link>https://forum.rexygen.com/post/760</link><guid isPermaLink="true">https://forum.rexygen.com/post/760</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Tue, 26 Jan 2021 21:14:54 GMT</pubDate></item></channel></rss>