120
4
4 Instructions4.4.3 Trigonometric Functions
After execution of the instruction
4.4.3 Trigonometric Functions
Trigonometric functions
SIN Floating point SIN operation
COS Floating point COS operation
TAN Floating point TAN operation
ASIN Binary oating point ARCSIN operation
ACOS Binary oating point ARCCOS operation
ATAN Binary oating point ARCTAN operation
RAD Binary oating point degree-to-radian conversion
DEG Binary oating point radian-to-degree conversion
SINH Binary oating point SINH operation
COSH Binary oating point COSH operation
TANH Binary oating point TANH operation
SIN: Floating point SIN operation
◆
Overview
The SIN instruction calculates the sine of the designated angle (measured in radians). The variable is in
binary oating-point number format.
SIN S D
Floating point SIN
operation
Applicable model:
H3U
S Data source
Angular variable whose sine is to be calculated, in the
unit of rad and in binary oating-point number format;
value range: 0 <= α <= 2π
32-bit instruction
(9 steps)
DSIN: Continuous
execution
DSINP: Pulse
execution
D
Operation
result
Sine storage unit, in binary oating-point number format
◆
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
Modication K H E
D1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.