RAD

RAD, RADP

 

RAD instruction converts source to the Radian value and saves the result to the Destination.

(It supports only in XP and PLC-S CPU series)

 

S

Source in degree

D

Destination in radians

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

RAD

RADP

S

o

o

o

o

o

-

-

-

-

o

o

o

-

3

o

-

-

D

o

-

o

o

o

-

-

-

-

o

o

o

-

 

When enabled, the RAD instruction computes the source and saves the result in Destination (in radians).

 

 

  • The Radian formula : degree value x (/180)

 

Example)

If M00 is ON, the FLT instruction converts D100 to float value and saves its result to D90.

The RAD instruction converts D90 to radian value and saves its result in D80.