Siemens NAN 67 Series Manual de Serviço Página 32

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 318
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 31
3-8
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
3.4 Editing Variable Declaration Tables – Overview
After you have entered the required declaration type of a new declaration,
enter the name of the variables, the data type, the initial value (optional) and
the comment (optional). You can move the cursor to the next field with the
TAB key. At the end of a row an address will be assigned to the variable
automatically.
After each table field has been edited, its syntax is checked and any errors
are displayed in red. At this point, you can continue editing the table and
postpone the correction of errors to a later stage.
All the usual functions in the Edit menu are available to you when editing a
table. Using the context-sensitive right mouse button makes editing easier.
The menu displayed with the right mouse button also helps you to enter the
data type. The “Data Type” menu includes all elementary data types.
You can select single rows by clicking the write-protected address cell. You
can also select several rows of the same declaration type by holding down the
SHIFT key. The selected rows appear on a black background.
The “Decl.” column is read-only. The declaration type is determined by the
position of the declaration within the table. This ensures that variables can
only be entered in the correct order of their declaration types. If you want to
change the declaration type of a declaration, cut the declaration first and then
paste it under the new declaration type.
If you want to enter a structure as a variable, enter the name in the “Symbol”
column and the keyword
STRUCT in the data type column. Press either the
TAB or the RETURN key to insert an empty row plus a final row
(END_STRUCT) for the structure. In the empty row, enter the elements of
the structure by entering its name, data type and its initial value (optional).
You can create more rows and insert further elements using either the menu
commands or by pressing
RETURN.
If you want to select a structure, click the address or declaration cell of the
first or last row of the structure (containing the keyword
STRUCT or
END_STRUCT). You can select individual declarations within a structure by
clicking the address cell in the relevant row.
If you want to enter a structure within another structure, the hierarchy is
indicated by the indented variable names.
Procedure
Editing Functions
Changing the
Declaration Type
Entering
Structures
Creating Logic Blocks
Vista de página 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 317 318

Comentários a estes Manuais

Sem comentários