Siemens Simatic S7-200 System Manual page 261

Programmable controller
Hide thumbs Also See for Simatic S7-200:
Table of Contents

Advertisement

Add to Table
L
AD_T_TBL
A
EN
D
DATA
TABLE
S
T
ATT DATA, TABLE
L
212
214
Add to Table Example
I3.0
VW100
VW200
Before execution of ATT
VW100
VW200
VW202
VW204
VW206
VW208
VW210
VW212
VW214
Figure 10-26
S7-200 Programmable Controller System Manual
C79000-G7076-C230-02
The Add To Table instruction adds word values (DATA) to the
table (TABLE).
Operands:
The first value of the table is the maximum table length (TL).
The second value is the entry count (EC), which specifies the
number of entries in the table. (See Figure 10-26.) New data are
215
216
added to the table after the last entry. Each time new data are
added to the table, the entry count is incremented. A table may
have up to 100 entries, excluding both parameters specifying
the maximum number of entries and the actual number of
entries.
This instruction affects the following Special Memory bits:
SM1.4 is set to 1 if you try to overfill the table.
LAD
AD_T_TBL
EN
DATA
TABLE
Application
1234
0006
TL (max. no. of entries)
0002
EC (entry count)
5431
d0 (data 0)
8942
d1 (data 1)
xxxx
xxxx
xxxx
xxxx
Example of Add To Table Instruction
DATA:
VW, T, C, IW, QW, MW, SMW, AC,
AIW, Constant, *VD, *AC, SW
TABLE:
VW, T, C, IW, QW, MW, SMW, *VD,
*AC, SW
STL
LD
I3.0
ATT
VW100, VW200
After execution of ATT
VW200
0006
TL (max. no. of entries)
VW202
0003
EC (entry count)
VW204
5431
d0 (data 0)
VW206
8942
d1 (data 1)
VW208
1234
d2 (data 2)
VW210
xxxx
VW212
xxxx
VW214
xxxx
Instruction Set
10-73

Advertisement

Table of Contents
loading

Table of Contents