EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #551 background imageLoading...
Page #551 background image
7 APPLICATION INSTRUCTION
7.17 Data operation instruction
549
7
Searching 32-bit data
DSERMM(P)
These instructions search for the same data, maximum value and minimum value in a data table.
Setting data
Descriptions, ranges, and data types
Applicable devices
Processing details
These instructions search the same data as the 32-bit binary data of (s2)+1 and (s2) in (n) data starting from (s1)+1 and
(s1), and store the search result in (d)+1, (d) to (d)+9, and (d)+8.
When the same data exists, five 32-bit binary data devices starting from (d)+1 and (d) store the number of same data, first
position, last position, maximum value position and minimum value position.
When the same data does not exist, five 32-bit binary data devices starting from (d)+1 and (d) store the number of same
data, first position, last position, maximum value position and minimum value position. In this case, however, 0 is stored in
three 32-bit devices starting from (d)+1 and (d) (which store the number of same data, first position and last position).
The following table shows example of search result table configuration and data. (n=10)
Ladder diagram Structured text
ENO:=DSERMM(EN,s1,s2,n,d);
ENO:=DSERMMP(EN,s1,s2,n,d);
Operand Description Range Data type Data type (label)
(s1) Head device number in which same data, maximum value and
minimum value are searched
32-bit signed binary ANY32
(s2) Data to be searched for or device number storing data 32-bit signed binary ANY32
(d) Head device number storing number of same data, maximum
value and minimum value detected by search
32-bit signed binary ANY32
(n) Number of data in which same data, maximum value and
minimum value are searched
1 to 65535 16-bit unsigned binary ANY16
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s1) 
(s2) 
(d) 
(n) 
Searched device
(s1)
Searched data
(s1) value
(example)
Comparison data
(s2) value
(example)
Data position Search result
Maximum value
(d)+9, (d)+8
Same (d) Minimum value
(d)+7, (d)+6
(s1)+1, (s) K100000 K100000 0 (First time)
(s1)+3, (s1)+2 K110100 1
(s1)+5, (s1)+4 K100000 2
(s1)+7, (s1)+6 K98000 3
(s1)+9, (s1)+8 K123000 4
(s1)+11, (s1)+10 K66000 5
(s1)+13, (s1)+12 K100000 6 (Last)
(s1)+15, (s1)+14 K95000 7
(s1)+17, (s1)+16 K910000 8
(s1)+19, (s1)+18 K910000 9
(s1) (s2) (d) (n)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals