dkennedy
Member
Hi All,
I am reading in four 16 bit signed numbers over modbus into four memory locations in RSLogix 5000. This is the value for the Standard Volume from a flow computer that I want to read from. According to my documentation they are of Double precision (Most Significant Bit First).
My problem is that when I do a MOV from these addresses into Integer variables and then just do an add on the 4 Integers it doesnt equate to
the volume value on the flow computer!
I take it the MOV command is formatting them someway so I just need a workaround for this.
If ye need to see some figures attached is a pic of the reading in from the Modbus memory locations into Integer variables.The values of these added should be 2667.82 (as read from flow computer) but I cant seem to get that number out (maybe they are two 32 bit numbers,if that matters??).Even if there isnt a command do perform this, just the maths to do it would suffice for me.
Any ideas would be great even though I wont be able to test them till next week when on site. There is bit of pressure on me too as I am new to this.
Cheers
David
I am reading in four 16 bit signed numbers over modbus into four memory locations in RSLogix 5000. This is the value for the Standard Volume from a flow computer that I want to read from. According to my documentation they are of Double precision (Most Significant Bit First).
My problem is that when I do a MOV from these addresses into Integer variables and then just do an add on the 4 Integers it doesnt equate to
the volume value on the flow computer!
I take it the MOV command is formatting them someway so I just need a workaround for this.
If ye need to see some figures attached is a pic of the reading in from the Modbus memory locations into Integer variables.The values of these added should be 2667.82 (as read from flow computer) but I cant seem to get that number out (maybe they are two 32 bit numbers,if that matters??).Even if there isnt a command do perform this, just the maths to do it would suffice for me.
Any ideas would be great even though I wont be able to test them till next week when on site. There is bit of pressure on me too as I am new to this.
Cheers
David
Last edited: