Mitsubishi FX3G Series Programming Manual page 396

Programmable controllers
Hide thumbs Also See for FX3G Series:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
3UC
Programming Manual - Basic & Applied Instruction Edition
2)
Operation example
a) Example of search result table configuration and data
Searched device
S
[
+ 1,
1
[
S
+ 3,
1
S
[
+ 5,
1
S
[
+ 7,
1
S
[
+ 9,
1
S
[
+ 11,
1
S
[
+ 13,
1
S
[
+ 15,
1
S
[
+ 17,
1
[
S
+ 19,
1
b) Search result table
Device number
D
[
+ 1,
D
[
+ 3,
D
[
+ 5,
[
D
+ 7,
[
D
+ 9,
Cautions
• Comparison of values
It is executed algebraically.
(example: −10 < 2)
• When there are two or more maximum or minimum values
When there are two or more maximum or minimum values in the searched data, the last position of the max/min is
stored respectively.
• Number of occupied devices
When this instruction is driven, the following number of devices are occupied for storing the search result
Make sure that such devices are not used in other controls for the machine.
1)In the case of 16-bit operation
Five devices,
2)In the case of 32-bit operation
Ten devices, [
D
D
+8], are occupied.
1
• Note that the 32-bit value [n+1, n] is valid when D or R is specified as "n" in a 32-bit instruction.
In the case of "DSER D0 D100 D200 R0", "n" is [R1, R0].
394
Series
Searched data
S
S
value
1
1
(example)
K100000
S
]
1
K110100
S
+ 2]
1
K100000
S
+ 4]
1
K 98000
S
+ 6]
1
K123000
S
+ 8]
1
K 66000
S
+ 10]
1
K100000
S
+ 12]
1
K 95000
S
+ 14]
1
K910000
S
+ 16]
1
K910000
S
+ 18]
1
Contents
3
D
]
0
D
+ 2]
6
D
+ 4]
5
D
+ 6]
9
D
+ 8]
D
D
D
D
D
D
,
+1,
+2,
1
1
1
D
D
D
D
D
D
+1,
], [
1
1
1
Comparison
Data
data
position
S
2
0
1
2
3
4
K100000
5
6
7
8
9
Number of same data
Same data position (first position)
Same data position (last position)
Minimum value position (last position)
Maximum value position (last position)
D
D
D
D
+3 and
+4, are occupied.
1
1
D
D
D
D
D
+3,
+2], [
+5,
1
1
14 Handy Instruction – FNC 60 to FNC 69
14.2 FNC 61 – SER / Search a Data Stack
Search result
Maximum
Same
value
D
D
+9, +8
(first
position)
(last
position)
Search result item
D
D
D
D
D
+4], [
+7,
+6] and [
1
1
1
Minimum
value
D
+7, +6
D
D
.
1
D
D
+9,
1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents