
FANUC PMC-MODEL SD7
Programming Manual
01 01.11.26
Hanaoka
New
A-78550E
EDIT DATE DESIG.
DESCRIPTION
198/
316
TITLE
DRAW.NO.
SEARCH_LT_DINT
SEARCH_LE_BYTE
SEARCH_LE_WORD
SEARCH_LE_DWORD
SEARCH_LE_INT
SEARCH_LE_UINT
SEARCH_LE_DINT
Searches memory block for all values less than or equal to a specified
value.
4.7.2.2 Operation
The Search function searches the specified memory block for a value. Searching begins at ar+inx, where ar is the
starting address and inx is the index value into the memory block. The search continues either until a register equal to
the search object (in) is found or until the end of the memory block is reached.
If a register is found, the boolean accumulator is set ON and the Output Index (onx) is set to the relative position of
this register within the block.
If no register is found before the end of the block is reached, the boolean accumulator is set OFF and onx is set to zero.
inx is zero-based, that is, 0 the means first reference, whereas onx is one-based, that is, 1 means the first reference.
The valid values for inx are 0 to (length - 1). The valid values for onx are 1 to length.
inx should be set to zero to begin searching at the memory block's first register. This value increments by one at the
time of execution. If the value of inx is out-of-range, (< 0 or > length-1), inx is set to the default value of zero.