Ned_Flanders
Member
I am trying to compare two values, one comes from modbus via a datablock in the range of 0 - 65535. "Int" in the datablock.
This is displayed on a Pro face gp3500 HMI correctly and in the program.
I am trying to compare this with a level set on the HMI and the HMI has 16 bit dec 0 - 65535, 0 - 200 as its range.
If I exceed 32768, by typing 100 on the HMI (Half "Full scale") the value displayed in the program becomes a minus value!
What am I doing wrong? I thought 16 bits would display 65535.
This is displayed on a Pro face gp3500 HMI correctly and in the program.
I am trying to compare this with a level set on the HMI and the HMI has 16 bit dec 0 - 65535, 0 - 200 as its range.
If I exceed 32768, by typing 100 on the HMI (Half "Full scale") the value displayed in the program becomes a minus value!
What am I doing wrong? I thought 16 bits would display 65535.