Program instructions
7.16 Table
7.16
Table
7.16.1
Add to table
LAD / FBD
STL
ATT DATA,
TBL
Non-fatal errors with ENO = 0
0006H Indirect address
•
0091H Operand out of range
•
SM1.4 Table overfill
•
Input / output
Data type
DATA
INT
TBL
WORD
Note
To create a table, first make an entry for the maximum number of table entries. If you do not
do this, then you cannot make any entries in the table.
Edge trigger instructions must activate all table read and table write instructions.
368
Description
The add to table instruction adds word values DATA to a table TBL. The first value in
the table is the maximum table length TL. The second value is the entry count EC,
which stores the number of entries in the table and is updated automatically. New data
are added to the table after the last entry. Each time new data are added to the table,
the entry count is incremented.
A table can have up to 100 data entries.
SM bits affected
SM1.4 Set to 1 if you try to overfill the table
•
Operand
IW, QW, VW, MW, SMW, SW, T, C, LW, AC, AIW, *VD, *LD, *AC, Constant
IW, QW, VW, MW, SMW, SW, T, C, LW, *VD, *LD, *AC
System Manual, V2.3, 07/2017, A5E03822230-AF
S7-200 SMART