CTG (87)


CTG (87)

ID                          87

 

 

Application:

PLC

SIM

 

Group: MATH

 

Short description:

Trigonometric cotangent function.

 

Inputs (1):

no.

type

impulse

mark

notes

1

R

no

alfa

Real type input (in radians)


Outputs (1):

no.

type

impulse

mark

notes

1

R

no

ctg

Function output value


Settings: none

Function operation:

The CTG function performs the trigonometric cotangent function. The alpha input is given a value expressed in radians. If this value exceeds the value range of an integer variable (-2147483648 ... 2147483647), the function returns 0, without signaling the limit exceeding. Due to the way numbers are written in the processor, values outside the function domain will not be detected. The limit violation can be detected using function no. 96 (see LIMITS (96)).

R registers and M markers used: none