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

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

Advertisement

Double-precision Floating-point Instructions (CS1-H, CJ1-H, CJ1M, or CS1D Only)
Comparing Single-precision and Double-precision Calculations
• Ladder Program for the
Single-precision Calculation
000000
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.
Y
0
BIN
D00000
D00100
BIN
D01000
D01000
FLT
D00100
D00200
FLT
D01000
D01200
RAD
D00200
D00200
COS
D00200
D00300
SIN
D00200
D00400
*F
D01200
D00300
D10000
*F
D01200
D00400
D20000
END
j
r = re
360
A (x, y) = A (rcos , rsin )
r
r
• Ladder Program for the
Double-precision Calculation
000000
Section 3-16
X
BIN
D00000
D00100
BIN
D01000
D01000
DBL
D00100
D00200
DBL
D01000
D01200
RADD
D00200
D00200
COSD
D00200
D00300
SIND
D00200
D00400
*D
D01200
D00300
D10000
*D
D01200
D00400
D20000
END
655

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents