You are on page 1of 3

3/8/2014 excel to build similar rslogix 500 code - Forums.MrPLC.

com
http://forums.mrplc.com/index.php?showtopic=15551 1/3
#1
mmervenne
Posted 03 December 2008 - 09:15 AM
#2
Ken Moore
Posted 03 December 2008 - 11:38 AM
#3
BobLfoot
Posted 03 December 2008 - 05:29 PM
#4
JeffKiper
Posted 08 December 2008 - 09:15 PM
#5
BobLfoot
Posted 08 December 2008 - 11:20 PM
Page 1 of 1
excel to build similar rslogix 500 code I
cant remember how to do it
I know that I have used excel and notepad to build similiar rungs of logic before, i just cant remember how. For
example, I would copy the text of one rung into excel and separate the contacts into individual cells. then copy
that row making the necessary address changes as many times as i needed to. Then I would save it as a .csv file
and open it in notepad. Form there I could copy the text and paste into a rung in Logix. This would build my
rungs. Can anyone give me a hand, I cant get it to work. I may be saving it wrong from Excel.
Thanks
Mike
Use the "save as" function, to save the program as a *.slc (library file), then Excel can open the file. Add you "stuff"
save it, and then open the library file in RS500.
(http://forums.mrplc.com/index.php?app=forums&module=forums&section=findpost&pid=7 6483) Ken
Moore, on Dec 3 2008, 11:38 AM, said:
Use the "save as" function, to save the program as a *.slc (library file), then Excel can open the file. Add you "stuff"
save it, and then open the library file in RS500.
Ken has the right idea and if you are building several of the same with an ever increasing offset. Say 300 metering
belts or 300 transport conveyors. You can use a macro and a for next loop to generate the code automastically. i
built the code for a sort and ship warehouse this way once.
Bob uploaded this code generator. It is in the download section I recommend you download it and hang onto a
copy of it. It is a nice tool to have in the arsonal.
(http://forums.mrplc.com/index.php?app=forums&module=forums&section=findpost&pid=7 6603) JAK, on
Dec 8 2008, 09:15 PM, said:
Bob uploaded this code generator. It is in the download section I recommend you download it and hang onto a
3/8/2014 excel to build similar rslogix 500 code - Forums.MrPLC.com
http://forums.mrplc.com/index.php?showtopic=15551 2/3
#6
Chitukannan
Posted 27 December 2008 - 04:56 AM
#7
BobLfoot
Posted 27 December 2008 - 01:22 PM
#8
Chitukannan
Posted 28 December 2008 - 11:53 PM
#9
BobLfoot
Posted 29 December 2008 - 04:44 PM
copy of it. It is a nice tool to have in the arsonal.
The "generator" I forgot and JAK reminded me of can be found here (http://forums.mrplc.com/index.php?
showtopic=9920&hl=) .
Hello Mr. Boblfoot
I am a new user of AB slc500. Thanks for your Macro prg. I have run and got
the rung laddar and IO mapping. i saved as SLC format but i could not open in
Rslogix 500. How can i open the file in Rslogix 500? Pl. help me out.
Kannan
(http://forums.mrplc.com/index.php?app=forums&module=forums&section=findpost&pid=7 7 183)
Chitukannan, on Dec 27 2008, 04:56 AM, said:
Hello Mr. Boblfoot
I am a new user of AB slc500. Thanks for your Macro prg. I have run and got
the rung laddar and IO mapping. i saved as SLC format but i could not open in
Rslogix 500. How can i open the file in Rslogix 500? Pl. help me out.
Kannan
I'm on Holiday and won't have access to RSlogix and time to look into this before the new year.
What I recall is you do not open the SLC you import it. Same with the I/O definitions.
Post your spreadsheet as an attachment and you'll probably get a response sooner from other members who can
help as well..
(http://forums.mrplc.com/index.php?app=core&module=attach&section=attach&attach_id=7 058)
TestCode.SLC.xls (http://forums.mrplc.com/index.php?
app=core&module=attach&section=attach&attach_id=7 058) (88K)
Number of downloads: 413Thanks! I have attached the Excel fle which was created by the Macros. sure, some one
can solve this problem. Thanks in advance. Kannan
(http://forums.mrplc.com/index.php?app=forums&module=forums&section=findpost&pid=7 7 192)
Chitukannan, on Dec 28 2008, 11:53 PM, said:
attachment (http://forums.mrplc.com/index.php?
app=core&module=attach&section=attach&attach_rel_module=post&attach_id=7 058) Thanks! I have attached
the Excel fle which was created by the Macros. sure, some one can solve this problem. Thanks in advance. Kannan
What you posted is an Excel File of the Entire Sheet.
You needed to save Sheet 2 as a *.CSV file and rename it to an *.SLC File.
You needed to save Sheet 3 as a *.CSV file.
I have done that here in the Testcode.SLC and Testcode.csv files found in testcode.ZIP.
(http://forums.mrplc.com/index.php?app=core&module=attach&section=attach&attach_id=7 061)
TestCode.zip (http://forums.mrplc.com/index.php?
app=core&module=attach&section=attach&attach_id=7 061) (1K)
Number of downloads: 206
3/8/2014 excel to build similar rslogix 500 code - Forums.MrPLC.com
http://forums.mrplc.com/index.php?showtopic=15551 3/3
#10
Chitukannan
Posted 30 December 2008 - 04:22 AM
#11
BobLfoot
Posted 30 December 2008 - 07:59 AM
If the SLC does still not import then do the following:
1. Open a blank RSlogix project and write one rung in Ladder File 2.
2. Export that ladder file as an SLC Library File.
3. Change the extension with windows from SLC to CSV.
4. Open your exported CSV and look at it. it will consist of a header section and a body section where the rung you
entered exists in mnemonic form.
5. Take the rungs generated in Testcode.SLC and paste them into the new exported . PRESERVE THE HEADER
FROM THE OLD FILE AT ALL COSTS.
6. Save your combined file as a CSV.
7 . Rename your combined file as an SLC.
8. Import the SLC into a new project.
Good Luck and let us know how it goes.
Thanks Mr. Boblfoot! I was trying to use your SLC directely but it was not working. But, I went through
the other steps by opening the blank prj. and i got the output. thanks once again. Kannan
(http://forums.mrplc.com/index.php?app=forums&module=forums&section=findpost&pid=7 7 221)
Chitukannan, on Dec 30 2008, 04:22 AM, said:
Thanks Mr. Boblfoot! I was trying to use your SLC directely but it was not working. But, I went through
the other steps by opening the blank prj. and i got the output. thanks once again. Kannan
Glad to Help -
Note to All - Remember I used motors as a simple example, but a person with VB/Macro Coding skills can craft
about any repetetive code sequence using this technique.
Page 1 of 1
Community Forum Software by IP.Board
Licensed to: MrPLC.com an Elston Sy stems, Inc. owned web property