User manual

Highlevel Instructions
3 737
Outline This instruction converts the units of an angle from degrees to radians.
For the FP0R/FPΣ/FPX/FP0/FPe, the P type highlevel instruction
“P337 (PRAD)” is not available.
Program example
Ladder
Diagram
Boolean
Ladder Diagram
Address Instruction
S
Trigger
D
F337 RAD, DT10, DT2010
R0
10
11
ST R 0
F337 (RAD)
DT 10
DT 20
S Angle data (degrees) (2 words) or lower 16-bit area of 32-bit data
D Lower 16-bit area of 32-bit data for storing converted data
Operands
O
p
erand
Relay Timer/Counter Register
Index
register
Constant
Index
modifier
Integer
device
Operand
WX WY WR WL SV EV DT LD FL I K H f
modifier device
S A A A A A A A A A A A A A A* A
D N/A A A A A A A A A A N/A N/A N/A A N/A
* Index modification of a real number is not possible.
Description
The data in degrees of an angle specified in S+1 and S is converted to radians (real number data) and the
result is stored in D+1 and D.
Angle data (radians)
(Real number data)
15 0
D:
Angle data (degrees)
(Real number data)
Lower word
D+1:
Higher word
15 0
S:
Lower word
S+1:
Higher word
Specifying the integer device with [S], the integer data is internally converted to real numbers before
operations continue.
When the constant K is specified in S, the operations are the same as when a integer device is specified.
F337
P337
(PRAD)
(RAD)
Floating point real number data conversion of angle
units (Degrees Radians)
A
:
A
vailable
N/A: Not Available