How to convert RSLogix program to S7?
Posted 27 July 2005 - 11:27 AM
I have a project that have to use S7, but the original program we have is in RSLogix, it will be a lot of works if there is no converter. If there is no converter exist, does anyone knows a better way to do that? Thanks in advance.
By the way, we use UDT to make it easier to copy and paste within RSLogix5000, is that possible to convert that as well? Thanks again.
Posted 27 July 2005 - 05:21 PM
Posted 28 July 2005 - 04:16 AM
S7 STL (statement list) has little to do with IEC IL (instruction list).
Also S7 LAD (ladder) and S7 FBD (logic function blocks) have little to do with the IEC counterparts.
Only S7 SCL (=IEC ST) and S7 GRAPH (step sequences) complies with IEC.
You will have to retype the whole lot !
S7 also uses UDTs, but you cannot import them easily. Maybe you can import them via the "source" objects in STEP7. But if you dont have so many it is easier just to retype them.
Only good thing is that most Ladder code in RSLogix will be very similar to LAD code in STEP7.
If you are an absolute beginner to STEP7, and you have a looming deadline, then get a crash-course in S7 at Siemens. It will too hard to figure out by one self, especially if you are in a hurry.
Posted 28 July 2005 - 05:55 AM
Another question. RSLogix5000 V13 can export all to a ASCII based file, can S7 read them? ---Thanks in advance.
Posted 28 July 2005 - 06:03 AM
Obviously, I have two ways to do that. One way is just retype all the logics from AB, rewrite Timer and Counter (or write customized Timer and Counter instructions using FC make it exactly same as AB functions). The second way is follow the S7 way, write a whole new program.
Which is faster? which is easier?
Thanks for help.
Edited by douyi, 28 July 2005 - 06:04 AM.
Posted 28 July 2005 - 07:41 AM
If the programming style in the original program is "classical Ladder" then I recommend that you rewrite all logics from AB to S7 and do it in S7 LAD.
S7 LAD is very close to AB Ladder (but not 100%).
Use IEC timers and not S5Timers. The IEC timers ressemble AB timers more.
No. You could possibly export/import some data file definitions - but it is for experts who know what they are doing.
RSLogix5000 V13 can export all to a ASCII based file, can S7 read them?
Posted 28 July 2005 - 01:21 PM
Thanks in advance.
Posted 29 July 2005 - 04:41 AM
You can then create "advanced" addresses such as the ones you have suggested.
If you do the above, then you must either define your data ONCE and never change them, OR you must program 100% symbolically. That means you must have "Symbolic address priority" set in stead of "Absolute address priority". This is set in STEP7 manager when you rightclick the "blocks" (in the tree porject structure) and select "properties".
Posted 29 July 2005 - 08:12 AM
Posted 08 August 2005 - 11:55 AM
Posted 08 August 2005 - 01:26 PM
Yes! It's possible, but I know nothing about STL. Another problem is Tags. In RSLogix, there is no limit of 24Characters length of a Tag, but in S7, it does. So I have some different tag name of in RSLogix and S7 which is a big headache. Anyway, I've started type in already. Maybe next time I'll write a small program to convert it - maybe it's no use in the future, because the concept are very different of AB and Siemens. Once I started using STL, it will be never converted to LAD anymore. Furthermore, it has FC and FB on 200, 300 and 400 platforms and AB has combined one on Logix platform. So much difference make very hard to do that. I hope someday at least the Ladder logix itself has some very standard verson, such as the timer and counter instructions are exactly the same, all the bits are the same, so we only need to know one language, that's all!
Just a thought - S7 supports import of STL text source files, if the RSLogix could export a text file you could write a conversion routine, perhaps using VB (or even VBA within Word), probably not worth it for one program, but if you had a lot to do then it may be a different story
Thanks everyone again!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users