User`s manual

9 - 73 9 - 73
MELSEC-Q
9 CONTROL OPERATION INSTRUCTIONS
Control data
(1) Data specified in S.MID instruction
Specified position Symbol Name Recommended range
*1
Unit Data format
Standard
value
Store
S1
+0 n Input count 1 to 16
BIN
16bit
U
+1
+2
E1 Input value 1
+3
+4
E2 Input value 2
Input
data
+2
n-1
+2
n
E
n
Input value n
-999999 to 999999
Real
number
U
Block
memory
D1
+0
+1
BW Output value
(Intermediate value between maximum value
and minimum value)
Real
number
S
+2 BB
BB1
to
BB16
Output
selection
b15 b12 b8 b4 b0
B
B
3
B
B
2
B
B
1
(0: The corresponding input value is not the
intermediate value)
(1: The corresponding input value is the
intermediate value)
B
B
4
B
B
5
B
B
6
B
B
7
B
B
8
B
B
9
B
B
10
B
B
11
B
B
12
B
B
13
B
B
14
B
B
15
B
B
16
BIN
16bit
S
*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) Intermediate value selector processing
The intermediate 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 intermediate value is turned to 1.
Input value E16 E15 E14 to E2 E1
Bit turned to 1 at intermediate value BB16 BB15 BB14 to BB2 BB1
(a) If there are an even number of inputs, the smaller value of the intermediate values is
stored.
(b) If there are two or more intermediate values, the bits corresponding to the intermediate
values are all turned to 1.