S7-200 Local variables

Join Date
Aug 2002
Location
Manchester
Posts
527
Hi
In the help file for local variables, it states that each POU (subroutine) has 64bytes of memory available for local variables. Does this mean that they'll be retained scan to scan? The name 'TEMP' makes me dubious.

Thanks

pp
 
With S7 300/400 series, temp variables are not retained. Depending on your program they may appear to be retained as if the temp data area has not been overwritten by another routine, the variables will not change.
 
as far as i can tell (never had any reason to use local vars) is that they are retained but if defined from a subroutine or interrupt they will be unique to that subroutine or interrupt and cannot be addressed from the program block unless they were created there to start with. I may be wrong on this but that's just how i interpreted what the S7/microwin help file seemed to be implying
 

Similar Topics

I would like to ask a question regarding local variables in S7-200. If I define a Byte in the local variable table of a subroutine and let's say...
Replies
7
Views
6,996
Hi all, One of my clients has a Hach sc200 measuring Nitrates (wastewater plant) and the 4-20mA loop works, but the local readout is just...
Replies
4
Views
1,355
Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
2
Views
19
HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
63
Hi folk, I would like to know what kind of Parameters should I setup for controlling with Profibus. My old Lenze 8200 motec 0.25kW have a busted...
Replies
0
Views
63
Back
Top Bottom