Meeg Posted February 12 Report Share Posted February 12 Hello I have a project written in version 1.25.560 that I have renamed an upgraded to 1.35.227. The program upgraded OK but when I try to download the retained tags from my old project i get the message below. My program include lots of parameters that is carefully tuned and I want to avoid to do this tuning again. Any suggestions on how I may solve this? Workarounds? Link to comment Share on other sites More sharing options...
Saragani Posted February 12 Report Share Posted February 12 Did you already download the project to the PLC? If so, the retained tag should have their valid values before you've upgraded it. Is that the case? If so, then there is no need to download the retained tags memory again, but I would upload the retained tags from the PLC again. Link to comment Share on other sites More sharing options...
Meeg Posted February 12 Author Report Share Posted February 12 I have upgraded and downloaded the project, but then all the retained tags are set with their default value. Is it a possibility to update the default values of the retained tags with the actual values in the PLC before I upgrade? Previously (before upgrade) I have always used the function "Upload PLC retained memory to PC". This saves the values of the retain memory as a file. Then, in the new project I first have to download the PLC program, then I download the retained tags from this file to get my parameters correctly copied from the old project. This has worked fine previously, but after I upgraded the software version I am no longer able to do copy the retained tags from the old to the new PLS in this way. Do You have any other solutions to this? Link to comment Share on other sites More sharing options...
Saragani Posted February 12 Report Share Posted February 12 I'm not sure what your retained tags contain (Which tags and which structs). There is a chance that the upgrade caused the address of some retain tags to change (due to some retained tag that were of type of Reserved Structs that were changed from version 1.25 to 1.35), so in this case copying the values from the original project to original (old) address would be wrong, since the address is not correct. You can send me the original project (in version 1.25), and the Retained tags file, and I will look into it. Link to comment Share on other sites More sharing options...
Meeg Posted February 12 Author Report Share Posted February 12 Yes, I can send it to you. But the file is 13MB so I guess it is easiest to do it by email. My address is anders.meeg@energi.no. Send me yours and I will forward the program. Link to comment Share on other sites More sharing options...
Meeg Posted February 12 Author Report Share Posted February 12 Actually, a function i have missed in Unilogic is the possibillity to update the default value in tags from the running program. Typically this would be useful for all parameters that is adjusted from the HMI-panel during commisioning, eg. controller parameters, I/O scaling etc. This will reduce the risk of problems later, typically if the battery backup fails. Link to comment Share on other sites More sharing options...
Saragani Posted February 12 Report Share Posted February 12 If I understand you correctly, you want to change the Initial Value of retained tags from the PLC, right? (Initial value of a retained tag is the value it gets when you download the program on the first time, or you call Init retained tags). In this case, the values are compiled into machine code, so it's not possible. If you want to just change values of retained tags, then you can create HMI screens for it, and maybe also edit the values from the UniApps (I need to check if it's possible, but even if can be done, then it's very uncomfortable because it was not meant for it) Link to comment Share on other sites More sharing options...
Meeg Posted February 12 Author Report Share Posted February 12 Yes, you understand me correct. I have missed a function where i read the actual value for all (or selected) retained tags into the initial value. Then compile the code with this new values. In Siemens there is a possibility to write both initial and actual values to Excel-sheets and then compare and copy actual values with the initial values. But I have not found any similar function in Unistream. In my program I have a lot of parameters that I "tune" during commisioning, and now they are only stored with battery. This I do not feel as safe as having them as compiled code. And I am to lazy to copy by hand... 🙂 Also it would have solved my version-problem which i started this discussion with since I could have updated the initial values in the old project before upgrading. Link to comment Share on other sites More sharing options...
Saragani Posted February 13 Report Share Posted February 13 Please note, I have fixed this issue. On next UL release, you should be able to load that old retained tags hex file, while the new one that I sent you will not work. Link to comment Share on other sites More sharing options...
Meeg Posted February 14 Author Report Share Posted February 14 Thanks for your help, Saragani. And also thanks for the tip on the ladder element for Export\Import retained tags to SD. This will be a good backup of retained tags in case the battery goes low. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now