7-282
DEGD(P)
Program Example
(1) The following program converts the radian value set with 64-bit floating decimal point type
real number at D20 to D23 to angles, and stores the result as a BCD value at Y40 to Y4F.
[Ladder Mode]
[List Mode]
[Operations involved when the values at D20 to D23 are 1.435792]
Converts the angle in 64-bit floating-point
real number into an integer ( ).
Outputs the converted integer to a display
device ( ).
Converts a radian value into an angle ( ).
1
2
3
Step Instruction Device
Conversion
to angle
DEGD
BCD operation
BCD
Conversion
to BIN
INTD
D0
b15 b0
BIN value
82
Y4F
BCD value
0
082
Y4
0
64-bit floating-point
real number
64-bit floating-point
real number
D21
1.435792
D20D23 D22
D11
82.26482
D10D13 D12
1
2
3