monkeyhead
Member
I'm trying to display floating point values in RSView32 from a Mitsubishi FX2n controller using the Kepware Mitsubishi OPC server. It's displaying totally different numbers in RSView32 compared to what's in the PLC. I'm already reading in a bunch of discrete values, integers, and long integers from this controller and that all works fine.
According to the Kepware documentation, I need to add the " L" suffix to the address to tell the OPC server to read 32 bits of data instead of the default of 16. As near as I can tell, this is done regardless of data type stored in the data register. I'm taking this to mean that to read the single precision floating point value that is stored in registers D600 and D601, I would use the following address:
Channel_name.Device_name.D600 L
In RSView32, I created an Analog Device Tag, set the Data type to Float, and specified the address using the above format. I left all the scaling an min/max parameters at default. In tag monitor I'm getting huge numbers. All the floats are showing up as something like 1.9x10^8. The values I'm reading will always be in the range of 0 to 100.
I have extremely limited access to this system, so I can't fool around with it much. Any ideas on what I might be doing wrong?
According to the Kepware documentation, I need to add the " L" suffix to the address to tell the OPC server to read 32 bits of data instead of the default of 16. As near as I can tell, this is done regardless of data type stored in the data register. I'm taking this to mean that to read the single precision floating point value that is stored in registers D600 and D601, I would use the following address:
Channel_name.Device_name.D600 L
In RSView32, I created an Analog Device Tag, set the Data type to Float, and specified the address using the above format. I left all the scaling an min/max parameters at default. In tag monitor I'm getting huge numbers. All the floats are showing up as something like 1.9x10^8. The values I'm reading will always be in the range of 0 to 100.
I have extremely limited access to this system, so I can't fool around with it much. Any ideas on what I might be doing wrong?