Ladder Program for the Single-precision Calculation
0.00
CS/CJ/NSJ Series Instructions Reference Manual (W474)
1. This program section converts the BCD data to single-
1.
BIN
precision floating-point data (32 bits, IEEE754-for-
D0
D100
mat).
BIN
• The BIN(023) instructions convert the BCD data to
D1000
D1000
FLT
D100
• The floating-point data for the angle
D200
FLT
• RAD(458) converts the angle data in D200 and
D1000
D1200
RAD
• The floating-point data for the radius r is output to
D200
D200
2. This program section calculates the sin
2.
COS
D200
D300
• The value for cos
SIN
• The value for sin
D200
D400
3. This program section calculates x (r
sin ).
3.
*F
• The value for x (r
D1200
D300
D10000
• The value for y (r
*F
D1200
D400
D20000
Coordinate
END
binary and the FLT(452) instructions convert the
binary data to single-precision floating-point data.
D200 and D201.
D201 to radians.
D1200 and D1201.
as single-precision floating-point values.
is output to D300 and D301.
is output to D400 and D401.
cos ) is output to D10000 and
D10001.
sin ) is output to D20000 and
D20001.
Floating-point number
x
4116 59CF
y
405A E495
3. Instructions
is output to
and the cos
3
cos ) and y (r
Real number
3.4202015399933
9.3969259262085
511
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers