EasyManua.ls Logo

Inovance H3U Series - Page 126

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...
125
4
4 Instructions 4.4.3 Trigonometric Functions
Example 1:
M10
ǒDACOS D0 D2Ǔ
S D
M11
When M10 = ON, the cosine-1 of the binary
floating-point number in (D1, D0) is calculated.
The result is stored in (D3, D2).
ǒDACOSP D10 D12Ǔ
(D1ǃD0)
(D3ǃD2)
COS
-1
Example 2:
M10
ǒDCOS D0 D2Ǔ
Assume that the value in (D1, D0) is 0.866025404.
When M10 switches from OFF to ON, the value in
(D3, D2) is 0.52359877, that in (D5, D4) is 30, and
that in (D7, D6) is 30.
ǒDDEG D2 D4Ǔ
ǒDINT D4 D6Ǔ
ATAN: Binary oating point ARCTAN operation
Overview
The ATAN instruction calculates the tangent in radians.
ATAN S D
Binary oating point
ARCTAN operation
Applicable model:
H3U
S
Data
source
Binary oating-point variable whose arctangent is to be
calculated
32-bit instruction
(9 steps)
DATAN:
Continuous
execution
DATANP: 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.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals