S7-1200 Trigonometry Math

by Antigravity

SIN (Sine) & ASIN (Arcsine)

SIN Description: Calculates the sine value of the input value in radians (sin(IN) = OUT).
ASIN Description: Calculates the arcsine value. Returns the angle in radians. If IN is not between -1.0 and +1.0, it returns NaN.

HMI Panel

SIN OUT (Value)
0.000
ASIN OUT (Radians)
0.000
Network 1: Sine & Arcsine
SIN
EN
IN
ENO
OUT
%MD30
IN1
ASIN
EN
IN
ENO
OUT
%MD34
IN2

COS (Cosine) & ACOS (Arccosine)

COS Description: Calculates the cosine value of the input value in radians (cos(IN) = OUT).
ACOS Description: Calculates the arccosine value. Returns the angle in radians. If IN is not between -1.0 and +1.0, it returns NaN.

HMI Panel

COS OUT (Value)
1.000
ACOS OUT (Radians)
1.571
Network 2: Cosine & Arccosine
COS
EN
IN
ENO
OUT
%MD40
IN1
ACOS
EN
IN
ENO
OUT
%MD44
IN2

TAN (Tangent) & ATAN (Arctangent)

TAN Description: Calculates the tangent value of the input value in radians (tan(IN) = OUT).
ATAN Description: Calculates the arctangent value. Returns the angle in radians representing arctan(IN).

HMI Panel

TAN OUT (Value)
0.000
ATAN OUT (Radians)
0.000
Network 3: Tangent & Arctangent
TAN
EN
IN
ENO
OUT
%MD50
IN1
ATAN
EN
IN
ENO
OUT
%MD54
IN2