Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
80821members
346893posts

Global variable list

lionginas_elekt
Crewman
Crewman
0 Likes
6
2421

Global variable list

Hello.

 

I want var to maintain value after download program.

PLC M241 and SoMachine V4.3

I did all is in help.

Placed var into Persistent variables list. The battery is OK.

But after program download the value is not maintained.

 

Thanks for help.

6 Replies 6
HenriqueNeri
Crewman
Crewman
0 Likes
5
2416

Re: Global variable list

You need to add an object to persistent variables.

 

Sorry, my software is in portuguese.

Attachments
lionginas_elekt
Crewman
Crewman
0 Likes
4
2409

Re: Global variable list

Thanks,

 

I suppose I did it, but no effect.

Attachments
HenriqueNeri
Crewman
Crewman
0 Likes
0
2405

Re: Global variable list

Is your logic not overwriting the variable at startup?
Please create a test variable and do the test.

S_Stolyarov
Lieutenant JG
Lieutenant JG
0 Likes
2
1383

Re: Global variable list

Very strange, maybe it is the case that these variables somehow change in the program?

Tags (1)
Bastian_Schmitz
Lt. Commander Lt. Commander
Lt. Commander
0 Likes
1
1364

Re: Global variable list

Please check your hour counter function. 

Maybe this function overwrite at initalisation the retain presistent var.

 

Tags (1)
S_Stolyarov
Lieutenant JG
Lieutenant JG
0 Likes
0
1346

Re: Global variable list

Hmm, interesting point, cold be the case.

Tags (1)