xLadder user manual-V2.0.0.6

6.7.5 COS

Input/output

Operand

Data type

IN

VD, ID, QD, MD, SMD, SD, LD, AC,constant, *VD, *LD, *AC

Real number

OUT

VD, ID, QD, MD, SMD, SD, LD, AC, *VD, *LD, *AC

Real number

COS :Perform trigonometric operations on the input

radian value and put the result into OUT.You can use the

angle value multiplied by 1.745329E - 2 to get the value of

the radian.The value of the input “ IN ” is radian .

SM1.1 is used for indicating overflow errors and illegal

values.

error conditions:

SM1.1

Overflow

Special memory bit:

Zero result

SM1.0

Overflow

SM1.1

Negative result

SM1.2

124

Made with FlippingBook - Online magazine maker