Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1377

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Input data
Operand: (s1)
Device
Symbol
Name
+0
E1
Input value 1
+1
(numerator)
+2
E2
Input value 2
+3
(denominator)
■Block memory
Operand: (d1)
Device
Symbol
Name
+0
BW
Output value
+1
■Operation constant
Operand: (s2)
Device
Symbol
Name
+0
A
Coefficient 1
+1
+2
K1
Coefficient 2
+3
+4
K2
Coefficient 3
+5
+6
B1
Bias 1
+7
+8
B2
Bias 2
+9
+10
B3
Bias 3
+11
Processing details
This instruction divides the input value 1 (E1) by the input value 2 (E2).
The S.DIV instruction performs the following operations.
K1×E1+B1
BW=A×
+B3
K2×E2+B2
When the denominator (efficient 2 (K2)input value 2 (numerator) (E2) + bias 2 (B2)) is 0, the output value (BW) becomes
bias 3 (B3).
Operation error
Error code
3400H
3402H
3403H
Recommended range
-999999 to 999999
-999999 to 999999
Recommended range
-999999 to 999999
Recommended range
-999999 to 999999
-999999 to 999999
-999999 to 999999
-999999 to 999999
-999999 to 999999
-999999 to 999999
Error content
An invalid operation (such as division by zero) is performed.
The value specified by (s1) or (s2) is a subnormal number or NaN (not a number).
An overflow has occurred.
Data type
Standard
value
Single-precision
real number
Single-precision
real number
Data type
Standard
value
Single-precision
real number
Data type
Standard
value
Single-precision
1.0
real number
Single-precision
1.0
real number
Single-precision
1.0
real number
Single-precision
0.0
real number
Single-precision
0.0
real number
Single-precision
0.0
real number
11 PROCESS CONTROL INSTRUCTIONS
11.5 Arithmetic Operation Instructions
Set by
User
User
11
Set by
System
Set by
User
User
User
User
User
User
1375

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents