3/11/2013 7:52 AM | |
Posts: 76 Rating:
|
Hello! I am new to TIA and I wonder if there is a way to create DB like it is possible in step7 v5.5 where you can in scl source define DB and just write it's structure. Best regards Lesko |
3/12/2013 10:54 AM | |
Joined: 9/23/2005 Last visit: 3/31/2025 Posts: 4406 Rating:
|
Hi, I would like it also, but Ifear this will not bepossible... You can try to build a SCL source in S7 5.x and import it in the External source files ... If you get something, tell us. |
Denilson Pegaia |
|
5/10/2013 3:40 PM | |
Joined: 11/22/2009 Last visit: 10/7/2024 Posts: 11 Rating:
|
Well this works. I've imported the SCL source files from a Step7 V5.5 and I've got them OK (it converts all these things: e.g.: Code inside the FB: Step7 v5.5: FOR I:=1 TO 10 DO wTemp := WS[I].var1; TIA portal v12: FOR #I:=1 TO 2 DO #wTemp := #WS[#I].var1; Import Data block (DB): Step7 v5.5 DATA_BLOCK DB_example FB_example // // Instance DB for the FB_example // BEGIN index := 1; type:=0; END_DATA_BLOCK TIA portal v12: DATA_BLOCK "DB_example" { S7_Optimized_Access := 'FALSE' } AUTHOR : UNICOS FAMILY : WSTAT VERSION : 0.1 // // Instance DB for the FB_example // "FB_example" BEGIN index := 1; type := 0; END_DATA_BLOCK Up to here it is fine, but I still do not know how to specify in the importation file the desired number of the DB to be created!!! Anyone has already done this? Cheers, Qq |
This contribution was helpful to
1 thankful Users |
5/10/2013 9:32 PM | |
Joined: 7/7/2010 Last visit: 4/1/2025 Posts: 15784 Rating:
|
Does portal create the next available DB number? You should not need the DB number for access since you named it in your scl code. |
science guy |
|
5/16/2013 9:00 AM | |
Joined: 11/22/2009 Last visit: 10/7/2024 Posts: 11 Rating:
|
Yes, TIA portal uses the next available resource. This is precisely the problem because I need to know the numbering in advance. Not everything is symbolic in the PLC application. For example the mapping with the SCADA is done by the absolute address (e.g. DB300.DBD4F) and not by the symbolic name. I've just asked the hotline and it seems no possible. I hope that in the short future they will have this feature, otherwise forget about importing applications!
|
11/25/2014 7:42 AM | |
Joined: 11/25/2007 Last visit: 1/28/2025 Posts: 10 Rating:
|
We have the same problem, we need create DB with name and number assigned. Is it possible now in TIA portal by SCL source? |
6/7/2015 3:23 PM | |
Joined: 8/1/2014 Last visit: 4/26/2023 Posts: 4 Rating:
|
I would also like to use the "generate from source" function to create datablock instance and data blocks with specific DB numbers because my SCADA uses absolute addressing also. Is there a solution to this issue ? I tried this: DATA_BLOCK "MBC_dev03_test_Write" DB 8449 { S7_Optimized_Access := 'TRUE' } VERSION : 0.1 NON_RETAIN "ModbusData_Array" BEGIN END_DATA_BLOCK However the "generate source from block" does not take my DB number of 8449, but instead just assigns the next free DB number. Using TIA V13, sp1 |
5/13/2019 3:26 PM | |
Joined: 4/20/2010 Last visit: 3/19/2025 Posts: 47 Rating:
|
Here is a solution to create a DB from an external source : the text file contain the following : ================================== DATA_BLOCK DB189 ================================== ================================== DATA_BLOCK "DI_B_CP01_COU010" ================================== I hope this can help you. PS : text file is a standard text file So far, even, with TIA v15, it is not possible to create a DB by specifying the name and the number. Perhaps in update 22 of TIA this will be possible Alternative solution is to generate DB is Step7 (by name or number), then edit memento table, then convert project to TIA. |
Last edited by: seb_2 at: 05/13/2019 15:30:34 |
|
This contribution was helpful to
1 thankful Users |
1/13/2023 10:18 AM | |
Joined: 12/5/2022 Last visit: 3/13/2025 Posts: 9 Rating:
|
I assume this is still not possible in TIA 17, 10 years after the issue was raised in several threads on Siemenses own support pages? |
1/13/2023 1:07 PM | |
Joined: 4/20/2010 Last visit: 3/19/2025 Posts: 47 Rating:
|
Hello, I confirm, this is still not possible in TIAv17 Upd4 However, to bypass this issue, we have developped an "addin" that allows to do that : By selecting the DB you need to re-numbered, then activate the addin Then you can select the first DB number, and the addin will re-numbered all DB Here is the addin. Please replace .txt by .addin And place it in the followinf folder : Hope this will help people ! Seb AttachmentNumber_block_V17 Numerotation dans une plage.txt (505 Downloads) |
We are working on a new user interface with better overview and more relevance.
To explore the new Forum, you can follow the textbox in the right column, which will lead you to the corresponding page in the new Forum. Alternatively, you can start from the main page by following this link:
https://sieportal.siemens.com/en-ww/support/forum
In the coming days, we will update the configuration step by step, so that you are directed to the new Forum by default. The “classic Forum” will remain available for all known functionalities alongside the new one.
We are thrilled to finally share the future of our Forum with you. Thank you for your commitment!
Kind regards,
the Forum Support Team
Follow us on