plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Import symbol table into a data block

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> ROSimatic
View previous topic :: View next topic  
Author Message
valz
Member 3
Member 3
valz

Joined: 26 Jul 2015
Posts: 771

PostPosted: 12/04/2023 19:24    Post subject: Import symbol table into a data block Reply with quote

Import symbol table into a data block
https://support.industry.siemens.com/cs/document/16893267/

How do you import a symbol table into a data block in STEP 7 V5.x?

Instructions

Open the symbol table in the SIMATIC Manager.
Export the symbol table using the "Table > Export" menu command.
Choose the storage location and assign an object name, e. g. symlist.asc. You must set "ASCII (*.ASC)" as the object type.
Click on "Save".
Open the exported ASC file in Windows Explorer, e. g. with WordPad.
Delete any FB, FC, SFC, SFB and DB-type symbols there may be. There may only be symbols present for inputs, outputs and markers.
Then delete the absolute addresses and line code (126) in every line, leaving only the symbol names and data types.
In WordPad, copy the leftover data.
Go to the SIMATIC Manager.
Insert an STL source into the source folder and open the source.
Configure a template for the data block by means of the menu command "Insert > Block Template > DB".
Delete the tag "b0" from the declaration and the instruction of "b0" between "BEGIN" and "END DATA BLOCK".
Now insert the data that you copied from the ASC file into the block template of the STL source between "STRUCT" and "END STRUCT".
Type a colon after each symbol name.
Enter a semicolon after each data type.
Delete any comments which are not required (green text) from the data block template.
Also change the number of the data block in accordance with your STEP 7 program, e. g. DB5.
Save and compile the source data block via the disk and compiler icons. Once the data block has been successfully compiled, the data block (in this case DB5) is generated and saved in the block folder.
Open the data block in the SIMATIC Manager.
The symbols are now imported into the data block.

Further information
https://support.industry.siemens.com/cs/document/22781586/how-do-you-import-and-export-the-symbol-table-for-editing-in-excel
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> ROSimatic All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro