Panasonic FP-E Programming Manual page 1001

Fp series
Table of Contents

Advertisement

F337
(RAD)
P337
(PRAD)
Outline
This instruction converts the units of an angle from degrees to radians.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
"P337 (PRAD)" is not available.
Program example
Trigger
R0
10
F337 RAD, DT10, DT20
S
D
Operands
Relay
Operand
Operand
WX WY WR WL
S
A
A
D
N/A
A
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 (degrees)
(Real number data)
S+1:
Angle data (radians)
(Real number data)
D+1:
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.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Floating point real number data conversion of angle
units (Degrees → Radians)
Ladder Diagram
Ladder Diagram
S
Angle data (degrees) (2 words) or lower 16-bit area of 32-bit data
Lower 16-bit area of 32-bit data for storing converted data
Timer/Counter
SV
EV
A
A
A
A
A
A
A
A
15
Lower word
S:
Higher word
15
Lower word
D:
Higher word
D
Index
Register
register
DT
LD
FL
I
A
A
A
A
A
A
A
A
* Index modification of a real number is not possible.
0
0
High−level Instructions
Boolean
Address
Instruction
10
ST
R
11
F337
DT
DT
Constant
Index
modifier device
modifier
K
H
f
A
A
A
A*
N/A N/A N/A
A
A:
Available
N/A: Not Available
0
(RAD)
10
20
Integer
device
A
N/A
3 − 737

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents