1302
11 PROCESS CONTROL INSTRUCTIONS
11.3 Control Operation Instructions
■Input data
■Block memory
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.
Operand: (s1)
Device Symbol Name Recommended range Data type Standard
value
Set by
+0
+1
n Number of
inputs
1 to 16 16-bit unsigned
binary
User
+1
+2
E1 Input value 1 -999999 to 999999 Single-precision
real number
User
+3
+4
E2 Input value 2
+2n-1
+2n
En Input value n
Operand: (d1)
Device Symbol Name Recommended range Data type Standard
value
Set by
+0
+1
BW Output value Minimum value in E1 to En Single-precision
real number
System
+2 BB BB1
to
BB1
6
Output selection
0: Corresponding input value is not the minimum value.
1: Corresponding input value is the minimum value.
16-bit unsigned
binary
System
Input value E16 E15 E14 to E2 E1
Bit to be set to 1 at the minimum value BB16 BB15 BB14 to BB2 BB1
Condition Processing
Two or more minimum values exist. The bits corresponding to the minimum values are all set to 1.
Only one input Only input value 1 (E1) is used as the input value. • 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.
Only one of input values 2 (E2) to 16 (E16) is used
as the input value.
A value out of input values 2 (E2) to 16 (E16) and the value of
input value 1 (E1) are used for data processing.
Error code Error content
3402H (s1) is a subnormal number or NaN (not a number).
3405H The number of inputs (n) is less than 1 or greater than 16.
b15 b2b3b4b5b6b7b8b9b10b11b12b13b14 b1 b0
BB3
BB4
BB5
BB6
BB7
BB8
BB9
BB10
BB11
BB12
BB13
BB14
BB15
BB16
BB2
BB1