Download Print this page

Converting Single-Precision Real Number Radian To Angle - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Converting single-precision real number radian to angle

DEG(P)/DDEG(P)
These instructions convert a unit of angle from radians specified by (s) into degrees (DEG.), and store the converted angle in
the device specified by (d). The DEG(P) instructions can also be used as DDEG(P).
Ladder diagram
(s)
(d)
FBD/LD
EN
ENO
s
d
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
A value in radians to be converted into a value in degrees or
the head device number storing a value in radians
(d)
Head device number storing a value in degrees acquired by
conversion
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
Processing details
• These instructions convert a unit of angle from radians specified by (s) into degrees (DEG.), and store the converted angle
in the device specified by (d).
(s)+1
(s)
(
) rad
Single-precision real number
• The conversion from radians into degrees is executed as follows:
180
Degrees = Radians 
• The table below shows the related devices.
Device
Name
SM700
Carry
SM8020
Zero
SM8021
Borrow
SM8022
Carry
Word
T, ST, C, D, W,
U\G
SD, SW, R
(d)+1
(d)
(
)
Single-precision real number
Description
Condition
The absolute value of the operation result  2
The operation result is true "0".
(The mantissa part is "0").
The absolute value of the operation result < 2
The absolute value of the operation result  2
Structured text
ENO:=DEG(EN,s,d);
ENO:=DEGP(EN,s,d);
Range
Data type
Single-precision real number
Single-precision real number
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Operation
128
The value of (d) is the maximum value (2
numbers and the carry flag SM700 turns on.
The zero flag SM8020 turns on.
-126
The value of (d) is the minimum value (2
numbers and the borrow flag SM8021 turns on.
128
The value of (d) is the maximum value (2
numbers and the carry flag SM8022 turns on.
Data type (label)
ANYREAL_32
ANYREAL_32
BOOL
BOOL
Constant
Others
K, H
E
$
128
) of 32-bit real
-126
) of 32-bit real
128
) of 32-bit real
8 APPLICATION INSTRUCTION
8.9 Real Number Instruction
8
529

Hide quick links:

Advertisement

loading