5/29/2012 5:55 PM | |
Joined: 7/7/2010 Last visit: 3/10/2025 Posts: 15721 Rating:
|
Does anyone have this library in S7-1200 / TIA Portal V11 library format? |
Last edited by: CS Moderator at: 5/31/2012 12:06 PMnew subject after splitting from /tf/WW/en/Posts/68744#top science guy |
|
5/29/2012 8:35 PM | |
Posts: 8946 Rating:
|
Try to copy the code into the SCL-editor of TIA. Perhaps there will be some different syntax that must be adapt first. |
5/29/2012 9:53 PM | |
Joined: 7/7/2010 Last visit: 3/10/2025 Posts: 15721 Rating:
|
That is an understatement! The variable definitions alone would require weeks of manual entry. |
science guy |
|
5/29/2012 10:37 PM | |
Joined: 2/16/2011 Last visit: 1/13/2025 Posts: 229 Rating:
|
Hello, I start to convert the library... Regards
AttachmentOSCAT_V11.zip (3927 Downloads) |
Last edited by: Gabriel de Oliveira at: 7/9/2012 10:29 PMIncluded the *.al11 file Gabriel de Oliveira |
|
This contribution was helpful to
7 thankful Users |
5/30/2012 7:51 AM | |
Posts: 8946 Rating:
|
So what? |
This contribution was helpful to
1 thankful Users |
5/30/2012 12:39 PM | |
Joined: 2/16/2011 Last visit: 1/13/2025 Posts: 229 Rating:
|
Hello, There is a way that is a little better than copy code to editor.
In TIA Portal.
It will appear some errors,go in each block and correct the syntax. I found some common errors like Indirect address.. Old (simatic v5.x) :WORD_TO_BLOCK_DB(_pt.DBNr).DD[ptw] := 0; New (TIA Portal) :WORD_TO_BLOCK_DB(#_PT.DBNr).DD(#tPT) := 0; The diference is in Brackets in old byte address form and parentheses in new byte address form. Regards
|
Gabriel de Oliveira |
|
This contribution was helpful to
9 thankful Users |
5/30/2012 3:52 PM | |
Joined: 7/7/2010 Last visit: 3/10/2025 Posts: 15721 Rating:
|
Gabriel, You are awesome for finding a better way! I do not have Step 7 or Step 7 Pro so your technique would not work for me. However, now that you already started the conversion and managed to make a library, many thanks to you!!! |
science guy |
|
This contribution was helpful to
1 thankful Users |
5/30/2012 4:23 PM | |
Joined: 2/16/2011 Last visit: 1/13/2025 Posts: 229 Rating:
|
Huggy, Here is all the source exported files from Step7 v5.x. Now you can import to your TIA Portal and study the codes I'm Learning a lot. I thinking to create a new post or Tip for this subject. Regards
AttachmentOSCAT Exported SCL Files.zip (3172 Downloads) |
Gabriel de Oliveira |
|
This contribution was helpful to
1 thankful Users |
5/30/2012 7:17 PM | |
Joined: 2/16/2011 Last visit: 1/13/2025 Posts: 229 Rating:
|
Hello, Even using this other method, it will take months, because I'm doing it in my free time. Another point: Some functions and function blocks are not working with S7 1200 because Indirect address in 1200 just work with PEEK and POKE. The 1200 does not acept pointer as input parameter too. Regards
|
Gabriel de Oliveira |
|
This contribution was helpful to
2 thankful Users |
6/4/2012 4:58 PM | |
Joined: 7/7/2010 Last visit: 3/10/2025 Posts: 15721 Rating:
|
For the string handling, there are a few things that are problems for Portal. You can use the AT overlay command for FBs but not FCs on input parameters. There are many string handling FCs that use the AT overlay that work fine as FBs, but the entire library is so tightly integrated, it causes problems with any other routine that uses that FC - which has to be an FB to work. I'm toying with the idea of using an add-on SCL FB that all those FCs simply call first thing to assign those AT overlay tag values. Since I do a fair amount of string handling, I was tackling the ones I'd use right away and ran into that problem. Also, FBs allow your inputs to be defined as STRING[12] but FCs require STRING and do not allow a different size string than the default. That combo of FB vs. FC differences is breaking quite a bit of the library for a clean portal conversion. |
science guy |
|
This contribution was helpful to
2 thankful Users |
Follow us on