%R0101
%I0001
%R0001
CONST
00003
%R0100
AR
NX
IN
FD
NX
SRCH_
EQ__
INT
%Q0001
( )
10.8.2.3
Example 2:
Array AR is defined as memory addresses %AI001 - %AI016. The values of the array
elements are 100, 20, 0, 5, 90, 200, 0, 79, 102, 80, 24, 34, 987, 8, 0, and 500. Initially, %
AQ001 is 5. When EN is ON, each sweep will search the array looking for a match to the
IN value of 0. The first sweep will start searching at %AI006 and find a match at %
AI007, so FD is ON and %AQ001 is 7. The second sweep will start searching at %AI008
and find a match at %AI015, so FD remains ON and %AQ001 is 15. The next sweep will
start at %AI016. Since the end of the array is reached without a match, FD is set OFF and
%AQ001 is set to zero. The next sweep will start searching at the beginning of the array.
%AQ001
%I0001
%AI001
%AQ001
00005
CONST
00000
AR
NX
IN
FD
NX
SRCH_
EQ__
INT
%M001
( )
Instruction Set Reference
GFK-1503E User Manual 183
For public disclosure
Summary of Contents for VersaMax PLC
Page 16: ...Notes 16 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 38: ...Notes 38 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 50: ...Notes 50 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 92: ...Notes 92 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 112: ...Notes 112 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 224: ...Notes 224 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 292: ...Notes 292 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 316: ...Notes 316 GFK 1503E VersaMax PLC User Manual For public disclosure ...
Page 317: ......