Minimum_E - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
5.6.3
MINIMUM(_E)
Outline
This function searches the minimum value among data, and outputs the minimum value.
1. Format
Function name
MINIMUM

MINIMUM_E

*1.
Output variable
2. Set data
Variable
EN
Input
variable
_IN (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
1) This function outputs the minimum value among ANY_SIMPLE type data stored in devices specified in
and
s1
and
.
s2
Example: When the data type is word [signed]
Word [signed] data
Word [signed] data
2) The number of pins in
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling 32-bit data in structured programs, you cannot specify 16-bit devices directly, different
from simple projects. Use labels when handling 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
166
FX
3U(C)
Structured ladder
MINIMUM
D0
_IN
D10
_IN
MINIMUM_E
X000
EN
D0
_IN
D10
_IN
Execution condition
...)
Compared data, or word device which stores such data
s1
Execution status
Word device which will store the minimum value
(
)
d
to a device specified in
s2
1234
MINIMUM
_IN
5678
_IN
can be changed.
s
FX
3G
FX
2N(C)
FX
Expression in each language
MINIMUM(_IN,_IN);
Example:
D20:=
*1
D20
MINIMUM(D0,D10);
MINIMUM_E(EN,_IN,_IN,Output
label);
Example:
ENO
MINIMUM_E(X000,D0,D10,D20);
*1
D20
Description
using the data type of data stored in devices specified in
d
1234
Word [signed] data
5.6 Standard Selection Functions
1N(C)
FX
1S
FX
U
/FX
2C
ST
Bit
ANY_SIMPLE
Bit
ANY_SIMPLE
FX
0N
FX
0(S)
Data type
s1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents