alameer Posted October 14, 2006 Report Share Posted October 14, 2006 welcome i need Driver for labview to connecte with modbus ( PLC ) other woard : i need connect with Delta PLC ( 9600- even parity- stop bit 1 -data bit 7 ) . plz help me . Quote Link to comment
Yair Posted October 14, 2006 Report Share Posted October 14, 2006 There are several Modbus drivers for LV on the internet, including on NI's site. You can try searching their forums for it. If you have an OPC server, you can connect to it from LV using Datasocket. Quote Link to comment
alameer Posted October 14, 2006 Author Report Share Posted October 14, 2006 There are several Modbus drivers for LV on the internet, including on NI's site. You can try searching their forums for it.If you have an OPC server, you can connect to it from LV using Datasocket. i need example to connet with PLC Quote Link to comment
crelf Posted October 14, 2006 Report Share Posted October 14, 2006 i need example to connet with PLC We're not here to do it for you - we're here to help each other. If you've got an example of what you've already tried and what problems you're having, then we might be more inclined to help. Read this and this (most specifically, read this) Quote Link to comment
alameer Posted October 15, 2006 Author Report Share Posted October 15, 2006 "" We're not here to do it for you - we're here to help each other. If you've got an example of what you've already tried and what problems you're having, then we might be more inclined to help. "" ------------------------------------------------------ i don't have examples for this topic i need examples to kwno some tools which consider important to connect with PLC thaks for crelf Quote Link to comment
Khalid Posted October 16, 2006 Report Share Posted October 16, 2006 Alameer, Please see the following for the various options you have. It also has the NI Modbus library saved in different versions: http://forums.ni.com/ni/board/message?boar...ssage.id=210421 -Khalid PS: Maybe we should clean this (it sure can use some cleaning) and put it in the CoRe (Code Repositiory) here? Quote Link to comment
alameer Posted October 16, 2006 Author Report Share Posted October 16, 2006 thank you Khalid Ansari i download this link http://forums.ni.com/attachments/ni/170/21...NI%20Modbus.llb but i don't know which example must be used becuse iam not profisinal in LV . Quote Link to comment
Khalid Posted October 17, 2006 Report Share Posted October 17, 2006 You're very welcome. The NI Modbus library has support for both Serial and Ethernet Modbus. From your first post it appears you wil be using the Serial mode. So, start by trying out the MB Serial Example Master.vi and MB Serial Example Slave.vi first. You could use two computers -- one as Master another as Slave, or use a null-modem cable to loop from one COM port to another on the same PC. Your goal should be to communicate between the Example Slave and Master VIs. Once you have this working, replace the Example Slave VI with your PLC. Feel free to post any questions you may have. Again, I strongly recommend that you get the Example working first. -Khalid Quote Link to comment
alameer Posted October 17, 2006 Author Report Share Posted October 17, 2006 here protocal for delta PLC and i can't know which how it can be used 1-MB Modbus Command to Data Unit.vi. 2-MB Serial Modbus Data Unit to String.vi. Download File:post-6375-1161076278.pdf Quote Link to comment
alameer Posted October 20, 2006 Author Report Share Posted October 20, 2006 where professional member ????? Quote Link to comment
Michael Aivaliotis Posted October 21, 2006 Report Share Posted October 21, 2006 http://forums.ni.com/ni/board/message?boar...ssage.id=210421PS: Maybe we should clean this (it sure can use some cleaning) and put it in the CoRe (Code Repositiory) here? Be my guest! You don't need any special invite... It's open to all. Quote Link to comment
Khalid Posted October 21, 2006 Report Share Posted October 21, 2006 where professional member ????? If you don't mind waiting a few days, I can take a look at the protocol you attached and provide some suggestions, hopefully -Khalid Quote Link to comment
alameer Posted October 23, 2006 Author Report Share Posted October 23, 2006 ok Khalid Quote Link to comment
David Wisti Posted October 23, 2006 Report Share Posted October 23, 2006 Alameer,Please see the following for the various options you have. It also has the NI Modbus library saved in different versions: http://forums.ni.com/ni/board/message?boar...ssage.id=210421 -Khalid PS: Maybe we should clean this (it sure can use some cleaning) and put it in the CoRe (Code Repositiory) here? Khalid, I thought the original NI Modbus library was not working correctly in 8.x, did you fix this library for 8.x? I like the idea of cleaning up this code. I always wondered why NI decided to put all these VIs into 1 library. I think serial and TCP should be separate library's. I also think master and slave should be separate, too but that just my opinion. First step in clean would be using a .lvlib and geting this into project form with public and private VIs. Taking it one step further would be converting this library to a class. David Quote Link to comment
alameer Posted October 28, 2006 Author Report Share Posted October 28, 2006 dwisti: I thought the original NI Modbus library was not working correctly in 8.x, did you fix this library for 8.x? -------------------------------------------- i am use 7.1 not 8.1 but i dont how use with PLC i need this information in the fast time Quote Link to comment
Khalid Posted November 1, 2006 Report Share Posted November 1, 2006 i am use 7.1 not 8.1but i dont how use with PLC i need this information in the fast time Alameer, Sorry for the delay in getting back to you. I looked at your DeltaPLC protocol. It uses the ASCII mode of the Modbus protocol. Unfortunately, at the moment I do not have a Modbus-ASCII device to test this. But, you can try using the 'MB Serial Master Query.vi' and changing the mode to ASCII. You can add the 'MB Serial Init.vi' to this with your Serial settings. If successful, you should see the data in the Modbus Data Unit Out cluster. Hope this gets you started at least. Regards, -Khalid PS: By the way, I tried running the Master and Slave examples included in the library in ASCII mode but wasn't successful. Khalid,I thought the original NI Modbus library was not working correctly in 8.x, did you fix this library for 8.x? I like the idea of cleaning up this code. I always wondered why NI decided to put all these VIs into 1 library. I think serial and TCP should be separate library's. I also think master and slave should be separate, too but that just my opinion. First step in clean would be using a .lvlib and geting this into project form with public and private VIs. Taking it one step further would be converting this library to a class. David Hi David, Sorry for the delayed response. I don't remember fixing anything specifically for 8.x. But, as you know, there are issues in general with this library, especially with the Slave code. I agree with your suggestions that the Ethernet and Serial versions could be separated (even if they use some common core VIs), Slave implementation can be improved, and all these can be moved to individual .lvlibs. I also don't like the fact that pretty much every VI in the library is reentrant. Haven't studied them in detail, but I am not sure if they all have to be reentrant. I guess as a first step, we should formalize the list of changes, and priortize them. Regards, -Khalid Quote Link to comment
alameer Posted November 13, 2006 Author Report Share Posted November 13, 2006 thanks Khalid i will be try again alameer 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.