![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h/sysmac-c200h_operation-manual_742423187.webp)
174
divided by the content of Dr and Dr+1 and the result is placed in R to R+3:
the quotient in R and R+1, the remainder in R+2 and R+3.
R+1
R
Quotient
Remainder
Dd+1
Dd
Dr+1
Dr
R+3
R+2
Flags
ER:
Dr and Dr+1 contain 0.
Dd, Dd+1, Dr, or Dr+1 is not BCD.
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.
5-17-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, AR, DM, HR LR
FDIV(79)
Dd
Dr
R
@FDIV(79)
Dd
Dr
R
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.
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.
Limitations
Description
BCD Calculations
Section 5-17
Summary of Contents for SYSMAC C200H
Page 1: ...OPERATION MANUAL C200H CPU01 E 03 E 11 E SYSMAC Programmable Controllers Cat No W130 E1 05 ...
Page 2: ...C200H Programmable Controllers CPU01 E 03 E 11 E Operation Manual Revised June 2003 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 8: ...TABLE OF CONTENTS ix Glossary 345 Index 363 Revision History 369 ...
Page 342: ...336 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Page 374: ...Cat No W130 E1 05 C200H Programmable Controllers CPU01 E 03 E 11 E OPERATION MANUAL ...