6.15.3 Add to table
Input/output Operand
Data type
DATA
VW, IW, QW, MW, SW, SMW, LW, T, C, AIW, AC,constant, *VD, *LD, *AC integer
TBL
VW, IW, QW, MW, SW, SMW, LW, T, C, *VD, , *LD *AC
word
AD - T - TBL: The instruction adds the word (DATA) to the
table (TBL).The first value in the table is the maximum
length of the table .The second value is the entry count
(EC),it specifies the number of entries in the table.Each time
you add new data to the table,the number of entries adds
1.Table can contain up to 100 entries , not including the first
entry and the second entry.
error conditions:
0006 Indirect address
0091 Operand range
SM1.4 Table overflow
Special memory bit:
SM1.4 Table overflow
For example:
PLC program :
Data block:
193
Made with FlippingBook - Online magazine maker