converting modbus 32 bit floating data in to integers

vinguptain

Member
Join Date
Apr 2012
Location
delhi
Posts
1
i am communicating 1766-l32bwb with conzerv make energy meter em 6436. I have communicated it on Modbus rtu. but i am not able to decode the data. The energy meter is sending 32 bit floating data to plc. i want to decode the data.
 
I can infer from your statements that you want some suggestions about how to convert the two 16-bit Modbus integers into a Floating Point value.

The general approach is to use the Copy Word (CPW) instruction to copy two Integer data table elements into one Floating Point data table element.

Because it sounds like you are using MSG instructions and using the MicroLogix 1400 as Modbus RTU Master, you can trigger the CPW instruction using the /DN bit from the MSG instruction.

The byte order and word order from third party Modbus devices is frequently different from the byte order necessary for the Floating Point data type, so often "swapping" the bytes or words of the data before copying it into a Floating Point register is necessary.

I frequently do this by trial-and-error. If you post the values you are getting in Integer format and what value they are supposed to represent in Floating Point, then Forum members may be able to help.
 
i am communicating 1766-l32bwb with conzerv make energy meter em 6400 thru 1763 NC-01 cable. I have communicated it on Modbus rtu. but em 6400 only have 2 wire A+, B-. 1763 NC-01 need 3 wire. So, how can i connect?
Thanks.
 

Similar Topics

So I'm working on an old project I did several years ago. It has 12 nodes on a modbus RTU network. I'm going back for an expansion. I'm going to...
Replies
5
Views
1,896
Hi all, Please understand that I am not good at English. I have plan to project with one of our customer have the Ls XGB-XBC-DR60SU PLC. This PLC...
Replies
1
Views
1,485
Hi, I am using a Phoenix Contact PLC and trying to use it to write a Floating point over Modbus. To do this I need to convert it to two 16 bit...
Replies
24
Views
6,796
Hello everyone, can anyone help me with covert the STL code to ladder. Iam using plc s71200. A %DB1.DBX33.7 // angel of vaccum...
Replies
2
Views
209
Hello PLCs Forum, I am in a bit of a pickle and was hoping someone could offer me some help. I have a .rss file and just need to see the ladder...
Replies
2
Views
122
Back
Top Bottom