Guest dudek Posted April 27, 2005 Report Posted April 27, 2005 I'm writing converter Allen-BradleySLC500 to SimaticS7 and I got problem with ladders like XIO B9:3/1 XIO B9:5/1 BST XIC I:3.0/1 NXB BND OTE B3:18/14 ¦N¦ ¦N¦ ¦ ¦ / \ -¦O+-¦O+-+-¦ ¦-+--+ +- ¦T¦ ¦T¦ ¦ ¦ ¦ ¦ \ / ¦ ¦ +-----+ My converter translate this ladder to network: AN DB9.DBX3.1; //B9:3/1 AN DB9.DBX5.1; //B9:5/1 A( A I30.1; //I:3.0/1 O ) = DB3.DBX18.14; //B3:18/14 This network don't work exactly like AB ladder, probably like this: ¦N¦ ¦N¦ ¦ ¦ / \ -¦O+-¦O+-+-¦ ¦----+ +- ¦T¦ ¦T¦ ¦ ¦ ¦ \ / ¦ +---- Any ideas how to convert this ladder without many changes in network? ps. If you are interested help in development of project, please send interesting, working Allen-Bradley projects for test aims. My email dudek474@poczta.onet.pl. Regards, Jacek. Quote
jacekd Posted April 28, 2005 Report Posted April 28, 2005 I'd try some thing like this: A( O( A I30.1 ) O( SET <-- "empty" branch ) ) Maybe it's not the most efficient method but it should work. Regards, Jacek Quote
Guest Guest Posted April 28, 2005 Report Posted April 28, 2005 Many PLCs (but not S7 300 and 400) have a Flag bit that is allways on. Also S7-200 has. I would place a symbolic "O ALWAYS_ON" here. Then, if you can give a symbom list to your converter, you can ALLWAYS_ON resolve to some physical address choosen by the user. In case of S7-300/400, you place some extra code, either in the 1st Network or into OB100 that says: SET = ALLWAYS_ON In case of S7-200 you just predefine ALLWAYS_ON SM0.0 in a predefined symbol file for conversion target S7-200. So you end up with a symbol file and an "extra code file" for a target. These files then could be included in projekt symbol file and project code file. Thus, the converter deal with other things too, like clocks or conversion from AB B, N and F files to Siemens DBs or V memory and could extended to other targets as well. Quote
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.
Note: Your post will require moderator approval before it will be visible.