Jump to content
senthilg

RS485 communication useing Modbus master

Recommended Posts

Hi,

This is senthil. I do the program in LabVIEW for modbus RS485 communication. I use LabVIEW 2012 full development system. i also install modbus master from VIPM. I did the program using Modbus master. I using read holding register to read the data. But in excution time data didn't show.

Modbus master.PNG

Share this post


Link to post
Share on other sites

Do you happen to have a 3rd party piece of software to confirm your configuration settings and connectivity? What hardware are you using for RS-485? That's not a standard serial port on most machines (not that even RS-232 is all that common these days either...).

Share this post


Link to post
Share on other sites

it looks wrong from scratch that you're repeatedly initializing and closing the port in a full throttled loop. Anyway, first things first, not knowing what your device is, and whether the communication parameters and the register address are the right ones, there is little we can say beyond "ah, it doesn't work". It might even be that you didn't wire the device correctly. Is that 2 wire RS485 or 4? Are you positive about polarities? Do the VIs give some error?

Share this post


Link to post
Share on other sites

Hello Senthil,

I would recommend trying the "MB_Master Comm Tester" (you can find this in LabVIEW's example finder) to test the communication with the device. This way you can just focus on the testing the serial port settings and register addresses before writing your own code.

Share this post


Link to post
Share on other sites

hi,

 i use schneider electric energy meter Model:EM:1200. which is come with RS485 communication port. my program is to read the power and power factor using RS485 communication in LabVIEW. I try to program using modbus master, but values didn't shown. please help me.

Share this post


Link to post
Share on other sites

If it is this one, you could test communications first with their software, as per page 46 of the manual, to exclude that you have wired the interface incorrectly, or that the usb dongle is defective.

Share this post


Link to post
Share on other sites

Provided that the communication parameters are correct, probably you should initialize once, read no too often and close only when you're really done. Trying to do that 10000 times per second usually impedes communication.

Share this post


Link to post
Share on other sites

Please try like this:

Capture.PNG

Note that the default baud rate for the EM1200 is 19200 bps.

Also note the 250ms delay between polls.

Share this post


Link to post
Share on other sites
On 8/1/2017 at 7:19 PM, Porter said:

Please try like this:

Capture.PNG

Note that the default baud rate for the EM1200 is 19200 bps.

Also note the 250ms delay between polls.

Hi Porter can you share your email on my email address ( naveedeng1@gmail.com )

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.