Panasonic FP Series Programming Manual page 700

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F338_DEG
The function converts the value of an angle entered at input s from radians to degrees and returns
Description
the result at output d.
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
Availability of F338_DEG (see page 1324)
PLC types
Data types
Variable
Data type
REAL
s
REAL
d
Operands
For
DWX DWY DWR
s
d
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
%MX0.900.11
R900B
%MX0.900.9
R9009
Conversion of angle units (Radians -> Degrees)
Function
source angle data (radians), 2 words
destination for storing converted data
Relay
DWL
DSV
-
DWY DWR
DWL
DSV
Set
permanently
for an instant
to TRUE
for an instant
T/C
Register
DEV
DDT
DLD
DFL
DEV
DDT
DLD
DFL
If
 the value at input s is not a REAL
number.
 the result is 0.
 the result causes an overflow.
Conversion instructions
Constant
dec. or hex.
-
699

Advertisement

Table of Contents
loading

Table of Contents