Allen-Bradley Logix5000 Reference Manual page 365

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Example 2:
MySearchKey
11111111111111110000000000000000
Example 3:
Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
Search for a match in an array. When enabled, the FSC instruction compares the
MySearchKey to 10 elements in array_1.
Reference
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
11111111111111110000000000000000
11111111111111111111111111111111
11111111111111111111111111111111
11111111111111111111111111111111
11111111111111111111111111111111
11111111111111111111111111111111
Search for a string in an array of strings. When enabled, the FSC instruction
compares the characters in code to 10 elements in code_table.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Control_3.pos
0
1
2
3
The FSC instruction finds that this array element
4
equals MySearchKey. The instruction sets the .FD
and .IN bits. The .POS (4) value indicates the
5
position of the equal element. To continue
comparing the rest of the array, clear the .IN bit.
6
7
8
9
Chapter 8
365

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents