Why do negative values on my iR-AI04-TR seem to count down from 65,535 in Codesys?

Why do negative values on my iR-AI04-TR seem to count down from 65,535 in Codesys?
none 0.0 0

Hi @jonmarc91,

I believe that this issue is related to the data type used to display the input value within Codesys. If you are using either “WORD” or “UINT” the supported range is 0 - 65535. To display negative numbers you will need to display this variable as an “INT”:

To convert a UINT to an INT, please use the TO_INT function block as in this example: