VBA or other macro to expidite CLX machine design

dmbartender

Member
Join Date
Jul 2008
Location
Germany
Posts
40
Hello all,

Thanks for taking a look at my post. I am wondering if anyone knows of an excel tool, VBA or other macro to help speed up the programming of machines in Rockwell. Many of my machines are somewhat based on previous versions, but the hardware is always a bit different. So some kind of macro where I could configure the hardware in a spreadsheet and create an import file would be nice.

In Siemens for example, the text code can be exported to a source, and easily edited within Excel.

Rockwell uses an XML format, which is daunting because the files are so huge and full of formatting stuff.

Still, I wonder if anyone has experience with this. I would appreciate any feedback.
 
The L5K file that you can export/import from/to RSLogix 5000 is a text file that you can manipulate.
If you have experience with macros, VBA or any other programming language, you can get data from a text file, Excel file, etc., and insert it to the L5K file.
 
Last edited:
Excel and VBA are powerful tools, the combination does all my "grunt" work on a project. You've got a few options, use Excel/VBA to create teh .L5K, .L5X, and .CSV files you may require. There is a bit of a learning curve, but once you figure it all out you'll be making all sorts of tools for development.

Otherwise, if your machines are that similar, you may want to create "generic" program and export them to .L5X files and put them into a library, make the code modular and import what you need.
 
Thanks for the responses guys. Good to know that it's been done.

I don't have much experience with VBA yet, would anyone like to post an example of a tool with Excel VBA?

Otherwise, is there a workshop or book someone could recommend?
 
I don't have much experience with VBA yet, would anyone like to post an example of a tool with Excel VBA?

Here's something that may help you:
http://www.scribd.com/doc/63885268/Code-Generation

Notes:
I tried to upload the pdf file, but its size exceeded the quota.
I noticed the link I posted requires a subscription. If anybody knows a link where the file can be downloaded for free, please post it.
 
Last edited:
Hey great, that PDF could be the hot ticket for starting to learn. Could you upload it somewhere else, like Dropbox or something? I would be very appreciative.

Otherwise, maybe you could compress it into a different kind of file and upload it here?

Thanks ahead of time :)
 

Similar Topics

I have a alarm banner A display that shows on the botton of the screen and that must shown along with any of two specific main centered displays...
Replies
2
Views
2,034
Hello. For a PLC data logging application at a candy factory, a customer requested me to setup an add-in for MS Excel called "MX Sheet" which is...
Replies
22
Views
7,959
I have not been able to crack this one out, even after much thinking and googling:banghead:. I would be so grateful if I can get some guidance...
Replies
11
Views
3,675
So basically I want to copy Ladders 10-19 to 20-29, 30-39 etc. All the way up to Lad 180-189 For a total of 18 copies. LAD 10-19 use...
Replies
6
Views
1,947
All, I am in the process of testing a FactoryTalk View SE application that has a display that calls a Macro from VBA. 9 times out of 10 this...
Replies
0
Views
6,024
Back
Top Bottom