EasyManuals Logo

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #526 background imageLoading...
Page #526 background image
524
DEGD, DEGDP
Function
(1) The unit expressing the size of an angle is converted into the degree unit from the radian unit specified by , and its
result is stored into the device specified by .
(2) The conversion from radians to angles is performed according to the following equation:
(3) When the operation results in -0 or an underflow, the result is processed as 0.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Program Example
(1) The following program converts the radian value set with 64-bit floating decimal point type real number at D20 to D23 to
angles, and stores the result as a BCD value at Y40 to Y4F.
[Ladder Mode]
[List Mode]
[Operations involved when the values at D20 to D23 are 1.435792]
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4140
The specified device value is not within the following range:
0, 2
-1022
| Specified device value | < 2
1024
The specified device value is -0.
–– –– –– ––
4141
The operation result exceeds the following range (when an overflow
occurs):
2
1024
| Operation result |
–– –– –– ––
S
D
(
)rad ( )
+3
S
+2
S
S
+1
S
+3
D
+2
D
D
+1
D
64-bit floating-point
real number
64-bit floating-point
real number
Degree unit = Radian unit
180
Converts the angle in 64-bit floating-point
real number into an integer ( ).
Outputs the converted integer to a display
device ( ).
Converts a radian value into an angle ( ).
1
2
3
Step Instruction Device
Conversion
to angle
DEGD
BCD operation
BCD
Conversion
to BIN
INTD
D0
b15 b0
BIN value
82
Y4F
BCD value
0
082
Y4
0
64-bit floating-point
real number
64-bit floating-point
real number
D21
1.435792
D20D23 D22
D11
82.26482
D10D13 D12
1
2
3

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals