Panasonic FP Series Programming Manual page 480

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F96_SRC
Searches for the value that is the same as s1 in the block of 16-bit areas specified by s2 (starting
Description
area) through s3 (ending area) if the trigger EN is in the ON-state.
When the search operation is performed, the search results are stored as follows:
The number of data that is the same as s1 is transferred to special data register
DT9037 (or DT90037 for FP2/2SH, FP10/10S/10SH).
The position the data is first found in, counting from the starting 16-bit area, is
transferred to special data register DT9038 (or DT90038 for FP2/2SH,
FP10/10S/10SH).
Be sure that s2  s3.
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
Availability of F96_SRC (see page 1326)
PLC types
Data types
Variable
Data type
s1
s2
ANY16
s3
The variables s1, s2 and s3 have to be of the same data type.
Operands
For
s1
s2, s3
In this example the function has been programmed in ladder diagram (LD) and structured text
Example
(ST).The same POU header is used for all programming languages.
Table data search (16-bit search)
Function
16-bit area or equivalent constant to store the value
searched for
starting 16-bit area of the block
ending 16-bit area of the block
Relay
WX
WY
WR
WL
-
WY
WR
WL
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
Arithmetic instructions
Constant
dec. or hex.
-
479

Advertisement

Table of Contents
loading

Table of Contents