EasyManua.ls Logo

Inovance H3U Series - Page 129

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...
128
4
4 Instructions4.4.3 Trigonometric Functions
Function
Binary oating-point radians are converted to degrees. The calculation formula is [Angle in degrees = Angle
in radians x 180/π].
Example 1:
M10
ǒDDEG D0 D2Ǔ
S D
M11
When M10 = ON, radian-to-degree conversion is performed
on the binary floating-point number in (D1, D0).
The result is stored in (D3, D2).
ǒDDEGP D10 D12Ǔ
Example 2:
M10
ǒDDEG D0 D2Ǔ
Assume that the value in (D1, D0) is 3.1415926. When M10
switches from OFF to ON, the value in (D3, D2) is 180.
After the floating-point number is converted to an integer,
the value in (D5, D4) is 180.
ǒINT D2 D4Ǔ
SINH: Binary oating point SINH operation
Overview
The SINH instruction calculates the sinh of a binary oating-point number. The calculation formula is Sinh =
(e
s
– e
-s
)/2.
SINH S1 D
Binary oating
point SINH
operation
Applicable model:
H3U
S1 Data source
Binary oating-point variable whose sinh is to be
calculated
32-bit instruction (9
steps)
DSINH: Continuous
execution
DSINH P: Pulse
execution
D
Operation
result
Operation result storage unit (Error 6706 is returned if
the operation result D exceeds the oating-point range.)
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 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 sinh of a binary oating-point number is calculated. The calculation formula is Sinh = (e
s
– e
-s
)/2.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals