Siemens S7-200 PLC local variable storage area (L)

Local variables and variable storage memory is very similar, the main difference is that the local variables memory is partially valid, the variable memory is globally effective.
Globally effective refer to the same memory can be used by any program (such as main program, an interrupt routine or subroutine) access to local storage areas and effective means associated with a particular program.
Local variables memory often used as a memory for temporary data transfer function or subroutine. Can be bit, byte, word, or double word to access the data storage area of the local variables.
Bit: L [byte address]. [Bit Address] L0. 5
Byte, word or double word: L [length] [starting byte address] LB34 LW20 LD4

Leave a Reply

Your email address will not be published. Required fields are marked *