7 APPLICATION INSTRUCTIONS
7.12 Special Function Instructions
595
7
• The following program conducts a SIN operation on the angles stored in the four BCD digits from X20 to X2F and stores the
results at D0 and D1 as 32-bit floating decimal point type real numbers.
[Ladder Mode]
[List Mode]
[Operations involved when X20 to X2F designate a value of 150]
Inputs an angle used for SIN
operation ( ).
Converts the input angle into
a 32-bit floating-point real
number ( ).
Converts the converted angle
into a radian value ( ).
Executes SIN operation
using the converted radian value ( ).
1
2
3
4
Conversion to radian
32-bit floating-point
real number
D21
D20
RAD
SIN operation
32-bit floating-point
real number
D11
D10
SIN
32-bit floating-point
real number
D1
D0
X2F
BCD value
0
D30
150
X20
Conversion to BIN
BIN
b15
b0
BIN value
Conversion to floating-point
FLT
150
150
2
.
617994 0
.
500000