Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1304

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Input data
Operand: (s1)
Device
Symbol
+0
n
+1
+1
E1
+2
+3
E2
+4
+2n-1
En
+2n
■Block memory
Operand: (d1)
Device
Symbol
+0
BW
+1
+2
BB
BB1
to
BB1
6
Processing details
This instruction outputs the minimum value out of input values E1 to En.
■Low selector processing
The minimum value out of input values E1 to En is stored in the output value (BW).
In addition, the BB output selection (BB1 to BB16) corresponding to the minimum value is set to 1.
The correspondence between input values 1 (E1) to 16 (E16) and BB output selections (BB1 to BB16) is shown below.
Input value
Bit to be set to 1 at the minimum value
Condition
Two or more minimum values exist.
Only one input
Operation error
Error code
3402H
3405H
11 PROCESS CONTROL INSTRUCTIONS
1302
11.3 Control Operation Instructions
Name
Recommended range
Number of
1 to 16
inputs
Input value 1
-999999 to 999999
Input value 2
Input value n
Name
Recommended range
Output value
Minimum value in E1 to En
Output selection
b15
b14
b13
b12
0: Corresponding input value is not the minimum value.
1: Corresponding input value is the minimum value.
E16
BB16
Processing
The bits corresponding to the minimum values are all set to 1.
Only input value 1 (E1) is used as the input value.
Only one of input values 2 (E2) to 16 (E16) is used
as the input value.
Error content
(s1) is a subnormal number or NaN (not a number).
The number of inputs (n) is less than 1 or greater than 16.
b11
b10
b9
b8
b7
b6
b5
b4
b3
b2
b1 b0
E15
E14
BB15
BB14
Data type
16-bit unsigned
binary
Single-precision
real number
Data type
Single-precision
real number
16-bit unsigned
binary
to
to
• The input value 1 (E1) is stored in the output value (BW).
• BB output selection BB1 is set to 1.
• BB output selections BB2 to BB16 are set to 0.
A value out of input values 2 (E2) to 16 (E16) and the value of
input value 1 (E1) are used for data processing.
Standard
Set by
value
User
User
Standard
Set by
value
System
System
E2
E1
BB2
BB1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents