![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030695.webp)
655
Double-precision Floating-point Instructions (CS1-H, CJ1-H, CJ1M, or CS1D Only)
Section 3-16
Comparing Single-precision and Double-precision Calculations
This example shows the differences in between single-precision and double-
precision calculations when the following vector expressed in polar coordi-
nates is converted to rectangular coordinates A (x,y).
In this example, the 4-digit BCD angle (
θ
, in degrees) is read from D00000
and the 4-digit BCD distance (r) is read from D01000.
r = re
j
θ
360
π
Y
0
r
θ
X
r
A (x, y) = A (rcos
θ
, rsin
θ
)
000000
BIN
D00000
D00100
BIN
D01000
D01000
SIN
D00200
D00400
COS
D00200
D00300
END
*F
D01200
D00300
D10000
*F
D01200
D00400
D20000
FLT
D00100
D00200
FLT
D01000
D01200
RAD
D00200
D00200
000000
BIN
D00000
D00100
BIN
D01000
D01000
SIND
D00200
D00400
COSD
D00200
D00300
END
*D
D01200
D00300
D10000
*D
D01200
D00400
D20000
DBL
D00100
D00200
DBL
D01000
D01200
RADD
D00200
D00200
• Ladder Program for the
Single-precision Calculation
• Ladder Program for the
Double-precision Calculation
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...