This Ladder function finds a value in a column and writes the row index number into a data tag.
If the function finds a matching row, the row number is stored in parameter E, Result. If no row is found, E contains -1.
|
Parameter Name |
Purpose |
A |
Data Table to Search |
Select the Data Table you want to search. |
B |
Column to Search |
From the struct, select the name of the column to search in. |
C |
Value to Find |
This is the value you are searching for. |
D |
Start Row for Search |
This is the row from which the function begins to search. |
E |
Number of Rows to Search |
This determines the number of rows the function will search, from the index number in Parameter D. Assign a Data Tag or enter a number. |
F |
Value Location: Row Index Number |
If the value is found, the row index number of the row containing the value is written here. A value of -1 means that the value was not found. |
![]() |
If the value in Start Row + Number of Rows equals or exceeds the number of rows in the table, |