![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|
#1 |
|
Lifetime Supporting Member + Moderator
|
Open-source software for PC/CLX Communication?
Hi all,
Has anyone ever heard of any software similar to libnodave, but for use with the AB family of processors? I'm wanting to experiment with reading/writing values to a ML1100 processor from an Excel spreadsheet, but I don't want to pay for RSLinx Pro for home use. I looked into http://www.ingearactivex.com/ which seems like a valid alternative to an OPC server, but at $300, is still too steep for my needs. Just wondering if anyone has seen any free-ware for this kind of thing or has written any code on their own to open a connection to a PLC from excel. Thanks, Dustin
__________________
"Just plug the thing in. What's the worst that could happen?" |
|
|
|
#2 |
|
Member
![]() Join Date: Apr 2002
Location: NC
Posts: 1,430
|
Just a blind guess since I really don't know, maybe there is something in Archies' Open Source AdvancedHMI project that will act as an interface. See this thread if you haven't seen the project.
http://www.plctalk.net/qanda/showthread.php?t=42656 Another thread that may be of interest: http://www.plctalk.net/qanda/showthread.php?t=68127 Last edited by jrwb4gbm; July 21st, 2012 at 03:38 PM. |
|
|
|
#3 |
|
Lifetime Supporting Member
![]() Join Date: Nov 2008
Location: Texas
Posts: 310
|
Hi,
We have an OPC DA server for $49 that can communicate with the ML1100. We have a demo that you can try. We also have example projects for using Excel as an OPC client. The two examples we have are for MODBUS and Logix. Modifying the example for PCCC will be easy. Contact support if you need some help. |
|
|
|
#4 |
|
Lifetime Supporting Member + Moderator
|
Thanks for the replies.
I've used Archie's AdvancedHMI a little bit and I quite like it. I've learned a little VB.net by messing around with it, but I don't know enough to transfer object values from an AdvancedHMI app to a spreadsheet. Anyone have any links or code on how to do this?
__________________
"Just plug the thing in. What's the worst that could happen?" |
|
|
|
#5 | |
|
Lifetime Supporting Member + Moderator
|
Quote:
I will give the PCCCOPC demo a try and see how it works. Thanks.
__________________
"Just plug the thing in. What's the worst that could happen?" |
|
|
|
|
#6 | |
|
Member
|
Quote:
http://epplus.codeplex.com/ This DLL was added as a reference to AdvancedHMI, then using the ReadAny methods of the AdvancedHMI drivers, I obtained the data from the PLC, then used EPPlus to create an Excel spreadsheet file where I stored the values. The file can then be opened using Excel.
__________________
Archie Jacobs Manufacturing Automation, LLC www.advancedhmi.com PLC Related Videos Hands-On PLC Training |
|
|
|
|
#7 |
|
Lifetime Supporting Member
|
Interesting. I was was working with him a little outside the forum to see if we could come up with a solution. I showed him the Excel COM library that you can reference.
I guess the benefit of the EPPlus library would be that you don't have to have Excel on the the machine collecting the data? |
|
|
|
#8 | |
|
Member
|
Quote:
On the application I recently did, the customer wanted a certain formatting of the spreadsheet. I let them create a blank file with Excel, I then used that as the base file. My code would open, add data, then Save As. That gave them the ability to modify their format by simply modifying the base file.
__________________
Archie Jacobs Manufacturing Automation, LLC www.advancedhmi.com PLC Related Videos Hands-On PLC Training |
|
|
|
|
#9 | |
|
Lifetime Supporting Member
|
Quote:
|
|
|
|
|
#10 |
|
Lifetime Supporting Member + Moderator
|
By adapting a piece of code that I got from dmroeder, I was able to set up a simple vb app that transferred a series of integers and floats to an Excel 2010 spreadsheet using the DF1Comm driver.
I do have another question about reading arrays on the CLX driver. On the DF1 driver reading from the ML1100, if I tried to read a block of 10 integers using "DF1Comm1.ReadAny("N7:0", 10)" then it would return only the value in N7:0 and place it in ten consecutive cells. If I want to read an array on a CLX processor, say "DINT_Array[0], L10" will something like this work? Code:
ws.Cells("B2:B11").Value = EthernetIPforCLXComm1.ReadAny("DINT_Array[0]", 10)
Thanks, Dustin
__________________
"Just plug the thing in. What's the worst that could happen?" |
|
|
|
#11 | |
|
Lifetime Supporting Member + Moderator
|
Quote:
Just curious. I have Excel on the machine that I will be using, but it would be interesting to learn another method.
__________________
"Just plug the thing in. What's the worst that could happen?" |
|
|
|
|
#12 | |
|
Lifetime Supporting Member + Moderator
|
Quote:
![]() Cheers, Dustin
__________________
"Just plug the thing in. What's the worst that could happen?" |
|
|
|
|
#13 |
|
Lifetime Supporting Member
|
Dustin, I can speak confidently regarding the CLX driver: reading arrays is supported. I think things are going wrong on the Excel side. If you were to bring the information to variables in VB you would find the correct data stored in the variables.
You could prove this by bringing the data into an array in VB, then displaying the data back to you via message box or some other means. |
|
|
|
#14 | |
|
Lifetime Supporting Member + Moderator
|
Quote:
I'm wondering if I can move the PLC array to a temp vb array, then use the Code:
Ws.Range("B2:B11").Value = Temp_Array
__________________
"Just plug the thing in. What's the worst that could happen?" |
|
|
|
|
#15 |
|
Lifetime Supporting Member
|
That code won't work. I think you will get the first value in your array in all the cells. A For/Next loop will probably be your only option.
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Topics
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| RSI developing software | BobB | LIVE PLC Questions And Answers | 16 | May 21st, 2010 02:52 PM |
| Why pay for PLC programming software? | Stephen Luft | LIVE PLC Questions And Answers | 267 | April 13th, 2010 11:20 AM |
| Siemens TP Designer Software Problem | SNK | LIVE PLC Questions And Answers | 8 | November 30th, 2006 08:10 AM |
| PLC 2/16 communication cabe and required software | kodaic | LIVE PLC Questions And Answers | 2 | September 5th, 2005 06:19 AM |
| AI2 software for PLC2 - online communication question | Contr_Conn | LIVE PLC Questions And Answers | 7 | November 10th, 2003 04:58 AM |