Chapter 7 Second Development Platform VP3000
340
API Instruction code Operand Function
116 D RAD P S, D
Degree → Radian
Type
Operand
Bit devices Word devices
16-bit instruction
- - - -
32-bit instruction (9 steps)
DRAD
ontinuous
execution
type
DRADP
Pulse
execution
type
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
D
Caution for using operand
See the specification of each model for the scope of device’s usage.
Description
S: source of data (degree)
D: result (radian)
Use the following formula to convert degree to radian.
Radian = Degree x (π / 180)
Example
When X0 = ON, designate the degree of binary floating-point number (D1, D0). Convert the
degree into radian and store the result in binary floating point in (D11, D10).
X0
DRAD D0 D10