Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

connect plc using modbus with labview

hi

i m using Modbus to communicate plc with labview . but it is not working.......?

can any one give me the example program so that i can understand how to communicate ?

 

 

0 Kudos
Message 1 of 25
(7,131 Views)

Hi Nadeemalikpda,

 

Are you using the Modbus Library (http://zone.ni.com/devzone/cda/epd/p/id/4756) or the DSC Module for the Modbus communication?  There are examples included for each.

 

For the Modbus Library, the examples are in the .llb (MB Serial Example Master.vi, MB Ethernet Example Master.vi).

 

For the DSC Module, take a look at the help file here, which also has the locations of the example programs: http://zone.ni.com/reference/en-XX/help/371618F-01/lvmve/dsc_modbus_using/.

 

Morgan S

Applications Engineer

National Instruments

0 Kudos
Message 2 of 25
(7,107 Views)

i work hard on MODbus about one week but it was not fruitful for me.

Now i m using OPC Server to connect it to Mitsubishi FX  plc .Opc Server works well.

now tell me can i connect delta DVP14ss plc with opc server. ?????????

 

0 Kudos
Message 3 of 25
(7,084 Views)

Hello nadeemalikpda

 

I'd like to be able to help you on this issue.  Could you please descrive your application in detail?  The more I know about your issue, the better I will be able to assist you.

 

Thank you very much for your support of National Instruments.

 

Greg S.

Sincerely,

Greg S.
0 Kudos
Message 4 of 25
(7,065 Views)

thanks for ur reply

i m using Delta plc  . i want to connect it to my labview using modbus. i use the labview MODbus Library but it is not connecting........?

Plz help me

0 Kudos
Message 5 of 25
(7,045 Views)

Hi,

 

Could you please provide more detail about how you're attempting to connect to the PLC?  Are you using one of the example VI's for the Modbus Library?  Are you getting any errors back?  Also, you mentioned that you are using the OPC Servers to communicate with another PLC - do you have the DSC Module available?  If so, you can set up an I/O Server for Modbus and simply bind shared variables to the addresses you want to read & write.

 

Morgan S

Applications Engineer

National Instruments

0 Kudos
Message 6 of 25
(7,020 Views)

are you using a serial port or an ethernet port? there are examples of both on this forum already.

0 Kudos
Message 7 of 25
(7,015 Views)

well i m using DVP14SS PLC trying to cneect ti to labview.i m using  a serial cable to connect it.

i use MODbus lib example which i download from ni.com

0 Kudos
Message 8 of 25
(6,993 Views)

See this thread for an llb file that should work.

 

http://forums.ni.com/t5/LabVIEW/bytes-at-serial-port-problem/m-p/271579?requireLogin=False

 

Your comm port settings must match between the plc comm port and labview. The serial port cable pinouts need to be checked. Can you talk to the plc with the programming software? Are you using labview on the same computer as the plc programming software? If so, make sure the programming software does not have the port locked while trying to run the labview code.

0 Kudos
Message 9 of 25
(6,989 Views)

hi

thanks 4 ur reply.

Yes my Plc can talk with the programming software.

and my serial port settting , PLC setting and my labview setting of MODbus is same but it is still not talking .

 

0 Kudos
Message 10 of 25
(6,970 Views)