You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old December 1st, 2007, 11:40 PM   #1
carl1
Member
United Kingdom

carl1 is offline
 
Join Date: Dec 2007
Location: UK
Posts: 8
s7 comments

Morning All,

the question is I have a s7 315 plc I have two lot sof source code

almost identicall....one with comments and one without.

The one without is the most up to date. How do I import the out of date code comments into the up to the most up to date code?

I've had a squizz around the package but nothing jumps out at me
  Reply With Quote
Old December 2nd, 2007, 12:44 AM   #2
manmeetvirdi
Member
India

manmeetvirdi is offline
 
Join Date: Oct 2004
Location: India.
Posts: 750
CTRL+C

CTRL+V

  Reply With Quote
Old December 2nd, 2007, 05:24 AM   #3
L D[AR2,P#0.0]
Lifetime Supporting Member
United Kingdom

L D[AR2,P#0.0] is offline
 
Join Date: Nov 2006
Location: UK
Posts: 6,221
How are you comparing the two different sets of source code ? (Note that in S7 terminology, source code is text and has to be compiled to generate a block)
  Reply With Quote
Old December 2nd, 2007, 06:46 AM   #4
komatic
Member
Ukraine

komatic is offline
 
Join Date: Apr 2007
Location: Ukraine
Posts: 29
Quote:
Originally Posted by carl1

The one without is the most up to date. How do I import the out of date code comments into the up to the most up to date code?
Sometimes is better make changes in old version, but with comments.
And make them identical with up to date project.
__________________
---
  Reply With Quote
Old December 2nd, 2007, 12:57 PM   #5
surferb
Lifetime Supporting Member
United States

surferb is offline
 
surferb's Avatar
 
Join Date: Jun 2007
Location: DC area
Posts: 1,767
Squizz?
Quote:
Originally Posted by carl1
I've had a squizz around the package but nothing jumps out at me
__________________
Nathan Boeger, CISSP-ISSAP, CCVP/CCNA, MCSE, VCP
"Design Simplicity Cures Engineered Complexity"
Comment on Not another industrial software Blog
Ignition by Inductive Automation, rethinking SCADA for modern manufacturing 2 minute video
  Reply With Quote
Old December 2nd, 2007, 01:33 PM   #6
L D[AR2,P#0.0]
Lifetime Supporting Member
United Kingdom

L D[AR2,P#0.0] is offline
 
Join Date: Nov 2006
Location: UK
Posts: 6,221
Squizz - Australian slang for "a look"
  Reply With Quote
Old December 2nd, 2007, 01:39 PM   #7
surferb
Lifetime Supporting Member
United States

surferb is offline
 
surferb's Avatar
 
Join Date: Jun 2007
Location: DC area
Posts: 1,767
Sweet! Could have looked it up, but it was more entertaining to ask.

Quote:
Originally Posted by L D[AR2,P#0.0]
Squizz - Australian slang for "a look"
__________________
Nathan Boeger, CISSP-ISSAP, CCVP/CCNA, MCSE, VCP
"Design Simplicity Cures Engineered Complexity"
Comment on Not another industrial software Blog
Ignition by Inductive Automation, rethinking SCADA for modern manufacturing 2 minute video
  Reply With Quote
Old December 5th, 2007, 01:31 AM   #8
carl1
Member
United Kingdom

carl1 is offline
 
Join Date: Dec 2007
Location: UK
Posts: 8
Thanks for that I see a some interest in my slang ..... although its more than likely not slang anymore. I copied the symbol file over .... and what do you know I got the file names. copy and past sounds like a real ache. Is there not some file or feature that will export the names and comments
The SLC allen bradley has this feature has siemens got this, surely its a basic feature??
  Reply With Quote
Old December 5th, 2007, 07:19 AM   #9
PeterW
Member
Canada

PeterW is offline
 
Join Date: Jun 2006
Location: Edmonton
Posts: 2,522
You're causing some confusion with your terminaology.

1. Source code, as Simon referred to, is an uncompiled copy of the code. Are you really talking of source code, or are you talking about 2 copies of the project.

2. Comments are the text associated with segments, your now talking about symbols and descriptors.

You can export and import symbols from within the symbols file, it makes a CSV file.

If the comments and symbols are within updated FB or FC parameters, you would have to transfer those FB/FC's.

If FB's, you would then need to re-create the instance DB's.

If its segment somments, then you would have to write in yourself or copy the individual blocks.
  Reply With Quote
Old December 5th, 2007, 07:33 AM   #10
carl1
Member
United Kingdom

carl1 is offline
 
Join Date: Dec 2007
Location: UK
Posts: 8
sorry for the confusion....

The source code that I'm refering to is the ladder logic, STL, that resides in ob1 etc etc. This resides in two seperate projects, one with comments and one without. It's the memory alias names,symbol names, block titles, block comments, network comments. The cvs files ...can they be imported back into another project that does not have all these comments and file discriptors.
  Reply With Quote
Old December 5th, 2007, 07:57 AM   #11
S7Guy
Member
United States

S7Guy is offline
 
Join Date: Nov 2003
Location: Dayton, Ohio
Posts: 1,250
If you go to Options> Manage Multiligual Texts, you can export all of the comments you are referring to. The intent was to create symbols and comments in multiple languages, but you could also use it to modify comments across several projects. It wouldn't be hard to come up with a script that merged the resultant CSV files.
  Reply With Quote
Old December 5th, 2007, 08:06 AM   #12
carl1
Member
United Kingdom

carl1 is offline
 
Join Date: Dec 2007
Location: UK
Posts: 8
Red face

Aaah that sounds more like it I done this but I never realised that a change in this file could be reflected back in the project...is that correct? if I do a change in one of the csv files do I see it refelcted in the project as well?
  Reply With Quote
Old December 5th, 2007, 08:12 AM   #13
PeterW
Member
Canada

PeterW is offline
 
Join Date: Jun 2006
Location: Edmonton
Posts: 2,522
Quote:
Originally Posted by carl1
sorry for the confusion....

The source code that I'm refering to is the ladder logic, STL, that resides in ob1 etc etc.
Then if your going to be working more with Step 7 then I would drop the source code description as it will confuse

Quote:
Originally Posted by carl1
This resides in two seperate projects, one with comments and one without. It's the memory alias names,symbol names, block titles, block comments, network comments. The cvs files ...can they be imported back into another project that does not have all these comments and file discriptors.
I would also drop the alias, as siemens don't do alias
  Reply With Quote
Old December 5th, 2007, 08:13 AM   #14
S7Guy
Member
United States

S7Guy is offline
 
Join Date: Nov 2003
Location: Dayton, Ohio
Posts: 1,250
Yes, there is an import function to go along with the export. You can do anything you want with the offline files and import them back in.

That said, remember that this is Siemens. They will give you more possibilities to do something than a normal human being would ever need, but it won't be intuitive. Have fun
  Reply With Quote
Old December 5th, 2007, 08:25 AM   #15
carl1
Member
United Kingdom

carl1 is offline
 
Join Date: Dec 2007
Location: UK
Posts: 8
s7
Yes intuition is lacking thanks for your help appreciate it, mabye I can return the favour one day.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Siemens S7 uploading no comments ?? Dartagnan LIVE PLC Questions And Answers 8 December 23rd, 2006 05:25 AM
S7, edit comments after download ason LIVE PLC Questions And Answers 2 February 7th, 2006 05:36 PM
Comments disappear in STL (S7) ?? Johnny T LIVE PLC Questions And Answers 2 October 6th, 2005 11:02 AM
S7 Comments and Descriptions Ken J LIVE PLC Questions And Answers 5 August 25th, 2005 09:38 AM
S7 export DB symbols and comments. JesperMP LIVE PLC Questions And Answers 12 March 22nd, 2004 10:09 AM


All times are GMT -4. The time now is 06:58 PM.


.