Jump to content

converter Allen-BradleySLC500 to SimaticS7


Recommended Posts

Guest dudek
Posted
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.
Posted
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
Guest Guest
Posted
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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...