Mitsubishi MELSEC-Q/L Programming Manual page 515

Table of Contents

Advertisement

7.12.9
ACOS, ACOSP
Arc cosine operation on floating-point data (Single
precision)
7.12.9
ACOS, ACOSP
ACOS
ACOSP
-1
: COS value of which the COS
S
: Head number of the devices where the operation result will be stored (real number)
D
Internal Devices
Setting
Data
Bit
Word
––
S
––
D
*1:
Applicable for the Universal model QCPU, LCPU.
Function
-1
(1) Returns the COS
angle of the COS value designated by
.
D
(2) The COS value designated by
(3) The angle (operation result) stored at
For more information on the conversion between radian and angle data, see description of RAD and DEG instructions.
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 value specified in
4100
The specified device value is -0.
The specified device value is not within the following range:
-126
0, 2
| Specified device value | < 2
4140
The specified device value is -0, unnormalized number, nonnumeric,
and ±
.
The operation result exceeds the following range (when an overflow
occurs):
4141
128
2
| Operation result |
*2:
There are CPU modules that will not result in an operation error if -0 is specified.
For details, refer to Page 88, Section 3.2.4.
Command
Command
(inverse cosine) value is obtained or head number of the devices where the COS value is stored (real number)
J
\
R, ZR
Bit
––
––
S
+1
S
COS -1
32-bit floating-point
real number
can be in the range of from -1.0 to 1.0.
S
is stored in radian units.
D
Error details
is not within the range between -1.0 and 1.0.
S
*2
128
High
Basic
performance
ACOS
S
ACOSP
S
U
\G
Word
, and stores operation result at word device designated by
S
D
+1
D
)
32-bit floating-point
real number
Q00J/
Q00/
QnH
Q01
––
––
––
––
––
––
ACOS, ACOSP
Process
Redundant Universal
LCPU
D
D
Constants
Zn
Other
E
*1
––
*1
––
––
QnPH QnPRH
QnU
LCPU
––
––
––
––
––
1
2
3
4
4
6
7
8
––
513

Advertisement

Table of Contents
loading

Table of Contents