Mitsubishi MELSEC-Q/L Programming Manual page 523

Table of Contents

Advertisement

7.12.14 RADD, RADDP
Conversion from floating-point angle to radian
(Double precision)
7.12.14
RADD, RADDP
RADD
RADDP
: Angle to be converted to radian units or head number of the devices where the angle is stored (real number)
S
: Head number of the devices where the value converted in radian units will be stored (real number)
D
Setting
Internal Devices
Data
Bit
Word
––
S
––
D
Function
(1) The unit expressing the size of an angle is converted into the radian unit from the degree unit specified by
result is stored into the device specified by
(
(2) Conversion from degree to radian units 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.
Error
code
The specified device value is not within the following range:
-1022
4140
0, 2
| Specified device value | < 2
The specified device value is -0.
The operation result exceeds the following range (when an overflow
occurs):
4141
1024
2
| Operation result |
Command
Command
J
\
R, ZR
Bit
.
D
S
+3
S
+2
S
+1
S
)
64-bit floating-point
real number
Radian unit = Degree unit
Error details
1024
High
Basic
performance
RADD
S
RADDP
S
U
\G
Word
––
––
D
+3
D
+2
D
+1
(
64-bit floating-point
real number
180
Q00J/
Q00/
QnH
Q01
––
––
––
––
RADD, RADDP
Process
Redundant
Universal
LCPU
D
D
Constants
Zn
Other
E
––
––
––
, and its
S
D
)rad
QnPH QnPRH
QnU
––
––
––
––
1
2
3
4
4
6
7
8
LCPU
521

Advertisement

Table of Contents
loading

Table of Contents