User`s manual

11 - 2 11 - 2
MELSEC-Q
11 ARITHMETIC OPERATION INSTRUCTIONS
Control Data
(1) Data specified in S.ADD instruction
Specification position Symbol Name Recommended range
*1
Unit Data format
Standard
value
Store
S1
+0 n Input count 0 to 5
BIN
16Bit
U
+1
+2
E1 Input value 1
+3
+4
E2 Input value 2
Input data
+2n
-1
+2n
E
n Input value n
-999999 to 999999
Real
number
U
Block
memory
D1
+0
+1
BW Output value (-999999 to 999999)
Real
number
S
S2
+0 n
Number of
coefficients
0 to 5
BIN
16Bit
0U
+1
+2
K1 Coefficient 1
+3
+4
K2 Coefficient 2
+2n
-1
+2n
K
n
Coefficient n
-999999 to 999999
Real
number
1.0 U
Operation
constant
+2n
+1
+2n
+2
B Bias -999999 to 999999
Real
number
0.0 U
*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) The S.ADD instruction performs the following operation.
BW
(K1
E1)
(K2
E2)
(Kn
En)
B
(2) When n is 0, BW B.
Error
• When an operation error occurs Error code: 4100
• When not n
0 to 5. Error code: 4100
11