EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 1936

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1934
30 SELECTION FUNCTIONS
30.2 Selecting the Maximum/Minimum Value
Processing details
Operation processing
MAX(_E)
These functions output the maximum value of the BOOL, INT, DINT, WORD, DWORD, REAL, LREAL, STRING, or TIME data
type values input to (s1) to (s28), in the same data type as (s), from (d).
Ex.
Data type: INT
MIN(_E)
These functions output the minimum value of the BOOL, INT, DINT, WORD, DWORD, REAL, LREAL, STRING, or TIME data
type values input to (s1) to (s28), in the same data type as (s), from (d).
Ex.
Data type: INT
Input a BOOL, INT, DINT, WORD, DWORD, REAL, LREAL, STRING, or TIME data type value to (s1) to (s28).
Conditions for comparing the STRING data type values are as follows:
Operation result
1. Function without EN/ENO
The operation processing is performed. The operation result is output from (d).
2. Function with EN/ENO
The execution conditions and operation results will be as follows.
*1 If the value FALSE is output from ENO, the output data from (d) will be undefined. Create a program so that the undefined value will not
be used in operations.
Operation error
Match: All characters matched
Bigger string: The one having a character with a bigger code (when strings consist of different characters)
The one having a longer length (when strings are of different lengths)
Smaller string: The one having a character with a smaller code (when strings consist of different characters)
The one having a shorter length (when strings are of different lengths)
Execution condition Operation result
EN ENO (d)
TRUE (executed) TRUE Operation result output value
FALSE (not executed) FALSE
*1
Undefined value
Error code
(SD0)
Description
2820H There is no NULL code (00H) in each setting area specified by (s1) to (s28) in the device/label memory.
3405H The number of characters in the strings input to (s1) to (s28) exceeds 16383.
3406H The entire string cannot be stored in the setting area specified by (d) in the device/label memory. (The number of required points is
insufficient.)
(d)
5678
5678
1234
MAX_IN1
_IN2
MAX
(s1) (s28)
INT
INT
INT
(d)
1234
5678
1234
MIN_IN1
_IN2
MIN
(s1) (s28)
INT
INT
INT

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals