I have a Keyence MP-FEN1 FD-R sensor that is connected to Ignition through the Modbus TCP driver.
I followed the sensor’s doc and created OPC tags based on the addresses given.
One address is for a totalizer value, that is supposedly 32 bit
However, my tag for this value always resets at the value of 65,535 (16 bit max).
I have my OPC item path as so: [meter name]HRUI7144
I used HRUI as the designator for this is what the Ignition doc recommends for a 32 bit unsigned integer:
With this all being the case, I am unsure why my tag value resets at the max of 16 bits. I checked throughout the sensor docs, and I could not find anything regarding setting a reset value or anything along those lines.
Any ideas? Perhaps I’m using the wrong register designator?
Yeah as the others have said, you're not reading the correct bits and need to fix that.
A -- B -- C
The sensor is probably writing to B and C and reversed order while you have Ignition reading A and B and thus you're only seeing half of it. Something along those lines.
If you're reading another signed int from the device put a negative value in it and you'll also see issues.