Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 173

Advertising
background image

5.6 Basic Function Instructions

5.6.3 Cosine (COS)

5-104

( 3 ) Programming Examples

The following programming examples demonstrate the COS instruction using integer and real number input data.

• Integer COS

The cosine of 18,000, an integer in the input data in MW00000, is calculated and the result is stored in the output
data in DW00000.
COS (180.00 deg)

× 10,000 → DW00000 = -10,000

• Real Number COS

The cosine of 180.0, a real number in the input data in MF00000, is calculated and the result is stored in the out-
put data in DF00000.
COS (180.0 deg)

→ DF00000 = -1.0

Advertising
This manual is related to the following products: