Hi I created a function with return type TIME and it works fine in PLC but when I open the project again the return type is changed to BOOL and I have to change it back to TIME. I also noticed that sometimes latest comments on project version history is removed when I start the project. Has someone else had this problem? I am using PLCNext 2020.6 Best regards Stefan.
Hi. I have the same problem.
and it’s pretty annoying. - Emil
Hi I have made a video showing the problem:
Hi all, Sorry for the delay. This problem is currently being looked at. I will try to get an update. ~ Martin.
Hi all, we have investiagted that problem and already done a bugfix for that.
this bugfix will be available together with PLCnext Engineer Version 2020.6.2 As soon as the Change Notes documentation is ready and traslated, we will publish the version in the well known Phoenix Contact eshop download section.
I guess this will happen during next week (week 36). Until the version is published, I can give you the following workaround:
Please change the signature (return type) , add a worksheet to the function or method, save project.
After that workaround, the signature is changed and the additional worksheet can be removed. Please excuse this inconvenient behaviour. Best regards Carsten.
Thanks Carsten/Martin. Looking forward to that hotfix. - Emil
Just clarifying that the second issue mentioned in the original post:
sometimes latest comments on project version history is removed when I start the project.
is not addressed in the latest hotfix. @Stefan: Are you able to provide the exact steps that we can use to reproduce this issue? Thanks.
Hi! Great that the problem with the return value will be fixed. @Martin: I noticed that it happens when a compilation is made without saving first. So it is probably not a fault but maybe it would be nice if PLCNextEng made a automatic save before compiling. Best regards Stefan
Thanks Stefan, I will pass that information on the the product manager. FYI, PLCnext Engineer version 2020.6.2 - containing the fix for the TIME issue - is now available for download. ~ Martin.
Update: We cannot reproduce the problem with the project version history. If changes to that page are not saved, then a warning is always raised when closing the project. If the changes are saved, then the changes are not lost when the project is re-opened. Can you give us any more information on how to reproduce this problem? ~ Martin.
HI Martin! It is not a big problem but I noticed that it happens if I don’t press enter or changes field before compiling or closing tab. Br Stefan
Hi Stefan, thanks for the extra info. We can now reproduce that issue in PLCnext Engineer version 2020.6.2 (video below), and this has been passed to the product manager. ~ Martin.
FYI, it turns out that this behaviour is by design. The intention is that if an entry is made accidentally, then it will not be saved. The way to confirm that an entry is not accidental, is to press enter after making the entry. So, unfortunately, as they say in the classics: “this is a feature, not a bug”. ~ Martin. (ref: 00133132)
Thanks Martin! I can live with that. Br Stefan

