constructing modbus tcp messages for float and 32 bit intege
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
constructing modbus tcp messages for float and 32 bit intege

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
prasi
Guest





Posted: Tue Nov 29, 2005 9:15 am    Post subject: constructing modbus tcp messages for float and 32 bit intege Reply with quote

hi all
Can anyone please Explain me how to handle float and 32 bit values in
modbusTCP protocol.
I have searched them net,got something but i didn't understand.
thanks in advance.
Back to top
Paul Keinanen
Guest





Posted: Tue Nov 29, 2005 5:15 pm    Post subject: Re: constructing modbus tcp messages for float and 32 bit in Reply with quote

On 28 Nov 2005 23:14:23 -0800, "prasi" <kp.prasanna@gmail.com> wrote:


Quote:
Can anyone please Explain me how to handle float and 32 bit values in
modbusTCP protocol.

Put 16 bits in e.g. register 1000 and the rest 16 bits into register
1001. Use two adjacent registers for the 32 bit and/or floating point
data.

Which 16 bits (and in what byte order) should be put into reg 1000 and
what into reg 1001 that you have to figure out yourself. The
convention varies from device to device. Some device might even expect
non-IEEE floating point formats :-).

Paul
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB