
238
5-19-13 FLOATING POINT DIVIDE – FDIV(79)
Dd
: First dividend word (BCD)
IR, SR, AR, DM, HR, TC, LR
Dr
: First divisor word (BCD)
IR, SR, AR, DM, HR, TC, LR
Ladder Symbols
Operand Data Areas
R
: First result word
IR, SR, AR, DM, HR, LR
FDIV(79)
Dd
Dr
R
@FDIV(79)
Dd
Dr
R
Limitations
Dr and Dr+1 cannot contain zero. Dr and Dr+1 must be in the same data area, as
must Dd and Dd+1; R and R+1.
The dividend and divisor must be between 0.0000001 x 10
–7
and
0.9999999 x 10
7
. The results must be between 0.1 x 10
–7
and 0.9999999 x 10
7
.
Description
When the execution condition is OFF, FDIV(79) is not executed. When the
execution condition is ON, FDIV(79) divides the floating-point value in Dd and
Dd+1 by that in Dr and Dr+1 and places the result in R and R+1.
R+1
R
Quotient
Dd+1
Dd
Dr+1
Dr
To represent the floating point values, the rightmost seven digits are used for the
mantissa and the leftmost digit is used for the exponent, as shown below. The
mantissa is expressed as a value less than one, i.e., to seven decimal places.
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
First word
exponent (0 to 7)
sign of exponent
0: +
1: –
1
0
1
0
0
0
0
1
0
0
0
1
0
0
0
1
mantissa (leftmost 3 digits)
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Second word
mantissa (leftmost 4 digits)
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
= 0.1111111 x 10
–2
Flags
ER:
Dr and Dr+1 contain 0.
Dd, Dd+1, Dr, or Dr+1 is not BCD.
The result is not between 0.1 x 10
–7
and 0.999999 x 10
7
.
Indirectly addressed DM word is non-existent. (Content of
DM word is
not BCD, or the DM area boundary has been exceeded.)
EQ
:
ON when the result is 0.
BCD Calculations
Section 5-19
Summary of Contents for SYSMAC C200HE
Page 1: ...Cat No W303 E1 09 OPERATION MANUAL Programmable Controllers C200HX C200HG C200HE ...
Page 2: ......
Page 3: ...C200HX C200HG C200HE Programmable Controllers Operation Manual Revised August 2004 ...
Page 6: ...vi ...
Page 10: ......
Page 12: ......
Page 380: ......
Page 410: ......
Page 438: ......
Page 464: ......
Page 474: ......
Page 522: ......
Page 538: ......
Page 552: ...534 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Page 554: ......
Page 560: ......
Page 584: ......
Page 585: ......
Page 586: ...W303 E1 09 ...