3 cosine instruction (cos) – Yaskawa Ladder Works Programming Manual User Manual

Page 88

Advertising
background image

5.3 COSINE Instruction (COS)

5-6

5.3 COSINE Instruction (COS)

[Outline]

The COS instruction calculates the cosine of integer or real number values as the operation result.
The input units and output results for integer and real number values are different. This instruction
cannot be used for double-length integer data.

Integer Type Data
This instruction can be used between -327.68 and 327.67 degrees. The Source is used as the input (1
= 0.01 degrees) and the operation result is stored in the Dest. Upon output, the operation result is
multiplied by 10,000. If a value outside the range of -327.68 to 327.67 is entered, the correct result is
obtained. For example, if 360.00 is entered, -295.36 degrees is output as a result.

Real Number Type Data
The Source is used as the input (unit = degrees) and the cosine of the input is stored in the Dest.

[Format]

Symbol : COS
Full Name : Cosine
Category : FUNCTION

Icon :

[Parameter]

Parameter Name

Setting

Source
(Input)

· Any integer type and real number type register
· Any integer type and real number type register with subscript
· Subscript register
· Constant

Dest
(Output)

· Any integer type and real number type register (except for # and C

registers)

· Any integer type and real number type register with subscript (except for #

and C registers)

· Subscript register

Advertising