Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
13 Applied Instructions (Handy Instruction)
13.2 SER / Search a Data Stack
323
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
13.2 SER / Search a Data Stack
Outline
This is a command for searching same data and maximum value, minimum value from the table of data.
1. Format and operation, execution form
2. Set data
3. Applicable devices
S: Refer to "Cautions".
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
SER 16 bits Continuous SER(E, s1, s2, n, d);
SERP 16 bits Pulse SERP(EN, s1, s2, n, d);
DSER 32 bits Continuous DSER(EN, s1, s2, n, d);
DSERP 32 bits Pulse DSERP(EN, s1, s2, n, d);
Variable Description
Data type
16-bit
operation
32-bit
operation
Input
variable
EN Execution condition Bit
Beginning device for searching same data, maximum value,
minimum value
ANY16 ANY32
Value for searching same data, maximum value, minimum value,
or its storage destination device
ANY16 ANY32
The number for searching same data, maximum value, minimum
value
ANY16
Output
variable
ENO Execution state Bit
Beginning device for storing the numbers after searching same
data, maximum value, minimum value
ARRAY [1..5]
OF ANY16
ARRAY [1..5]
OF ANY32
Operand
type
Bit Devices Word Devices Others
System user Digit designation
System
user
Special
unit
Index
Cons
tant
Real
number
Character
string
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
V Z Modifier K H E
""
P
zzz zzzz
S1 S2
z
zzz zzzz
S1 S2
zz z z z
z
S1
zz
zzzzzz
S1 S2
z
SER
EN
s1
s2
ENO
d
n
SERP
EN
s1
s2
ENO
d
n
DSER
EN
s1
s2
ENO
d
n
DSERP
EN
s1
s2
ENO
d
n