Hello Guys!
Another S7 question....
I've been having som strange problems for time to time with local memory in the S7 plc's. Especially with temp data but sometimes also with stat data (witch should be the same as using Memory bits).
It seems like I have to reset all local variables in the top before using it in my program. I know that temp variables are only valid inside the executing block and stat variables are always valid. But it seems like I have to reset the data in the beginning of the fc or fb even if im using a "=" statement to update the status. This is probably caused by a program error somwhere but I haven't found it yet.
So I'm just asking for quidelines for proper use of the temp and stat variables.
Hope this makes enough sence so you guys understand my question.
Regards
Borte
Another S7 question....
I've been having som strange problems for time to time with local memory in the S7 plc's. Especially with temp data but sometimes also with stat data (witch should be the same as using Memory bits).
It seems like I have to reset all local variables in the top before using it in my program. I know that temp variables are only valid inside the executing block and stat variables are always valid. But it seems like I have to reset the data in the beginning of the fc or fb even if im using a "=" statement to update the status. This is probably caused by a program error somwhere but I haven't found it yet.
So I'm just asking for quidelines for proper use of the temp and stat variables.
Hope this makes enough sence so you guys understand my question.
Regards
Borte