Mitsubishi Electric MELSEC-Q QnPHCPU Programming Manual page 154

Table of Contents

Advertisement

9 CONTROL OPERATION INSTRUCTIONS
Control data
(1) Data specified in S.HS instruction
Specified position
Symbol
+0
n
S1
+1
E1
+2
Input
+3
E2
data
+4
+2 n-1
E
+2 n
Block
+0
D1
BW
memory
+1
+2
BB
BB1
BB16
*1: The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the system.
Users cannot set the data.
Processing contents
(1) High selector processing
The maximum value of the input values 1 (E1) to n (En) is stored into BW.
Also, any of BB1 to BB16 of BB corresponding to the maximum value is turned to 1.
Input value
Bit turned to 1 at maximum value
(a) If there are two or more maximum values, the bits corresponding to the maximum values
are all turned to 1.
(b) If there is only one input
1) When only E1 is used as the input value
2) Only one of E2 to E16 is used as the input value
Error
• When an operation error occurs
• When not 1
9 - 69
Name
Input count
1 to 16
Input value 1
Input value 2
-999999 to 999999
Input value n
n
Output value
(Maximum value of E1 to En)
b15
B
B
B
B
16
15
Output
to
(0: The corresponding input value is not
selection
the maximum value)
(1: The corresponding input value is the
maximum value)
• E1 is stored into BW.
• BB1 of BB is turned to 1.
• BB2 to BB16 of BB are turned to 0.
• The input values of E2 to E16 and the data of E1 are used to perform processing.
number of inputs (n)
Recommended range
b12
b8
b4
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
14
13
12
11
10
9
8
7
6
5
E16
E15
BB16
BB15
16
*1
Unit
Data format
BIN
16bit
Real
number
Real
number
b0
B
B
B
B
B
B
B
B
4
3
2
1
BIN
16bit
E14
to
BB14
to
MELSEC-Q
Standard
Store
value
U
U
S
S
E2
E1
BB2
BB1
Error code: 4100
Error code: 4100
9 - 69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q qnprhcpu

Table of Contents