![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#1 |
Member
![]() ![]() Join Date: May 2021
Location: Izmir
Posts: 177
|
Tia Portal How to retain values that are moved
Hello everyone,
I am currently having a problem retaining values that i changed. Lets say today i ran my programme and i put my max motor speed to 100. Now this is good. As long as PLC doesnt close, this 100 value stays with me. But if i close the plc and open it again now that 100 became 0 again. And not only that everything resets which is not bizarre to be honest. As you can see this is a problem though. Because lets say in the future i have more variables that needs to be retained(i will probably need to if i continue with my project ![]() I thought of just changing my Max_Speed global memory bit with just 100 and move it immediately after the plc starts but if i do i have to change that value from the tia portal when i need to which is not ideal. Now i need to save that value but also be able to change it. So lets say i use it for a month with 100=Max_Speed but after that month i want it to be 75. And after i change it it will always open as 75 whenever i open the plc instead of the usual 0 |
![]() |
![]() |
#2 |
Lifetime Supporting Member
|
Either you can use a data block instead of marker memory... Or use marker memory but it should be within the retentive range which is being defined in the CPU configuration...
|
![]() |
![]() |
#3 | |
Member
![]() ![]() Join Date: May 2021
Location: Izmir
Posts: 177
|
Quote:
how can i define the retentive range and where? And what do you mean by Data block? like normal data block? How can that work out? |
|
![]() |
![]() |
#4 |
Member
![]() ![]() Join Date: May 2021
Location: Izmir
Posts: 177
|
|
![]() |
![]() |
#5 |
Lifetime Supporting Member
![]() ![]() Join Date: Jul 2016
Location: Manchester
Posts: 361
|
Create a DB to store the value, an set the tags you want to be "remembered" to retentative.
|
![]() |
![]() |
#6 |
Lifetime Supporting Member
![]() ![]() Join Date: Nov 2006
Location: UK
Posts: 6,378
|
It depends on the CPU - which type are you using?
__________________
S7-300 to 1500 conversions done - email to s7conversions@hotmail.com |
![]() |
![]() |
#7 |
Member
![]() ![]() Join Date: May 2021
Location: Izmir
Posts: 177
|
|
![]() |
![]() |
Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Siemens TIA Portal V13 Help | Nan | LIVE PLC Questions And Answers | 7 | May 18th, 2017 01:40 PM |
License for TIA Portal ( from S7 to TIA ) | Oliver Micka | LIVE PLC Questions And Answers | 2 | November 29th, 2016 07:40 AM |
TIA Portal: change tag value | ASF | LIVE PLC Questions And Answers | 3 | September 27th, 2016 01:45 PM |
Upload and version problems with TIA Portal | Wino | LIVE PLC Questions And Answers | 3 | August 6th, 2015 12:43 PM |
tia portal v11 vs step 7 5.5 | google08 | LIVE PLC Questions And Answers | 2 | September 5th, 2011 10:53 AM |