Cosine (cos) -28, 2 cosine (cos) ! ! ! ! outline, Detailed explanation – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual
Page 160: Program example

MotionSuite™ Series Machine Controller Motion Programming Manual
Chapter 4: Sequence Commands
4-28
4.6.2
Cosine (COS)
!
!
!
! Outline
The Cosine (COS) command leaves the cosine of the integer number and real number data
as a calculation result. The 32-bit integer number data cannot be used.
!
!
!
! Detailed Explanation
Command Method
Data Type
$ = Yes
× = No
!
!
!
! Program Example
Input unit and output results vary depending on the integer number and real
number data.
• Integer Number
It is used within a range of -327.68
°~327.67°. Use an immediate calculation
result (integer number data) as an input, and leave the calculation result in
the integer number register (1 input unit = 0.01
°). The calculation result is
output by multiplying by 10000
°.
• Real Number
Use an immediate calculation result (real number data) as an input, and leave
the cosine in the real number register (unit: degree).
Bit (B)
Integer (W)
32-bit Integer (L)
Real (F)
Constant
×
$
×
$
$
Type
Motion Program
Ladder Program
B
—
—
W
MW00102=COS(MW00100);
L
—
—
F
DF00202
=
COS(DF00200);
MW00100=COS(MW00101);
MW00100=COS(90);
MF00200=COS(MF00202);
MW00100
COS⇒MW00102
DF00200
COS
⇒DF00202