Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 625

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Special Math Instructions
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.
D00101
A
5
CIO 0021
÷
B
1
D00301
2
4
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.
D00100
6
7
0
0
0
0
0.5670000 10
CIO 0020
2
3
4
5
6
7
0.1234567
D00300
5
9
2
7
0
3
0.4592703 10
Section 3-14
–2
×
–3
×
10
2
×
585

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents