Tia Portal How to retain values that are moved

thewalkerist

Member
Join Date
May 2021
Location
Izmir
Posts
178
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 :D). I will need to re-write my values everytime. Now i am looking for a way to save that 100 motor speed value so that after my plc closes and re-opens i dont have to change it again.

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

Screenshot (827).png
 
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...
 
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...


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?
 

Similar Topics

This may seem like a basic question, but for some reason I have having real trouble deciphering the built in help content, as well as navigating...
Replies
3
Views
5,474
Hi PLC people, think about this scenario: The PLC is somehow connected to the same network with the facilities` network. Then someone connects to...
Replies
2
Views
128
Hello, good morning, I have been having two problems with the Tia Portal software. The first is that I have installed it on my computer and...
Replies
5
Views
212
Hello all! So I have one project with a S7-1214 and a MTP1500 "Project1" and one project with another S7-1214 "Project2". Both of these PLC:s need...
Replies
6
Views
141
Hello, i am using profibus as communication between plc and fanuc arm. I can easily send inputs from plc to arm, but i can't monitor any outputs...
Replies
0
Views
61
Back
Top Bottom