366 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 8 Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
SAM
AFG 0
BEH 1
HUO 2
SAK 3
SAM 4
FQG 5
CLE 6
CAK 7
DET 8
BWG 9
Code Code_table
The FSC instruction finds that this array element
equals code. The instruction sets the .FD and .IN
bits. The .POS (4) value indicates the position of
the equal element. To continue comparing the rest
of the array, clear the .IN bit.
Code_table_search.POS