Download Print this page

Searching 32-Bit Data - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Searching 32-bit data

DSERMM(P)
These instructions search for the same data, maximum value and minimum value in a data table.
Ladder diagram
(s1)
FBD/LD
EN
ENO
s1
d
s2
n
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Head device number in which same data, maximum value and
minimum value are searched
(s2)
Data to be searched for or device number storing data
(d)
Head device number storing number of same data, maximum
value and minimum value detected by search
(n)
Number of data in which same data, maximum value and
minimum value are searched
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s1)
(s2)
(d)
(n)
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).
8 APPLICATION INSTRUCTION
648
8.22 Data Operation Instruction
(s2)
(d)
(n)
Word
T, ST, C, D, W,
SD, SW, R
Structured text
ENO:=DSERMM(EN,s1,s2,n,d);
ENO:=DSERMMP(EN,s1,s2,n,d);
Range
1 to 65535
Double word Indirect
U\G
Z
LC
Data type
32-bit signed binary
32-bit signed binary
32-bit signed binary
16-bit unsigned binary
Bit
Bit
Constant
specification
LZ
K, H
Data type (label)
ANY32
ANY32
ANY32_ARRAY
(Number of elements: 5)
ANY16_U
BOOL
BOOL
Others
E
$

Hide quick links:

Advertisement

loading