Previous in Forum: Using Iphone 4s as a Modem   Next in Forum: Noise In Telephone Systems
Close
Close
Close
6 comments
Rate Comments: Nested
Active Contributor

Join Date: Sep 2012
Location: Pakistan
Posts: 17

MODBUS: Installation/Troubleshooting

08/23/2013 9:30 AM

I am countering a problem with MODBUS communication. I have an Energy Monitoring system installed where energy meters send info via Modbus to software installed. Some of the information/readings displayed are wrong. These readings are accurate on meters themselves. I checked via ModScan software which showed that registers had 'wrong' values. It means software is not corrupted & also meters(slave device) are also communicating fine. The problem is somewhere in Modbus protocol.
Can I re-install Modbus driver? How can I re-do the modbus installation from start? I am a novice at this & have never worked with Modbus before & only possess elementary knowledge regarding it. So plz share some literature or links which can guide me on the process of re-installation of Modbus.

P.S I am usinfg RS-485 based network which is then connected to a RS-485 to Ethernet converter & PC (master device) is connected via that Ethernet cable.

Register to Reply
Pathfinder Tags: Modbus
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#1

Re: MODBUS: Installation/Troubleshooting

08/23/2013 1:18 PM
__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Active Contributor

Join Date: Sep 2012
Location: Pakistan
Posts: 17
#4
In reply to #1

Re: MODBUS: Installation/Troubleshooting

08/26/2013 8:38 AM

Thanks

Register to Reply
4
Guru

Join Date: Jul 2010
Posts: 669
Good Answers: 176
#2

Re: MODBUS: Installation/Troubleshooting

08/23/2013 11:29 PM

1) The subject line infers that this meter-to-software Modbus communications link has not yet worked properly, that this is still the 'start-up stage, correct?

2) >Some of the information/readings displayed are wrong.
a) That means that your software package reads values, but does not read the correct values, correct?
b) What software are you using?
c) What model/brand energy meter?
d) what model/brand serial-to-ethernet converter?

3) When you say that Modscan showed the wrong register values, please provide a couple of examples of what the value should have been, and what Modscan showed as the register values.

Comments:
Typically, Modscan is used to "prove" the comm link and to establish whether the register addressing is zero based or one based, because addresses and formats are so readily changed in Modscan and the results of the change viewed instantly.

An offset of one in register addressing causes errors by getting another register's data. When reading floating point or long integers that use two register number formats, half the data is from one value and half the data from another value.

Or there can be issues with interpretation of the format by the master (software). For instance, integer data frequently needs to be scaled by a math operation (define a decimal point).

>The problem is somewhere in Modbus protocol.
>Can I re-install Modbus driver?
>How can I re-do the modbus installation from start?

Your software is not reading the correct values and you can't read the energy meter's registers with Modscan. Therefore your conclusion that the software's Modbus driver is faulty has a low probability.

The probability of 2 Modbus masters failing to read from a slave is low, especially when this type of start-up problem is not at all uncommon. The problem is most likely in the setup/configuration of both the software and/or Modscan, and/or serial server

>The problem is somewhere in Modbus protocol
Well, sort of. Modbus is never plug and play. It is configuration intensive.

>RS-485 to Ethernet converter
There are serial servers that are specifically designed for Modbus. Are you using one of those? What brand and model?
Some models come from the factory without the Modbus driver installed, and require driver installation.

You can play the re-install software game if you want, but if I were working on it, I'd be working with Modscan to read data that makes sense and is properly formatted.

Register to Reply Good Answer (Score 4)
Guru

Join Date: Aug 2007
Location: Earth - I think.
Posts: 2143
Good Answers: 165
#3
In reply to #2

Re: MODBUS: Installation/Troubleshooting

08/23/2013 11:53 PM

In addition, some modbus software/hardware has the ability to swap "high byte, low byte". This can be done in software as well. Since you describe the problem as being only on specific values, I would suggest looking at the raw hex data, and determining whether those values need to be interpreted differently.

__________________
TANSTAAFL (If you don't know what that means, Google it - yourself)
Register to Reply
Active Contributor

Join Date: Sep 2012
Location: Pakistan
Posts: 17
#6
In reply to #3

Re: MODBUS: Installation/Troubleshooting

08/26/2013 8:57 AM

ok will look from that angle again

Register to Reply
Active Contributor

Join Date: Sep 2012
Location: Pakistan
Posts: 17
#5
In reply to #2

Re: MODBUS: Installation/Troubleshooting

08/26/2013 8:55 AM

Thanks for your detailed reply.

1) I dont think it can be called start up stage. The system was working before, It was upgraded & some time afterwards this problem was reported.

2a. This now interesting. My PC & software is the master & energy meters installed on certain breakers are the slaves. Software package reads values of different power parameters. Problem exactly is that for say meter no.A the values being displayed for Amps, PF, KVAR etc are all correct but values for parameter kW are incorrect. On meter's display itself all values being shown are correct. This problem is same with other 2 meters that kW parameter is not correct. For other meters on the same modbus network all values are correct.

2b. Power Logic ION Enterprise

2c. ION 6200

2d. Schneider

3. By reading PDF containing information on holding registers of ION 6200 i got to know that holding register with address 40120 holds the value for kW. from Modscan I monitored the said register

For meter with correct display on software

Actual kW: 732 Value shown: 732 kW Holding register value: 00732

For meter with faulty display on software

Actual kW: 600 Value shown: 83 kW Holding register value: 00083

This suggests that problem is not with software as it is merely reading the values being sent through MODBUS Network.

Register to Reply
Register to Reply 6 comments

Good Answers:

These comments received enough positive votes to make them "good answers".
Copy to Clipboard

Users who posted comments:

Iris (1); Kilowatt0 (1); MAfzal (3); SolarEagle (1)

Previous in Forum: Using Iphone 4s as a Modem   Next in Forum: Noise In Telephone Systems

Advertisement