Fnc 61 - Ser / Search A Data Stack - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
14.2
FNC 61 – SER / Search a Data Stack
Outline
This instruction searches for the same data, maximum value and minimum value in a data table.
1. Instruction format
FNC 61
D
SER
2. Set data
Operand type
S
S
1
1
S
2
D
n
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
S
1
1
S
2
S
D
2
n
: This function is supported only in FX
Explanation of function and operation
1. 16-bit operation (SER and SERP)
In "n" data starting from
+4.
D
Command
input
FNC 61
SER
1) Contents of searched data and the search result
a) When same data was detected
Five devices starting from
value position and minimum value position.
b) When same data was not detected
Five devices starting from
value position and minimum value position.
In this case, however, "0" is stored in three devices starting from
same data, first position and last position).
416
Mnemonic
16-bit Instruction
P
9 steps SER
SERP
Head device number in which same data, maximum value and minimum value
are searched
Data to be searched for or device number storing data
Head device number storing number of same data, maximum value and minimum
value detected by search
Number of data in which same data, maximum value and minimum value are
searched
[16-bit instruction: 1 to 256, 32-bit instruction: 1 to 128]
Digit Specification
3U
, same data as
S
1
S
S
D
1
2
store the number of same data, first position, last position, maximum
D
store the number of same data, first position, last position, maximum
D
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
/FX
PLCs.
3UC
is searched, and the search result is stored to
S
2
n
14 Handy Instruction – FNC 60 to FNC 69
14.2 FNC 61 – SER / Search a Data Stack
Mnemonic
Operation Condition
DSER
17 steps
DSERP
16- or 32-bit binary
16- or 32-bit binary
16- or 32-bit binary
16- or 32-bit binary
Others
Con-
Real
Index
stant
Number
V Z Modify K H
E
(which store the number of
D
Continuous
Operation
Pulse (Single)
Operation
Data type
Charac-
Pointer
ter String
" "
P
to
D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents