<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Reading a negative number</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/49f2ef02a5/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/49f2ef02a5/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/49f2ef02a5/</id><updated>2025-05-28T13:58:03.891000Z</updated><subtitle>Recent posts to Reading a negative number</subtitle><entry><title>Reading a negative number</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/49f2ef02a5/?limit=250#1737" rel="alternate"/><published>2025-05-28T13:58:03.891000Z</published><updated>2025-05-28T13:58:03.891000Z</updated><author><name>dkugler</name><uri>https://forge.codesys.com/u/dkugler/</uri></author><id>https://forge.codesys.com884626be7f79a8921c6e92284486fb54669792f4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;why not simply converting data type UINT to INT?&lt;br/&gt;
Then avoid negative values with ... := MAX(0 , intTest);&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reading a negative number</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/49f2ef02a5/?limit=25#ff05" rel="alternate"/><published>2025-05-22T17:58:26.041000Z</published><updated>2025-05-22T17:58:26.041000Z</updated><author><name>jvfred</name><uri>https://forge.codesys.com/u/jvfred/</uri></author><id>https://forge.codesys.coma7286dc62cf18d64442471cf6160723071d49a6d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a Codesys-based Eurotherm E+PLC400 connected to Codesys HMI SL for visualization. I am also bringing in several Pressure Indicators via the Ethernet. Everything works; however, the Pressure indicators sometimes read a negative value. When they do, the displayed value on the screen reads "65532." While I know what it represents, the customer freaks out and wants it to read "0" or a negative number. The value comes in as an integer, just in case that matters. Does anyone have any ideas?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>