EasyManua.ls Logo

Inovance H3U Series - Page 124

Inovance H3U Series
737 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
Loading...
123
4
4 Instructions 4.4.3 Trigonometric Functions
Function
The tangent of the designated angle (measured in radians) is calculated. The variable is in binary oating-
point number format.
Example:
ǒDTAN D20 D30Ǔ
X2
DS
The tangent of the angle measured in radians in (D21, D20)
is calculated. The result is stored in (D31, D30).
The source data and TAN operation result are in binary oating-point number format.
According to the equation Angle in radians = Angle in degrees x π/180°, an angle of 360° is converted to
radians as follows: 360° x π/180° = 2π.
For details about the programming statement for calculating the tangent in degrees, see the example
described in
“SIN: Floating point SIN operation” on Page 120
.
ASIN: Binary oating point ARCSIN operation
Overview
The ASIN instruction calculates the sine in radians.
ASIN S D
Binary oating point
ARCSIN operation
Applicable model:
H3U
S
Data
source
Binary oating-point variable whose arcsine is to be
calculated
32-bit instruction
(9 steps)
DASIN: Continuous
execution
DASINP: Pulse
execution
D
Operation
result
Operation result storage unit (in the range –π/2 to +π/2)
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
Function
The sine in radians is calculated.
Note: An operation error will occur if the value in S exceeds the range –1.0 to +1.0. The error code is K6706
and stored in D8067. The error ag M8067 is set to ON to identify this error.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals