From 12:00 AM CDT Sunday, October 17 - 11:30 AM CDT Sunday, October 17, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connect a PLC via Modbus RTU serial communication

Can anyone guide me on how to connect a PLC to LabVIEW via Modbus RTU serial communication? I have Productivity 2000 PLC from Automation Direct and I am using LabVIEW 2020. Please don't write about using OPC servers. I want to use Modbus RTU serial communication. Once again, I want to use Modbus RTU serial communication.

0 Kudos
Message 1 of 7
(168 Views)

@Rob28 wrote:

Can anyone guide me on how to connect a PLC to LabVIEW via Modbus RTU serial communication? I have Productivity 2000 PLC from Automation Direct and I am using LabVIEW 2020. Please don't write about using OPC servers. I want to use Modbus RTU serial communication. Once again, I want to use Modbus RTU serial communication.


Well all that information should be in the device manual.

 

But in general any common USB to RS232 or USB to RS485 adaptor can be used for Modbus RTU, again the manual should say what type you need.

 

Once you have the physical connections made you should install the LabVIEW Modbus library

 

I must state that the manual for your device is going to become very important as it should contain a "register map" and all the information you will need to know to use your device. 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 7
(158 Views)

I am sorry but I think you did not understand my question. I am talking about PLC connection to Labview. Its done by creating a server. Please see attached image for better understanding.

0 Kudos
Message 3 of 7
(153 Views)

@Rob28 wrote:

I am sorry but I think you did not understand my question. I am talking about PLC connection to Labview. Its done by creating a server. Please see attached image for better understanding.


Hmm.... I swear you said:

 

@Rob28 wrote:

Can anyone guide me on how to connect a PLC to LabVIEW via Modbus RTU serial communication? I have Productivity 2000 PLC from Automation Direct and I am using LabVIEW 2020. Please don't write about using OPC servers. I want to use Modbus RTU serial communication. Once again, I want to use Modbus RTU serial communication.


But whatever...

 

Please give a better description of what you are trying to do then.

 

BTW: I HAVE programmed a Modbus device using the method I wrote above using a USB-RS485 converter and teh LabVIEW Modbus library I linked to. 

 

I never had to create a "sever" of any type, so I don't know what you are even trying to do in your picture

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 7
(149 Views)

I want to use LabView I/O servers to connect my PLC to LabVIEW. I do not want to use OPC. I want to use Modbus. Its the same thing which I asked in my 1st question. 

The thing which you are explaining, every child knows how to do it. I think you don't even know what a PLC is. Please don't respond to this thread.

0 Kudos
Message 5 of 7
(144 Views)

 

Good luck

 

========================
=== Engineer Ambiguously ===
========================
Message 6 of 7
(141 Views)

Hi Rob,

 


@Rob28 wrote:

I want to use LabView I/O servers to connect my PLC to LabVIEW. I do not want to use OPC. I want to use Modbus. Its the same thing which I asked in my 1st question.


So in the 5th (and your 3rd) message in this thread you finally told us what you want to achieve.

None of the messages before that mentioned any "I/O server plugins for Shared Variable Engine", "to be created with DSC module"…

It's definitely NOT the same thing as asked in the 1st message!

 


@Rob28 wrote:

The thing which you are explaining, every child knows how to do it. I think you don't even know what a PLC is. Please don't respond to this thread.


You really should learn to create better question, right from beginning.

No need to complain about "bad" answers when the question was wrong/unclear!

 

  • Why do you want to use the SVE to communicate with your PLC?
  • Why don't you want to go the easy route of using a Modbus library with a RS232/485 port directly? (Especially when "every child" is able to use that?)
  • Do you have the DSC module available/included with your NI license?
Best regards,
GerdW


using LV2020 on Win8.1+cRIO
Message 7 of 7
(78 Views)