Mitsubishi Electric MELSEC-Q/L Programming Manual page 149

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• The values to be input to (s1) to (s28) are bit, word (signed), double word (signed), word(unsigned)/16-bit string, double
word (unsigned)/32-bit string, single-precision real, double-precision real, string, or time type data.
• Rounding error may occur when specifying single-precision real or double-precision real type data to (s1) through (s28) by
programming tool.
For precautions when setting an input value using a programming tool, refer to the following.
 MELSEC-Q/L/F Structured Programming Manual (Fundamentals)
• The number of pins of (s) can be changed in the range from 2 to 28.
• If word (unsigned) type/16-bit string type/double word (unsigned) type/32-bit string type is specified for (d), warning C9026
occurs.
■Operation result
• Function without EN/ENO
An operation is executed and the operation value is output from (d).
• Function with EN/ENO
The following table shows the executing conditions and operation results.
EN
TRUE (Operation execution)
FALSE (Operation stop)
*1 When FALSE is output from ENO, the data output from (d) is undefined. In this case, create a program so that the data output from (d) is
not used.
Operation error
• No operation error occurs.
Program example
■MAXIMUM(_E)
The program which outputs the maximum value of the word (signed) data input to variables (s1) to (s28) from (d) in the same
data type as that of (s1) to (s28).
• Function without EN/ENO (MAXIMUM)
[Structured ladder/FBD]
[ST]
g_int3 := MAXIMUM(g_int1, g_int2);
• Function with EN/ENO (MAXIMUM_E)
[Structured ladder/FBD]
[ST]
g_bool3 := MAXIMUM_E(g_bool1, g_int1, g_int2, g_int3);
■MINIMUM(_E)
The program which outputs the minimum value of the word (signed) data input to variables (s1) to (s28) from (d) in the same
data type as that of (s1) to (s28).
• Function without EN/ENO (MINIMUM)
[Structured ladder/FBD]
[ST]
g_int3 := MINIMUM(g_int1, g_int2);
ENO
TRUE
*1
FALSE
(d)
Operation output value
Undefined value
5 APPLICATION FUNCTIONS
5.5 Standard Selection Functions
5
147

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents