The PLC generates a Short (16-bit signed) value.
PI data type Int16 only supports 15 bits. Int32 shows negative values around 65532. I tried Float16 and Float32 without success.
Just to clarify then, the data type for the data item you're trying to read on the OPC Server side of things is VT_I2, correct? You can confirm this by looking in a OPC Client tool as they typically expose the data type of the items. For example, looking at tags via the PI OPC Client Tool.
Per the documentation, this should be supported with a Int16. Since that's still giving you issues, I would suggest setting Location 2=8 so that the OPC Server attempts to send the canonical type. This should ideally transform the value into the proper data type for the PI point as necessary.
Yes, the OPC data type is VT_I2.
Setting Location2=8, AND setting the Data Type to Int32 did the trick.
Retrieving data ...