New Analog Temperature module I/O

Hi,

I am currently integrating a new analog input temperature module (X20AT4232) into my current setup. I have added the module in the hardware configuration and have mapped the analog inputs in the IOMap. However, when I check the mapped value in the software, the value is zero. When I view the resistance value of the I/O in the Diagnostics Manager, it shows a value like 2343. Does anyone know what could be the issue?

Regards,
Kenneth

Hello Kenneth,

  1. the variables must be of the data type int
  2. the variables must be used in a task
  3. the task must be assigned to a task class
  4. in my screenshot you can see the IO mapping and the difference between local and global variables.

Regards
Stephan

1 Like

Thanks Stephan,

The cause of the issue was that resistance setting required unsigned integer variables, whereas my existing analog inputs were stored in signed integer variables. Trying to use the signed integer variable for resistance gives a compile error. For now, I have converted the I/O setting to be temperature instead, which takes a signed integer variable.

Regards,
Kenneth

1 Like