everytime after reboot hmi, hmi will change back to default language.
I'm not sure, but maybe it works by writing the current language string variable to a variable which is Retain (Persistant):
// When the HMI is restarted call the following code:
IF NOT(xInitDone) THEN
IF sRetainLanguage <> '' THEN
VisuElems.CURRENTLANGUAGE := sRetainLanguage;
xInitDone := TRUE;
// After this write the current language to the retain variable
sRetainLanguage := VisuElems.CURRENTLANGUAGE;
Please let us know if this works
Log in to post a comment.