Panasonic FP Series Programming Manual page 482

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F97_DSRC
The function searches for the value specified at input s1 in a block of 32-bit areas whose beginning
Description
is specified at input s2 and whose end is specified at input s3.
Value searched for
s1
-44
The number of data items that match s1 is stored in special data register DT90037.
The relative position of the first matching data item, counting from the starting 32-bit area s2, is
stored in special data register DT90038.
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 F97_DSRC (see page 1326)
PLC types
Data types
Variable
Data type
s1
ANY32
s2
s3
The adresses of the variables at inputs s2 and s3 must be of the same adress type.
Operands
For
DWX DWY
s1
s2, s3
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
32-bit table data search
32-bit table data
-44
22
22
22
22
01
23
45
67
Function
32-bit area or equivalent constant to store the value
searched for
starting 32-bit area of the block
ending 32-bit area of the block
Relay
DWR
DWL
DSV
-
DWY
DWR
DWL
DSV
Set
permanently
for an instant
s2
s3
T/C
Register
DEV
DDT
DLD
DFL
DEV
DDT
DLD
DFL
If
 the address of the variables at outputs
s2 > s3.
Arithmetic instructions
Constant
dec. or hex.
-
481

Advertisement

Table of Contents
loading

Table of Contents