Programming concepts
5.6 Variable table
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
125
4. Click the mouse pointer in the Data Type field and use the list box to select an
appropriate data type for the local variable.
Note
When you assign local variables as parameters
for subroutines, you must ensure that the
data type that you assign to the local variable does not conflict with the operand being
used in the subroutine call.
5. Optionally provide a comment describing your local variable.
After you supply a value for the Symbol and Data Type fields, the Program Editor
automatically assigns an L memory address to the local variable.
Entering additional variables
The variable table displays a fixed number of rows for local variables. To add more rows to
the table, select a row in the table of the variable type that you want to add and click the
Insert button
in the variable table window. A new row is automatically generated above
the row you selected, and is for the same variable type that you selected.
You can also add rows by right-clicking an existing row and selecting
or
from the context menu.
To delete a local variable, select it in the variable table and click the Delete button .
Alternatively you can delete a row by right-clicking it and selecting
from the
context menu.