1. Local variables

1. Local variables

Names starting with "LB", "LW", "LD", "LF" are used as local variables, such as LBName0, LWName1, etc. Local variables are also limited to the local scope within this program.

Local variables can be directly inputted and used, which is very convenient.

Local variables use temporary storage and are independent of existing storage areas (such as D, M, etc.).

Local variables must be written for the first time before they can be used properly, otherwise the initial value is unpredictable.

In the case of sufficient allocation of existing storage areas, it is recommended to define it as a global symbol in the "Software Component Manager" rather than a local variable, as temporary storage is more limited.