×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

siemens step 7 memory management

siemens step 7 memory management

siemens step 7 memory management

(OP)
does anyone have a rule of thumb on laying out the address memory area in the symbol table for step 7?

If you have Bool's do you usually put them in M 1-100
Word's in M 102-200?

I have a few examples from past programs or projects.  But it seems all over the place in the memory map.

I am really getting to hate this memory layout, reminds me of Allen Bradley plc2.



RE: siemens step 7 memory management

It doesn't particularly matter as long as you make the appropriate documentation / records.

Do whatever fits in with your companies policy/past works (if any) and your customers (if any).

RE: siemens step 7 memory management

Are you talking about S7-200 or the 300/400 ranges.

If you are talking S7-300/400, then planning memory in M memory area seems limited, most data is held in DB's especially with the use of FB's and STAT's.

In S7-200, I have no idea.

RE: siemens step 7 memory management

In the S7-200 is you that decide were to put bits and bytes.
Usually I also divide the first area do bits and use the rest of memory to bytes.

So, the answer to your question is YES, personnally I use M0 to M100 bits and M102 to the end of bytes.

Also, usually I use continuos bits/bytes.
If in your program the bytes used are all over the place this is bad programming.

Don't forget of the size of the variable you are using, if is a word you will need two bytes, if is a dword you will need four bytes !!!

Regards,
Miguel

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources