Creating retentive tag in Siemens

Jim G.

Member
Join Date
Nov 2007
Location
Georgia
Posts
187
I have a small project running on a S7-1500. In the program is a bit %MD66 which is a value input from an HMI. I want to make this value retentive on the HMI when power is cycled. How do I go about doing this? Thanks
 
I can't find it in the manual but the M area does not appear to be retentive for the S7-1500 (it is selectable in the s7-300).


Use a tag in a DB instead and make that tag retentive.
 
Just like in the 300's, M memory can be made retentive in a configurable range, MB0 to whatever you configure. By default, no tags are retentive. To make some memory retentive, use the Retain icon on the tag table toolbar. It's the one with a wrench on the right side.

That said, I agree with LD. DBs are simpler and more flexible. The best practice I generally hear is to use M memory as little as possible, besides things like the clock bits. I find that M memory is great for tags created for testing. It's easy to then go back and look, if there are any PLC tags, you still have some testing code left.
 
M area is a little dangerous because of the bug in automatic tag creation in v14. That does not check for defined bytes and will create overlapping words. Or maybe it’s a setting I’ve missed. Saw it once and made my mind up because it’s TIA.
 
Last edited:
Thanks for the input. I used a global DB to create a separate tag and made it retentive. Replaced the M tag with that.
 

Similar Topics

The idea here is to provide for a brief rapid influx of message codes while preventing sequentially repeating the same message. i.e. if two...
Replies
23
Views
673
Hello everyone, In a factory where we installed Citect 7.20 the computer began to show the first signs of end of life. They never considered...
Replies
0
Views
73
Hi everyone, I'm a last year student at the university in Ghent, and for my thesis i need to write a TwinCAT program that writes data to a .daq...
Replies
0
Views
140
When I go to create a new module in Studio 5000 I can't enter any information for the IP Address or change any other fields. Is there any fix to...
Replies
1
Views
251
Hello I am kind of new to the Rockwell world, i've mainly worked with Siemens and Schneider untill now. I am to make a HMI application running...
Replies
7
Views
1,062
Back
Top Bottom