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 #514 background imageLoading...
Page #514 background image
512
ASIND, ASINDP
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 seeks the inverse sine of the 64-bit floating decimal point real number at D0 to D3, and outputs
the angle to the 4 BCD digits at Y40 to Y4F.
[Ladder Mode]
[List Mode]
[Operations involved when the D0 to D3 value is 0.5]
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100
The value specified by is within the double-precision floating-point
range and not within the range between -1.0 and 1.0.
–– –– –– ––
4140
The specified device value is not within in 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
Calculates an angle (radian value)
by SIN operation ( ).
Converts the radian value into
an angle ( ).
Converts the angle in 64-bit floating-point
real number into an integer ( ).
Outputs
the integer-converted angle to a
display device ( ).
1
1
2
3
4
Step Instruction Device
64-bit floating-point
real number
D1
0.5
D0D3 D2
64-bit floating-point
real number
D21
30
D20D23 D22
64-bit floating-point
real number
D11
0.5235988
D10D13 D12
Conversion
to BIN
INTD
BCD operation
BCD
ASIND
Conversion to angle
DEGD
Y4F
BCD value
0
030
Y40
D30
b15 b0
BIN value
30
SIN operation
1
1
2
3
4

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