![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268625.webp)
586
Special Math Instructions
Section 3-14
Examples
Basic Floating-point Division
When CIO 000000 is ON in the following example, FDIV(079) divides the
floating-point number in D00101 and D00100 by the floating-point number in
CIO 0021 and CIO 0020 and writes the result to D00301 and D00300.
Floating-point Division of Two BCD Numbers
In this example, the 4-digit BCD number in D00000 is divided by the 4-digit
BCD number in D00001 and the floating-point result is written to D00003 and
D00002.
To perform the floating point division, the BCD value in D00000 is converted
to floating-point format in D00101 and D00100 and the BCD value in D00001
is converted to floating-point format in D00103 and D00102.
D00101
D00100
A 5 6 7 0 0 0 0 0.5670000 10
–2
CIO 0021 CIO 0020
B 1 2 3 4 5 6 7 0.1234567 10
–3
D00301
D00300
2 4 5 9 2 7 0 3 0.4592703 10
2
÷
×
×
×
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...