Reading 'DInt' Tag with Minus Sign.

Im trying to read a DInt tag from TIA Portal and the value is -4.
En Ignition Designer/Tag Editor/General Properties i have selected Data Type as a Long but the tag value dont have any relation with the real value, looks like i cant read the minus sign.
Probably is a very basic question but i’ll appreciate to have some help. Thanks in advance.

Is this using our Siemens driver? What address have you specified in the tag?

INT in Siemens is Short in Ignition (16 bit), DINT in Siemens is INT (32 bit) in Ignition.
If you want signed values in Ignition, you must specify the tag as I; if you want unsigned values, you must specify tag as W…
For example:
DB100, DI10 - signed value, DINT in Siemens (Integer in Ignition)
DB100, DW10 - unsigned value, DWord in Siemens ( Word or Int in Ignition)

2 Likes

Thanks very much, problem solved.