Omron SYSMAC CS Series Instruction & Reference Manual page 469

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

 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
mat).
D100
• The BIN(023) instructions convert the BCD data to
BIN
D1000
D1000
FLT
• The floating-point data for the angle θ is output to
D100
D200
FLT
• RAD(458) converts the angle data in D200 and
D1000
D1200
• The floating-point data for the radius r is output to
RAD
D200
D200
2. This program section calculates the sin θ and the cos
2.
COS
θ as single-precision floating-point values.
D200
D300
• The value for cos θ is output to D300 and D301.
• The value for sin θ is output to D400 and D401.
SIN
D200
D400
3. This program section calculates x (r × cos θ) and y (r ×
sin θ).
3.
*F
• The value for x (r × cos θ) is output to D10000 and
D1200
D300
D10000
• The value for y (r × sin θ) is output to D20000 and
*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.
D10001.
D20001.
Floating-point number
x
4116 59CF
y
405A E495
3. Instructions
3
Real number
3.4202015399933
9.3969259262085
435

Advertisement

Table of Contents
loading

Table of Contents