CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Wed Sep 18, 2019 3:54 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Dec 14, 2012 10:21 am 
Offline

Joined: Sun Aug 21, 2011 8:33 pm
Posts: 18
everytime after reboot hmi, hmi will change back to default language.


Top
   
PostPosted: Sat Dec 15, 2012 9:22 am 
Offline
Frequent User
Frequent User
User avatar

Joined: Tue Jun 06, 2006 9:03 am
Posts: 409
I'm not sure, but maybe it works by writing the current language string variable to a variable which is Retain (Persistant):

Code:
// When the HMI is restarted call the following code:
IF NOT(xInitDone) THEN
        IF sRetainLanguage <> '' THEN
                  VisuElems.CURRENTLANGUAGE := sRetainLanguage;
        END_IF;
        xInitDone := TRUE;
END_IF;

// After this write the current language to the retain variable
sRetainLanguage := VisuElems.CURRENTLANGUAGE;


Please let us know if this works


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited