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 this is assigned as LB5 then I can use it in my subroutine as #LB5 without any problem. If now I want to use the first bit of this byte I have to write L5.0 without a # .
My question is if this L5.0 is a local or a global variable since it is not preceded by a # sign. Is there a way to use L5.0 as a local variable?
If I define a Byte in the local variable table of a subroutine and let's say this is assigned as LB5 then I can use it in my subroutine as #LB5 without any problem. If now I want to use the first bit of this byte I have to write L5.0 without a # .
My question is if this L5.0 is a local or a global variable since it is not preceded by a # sign. Is there a way to use L5.0 as a local variable?