Mitsubishi MELSEC-Q series Programming Manual page 224

Process control instructions
Hide thumbs Also See for MELSEC-Q series:
Table of Contents

Advertisement

S.ADD
Set Data
Set Data
(1) Data specified in S.ADD instruction
Specification
Symbol
position
n
+0
S1
+1
E1
+2
+3
Input data
E2
+4
+2n-1
En
+2n
Block
+0
D1
BW
memory
+1
n
+0
S2
+1
K1
+2
+3
K2
Operation
+4
constant
+2n-1
Kn
+2n
+2n+1
B
+2n+2
*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.
Set 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.
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
Error code
When an operation error occurs
When the values of
4100
normalized number
When not n = 0 to 5
When the values of
4140
normalized number
4141
When an operation error occurs
222
Name
Recommended range
Input count
0 to 5
Input value 1
Input value 2
-999999 to 999999
Input value n
Output value
(-999999 to 999999)
Number of
0 to 5
coefficients
Coefficient 1
Coefficient 2
-999999 to 999999
Coefficient n
Bias
-999999 to 999999
Error definition
,
are either a non-numeric or non-
S1
S2
,
are either a non-numeric or non-
S1
S2
Data
*1
Unit
format
BIN
––
16Bit
Real
––
number
Real
––
number
BIN
––
16Bit
Real
––
number
Real
––
number
QnPHCPU
QnPRHCPU
––
––
––
––
Standard
Set
value
by
––
U
––
U
––
S
0
U
1.0
U
0.0
U
QnUDPVCPU
––
––

Advertisement

Table of Contents
loading

Table of Contents