senthilg Posted July 29, 2017 Report Share Posted July 29, 2017 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. Quote Link to comment
Jordan Kuehn Posted July 29, 2017 Report Share Posted July 29, 2017 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...). Quote Link to comment
senthilg Posted July 29, 2017 Author Report Share Posted July 29, 2017 hi I use rs485 to USB converter. make B&B electronics. Quote Link to comment
ensegre Posted July 29, 2017 Report Share Posted July 29, 2017 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? Quote Link to comment
Porter Posted July 30, 2017 Report Share Posted July 30, 2017 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. Quote Link to comment
senthilg Posted July 31, 2017 Author Report Share Posted July 31, 2017 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. Quote Link to comment
ensegre Posted July 31, 2017 Report Share Posted July 31, 2017 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. Quote Link to comment
senthilg Posted July 31, 2017 Author Report Share Posted July 31, 2017 hi, i tested with their software it working correctly with same usb. but i labview it did't work why. Quote Link to comment
ensegre Posted July 31, 2017 Report Share Posted July 31, 2017 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. Quote Link to comment
senthilg Posted July 31, 2017 Author Report Share Posted July 31, 2017 i get error as "Modbus CRC\LRC error". Quote Link to comment
Porter Posted August 1, 2017 Report Share Posted August 1, 2017 Please try like this: Note that the default baud rate for the EM1200 is 19200 bps. Also note the 250ms delay between polls. Quote Link to comment
senthilg Posted August 2, 2017 Author Report Share Posted August 2, 2017 hello, thank you for your help. i got the output. Quote Link to comment
Engr Naveed Posted December 20, 2019 Report Share Posted December 20, 2019 On 8/1/2017 at 7:19 PM, Porter said: Please try like this: 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 ) Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.