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
7,014
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,372
Hello, I have a question about an encoder that has absolute measurement. Specifically, it's the Lika SMA5, which I would like to connect...
Replies
2
Views
58
Hello, I have a question about an encoder that has absolute measurement. Specifically, it's the Lika SMA5, which I would like to connect...
Replies
0
Views
34
Hi. I have a 222 CPU. I need to recover the program from the eeprom memory. Is it possible?
Replies
1
Views
114
Back
Top Bottom