xLadder user manual-V2.0.0.6

6.15.5 Table Find

Input/output Operand

Data type

TBL

VW, IW, QW, MW, SW, SMW, LW, T, C, *VD, *LD, *AC

word

PTN

VW, IW, QW, MW, SW, SMW, AIW, LW, T, C, AC,constant, *VD, *LD, *AC integer

INDX

VW, IW, QW, MW, SW, SMW, LW, T, C, AC, *VD, *LD, *AC

word

Table Find instruction: The instruction

searches the same data as “ PTN ” in the

table. “ Table Find ” starts form the

entry specified by INDX.If a matching

entry is found, the INDX points to the

entry in the table.To find the next

matching entry,you must add 1 to the

INDX before using the “ Table Find ”

instruction.If matching entry is not

found, the value of INDX is equal to the number of entries.

For example:

PLC program :

196

Made with FlippingBook - Online magazine maker