Delta C2000 series User Manual page 531

Classical field oriented control ac motor drive
Hide thumbs Also See for C2000 series:
Table of Contents

Advertisement

API
COS
131
D
P
Bit Devices
X
M
Y
K
S
D
Operands:
Please refer to the specifications of each model for the
range of operands.
S: Source device (0°≦S<360°) D: Operation result
Explanation
The value in S can be set as radian or degree by flag M1018.
M1018 = OFF, radian mode. RAD = degree ×π/180.
M1018 = ON, degree mode. Degree range: 0°≦degree<360°.
If result to 0, M1020 = On.
COS instruction performs cos operation on S and stores the result in D
See the figure below for the relation between the radian and the operation result:
Example
When X0 = ON, DCOS instruction conducts cosine operation on binary floating
value in (D1, D0) and stores the COS value in (D11, D10) in binary floating format.
Word Devices
H
KnX KnY KnM
T
R
1
3
-
-
-2
-2
2
2
-1
RAD value ( x
D 1
D 0
binary floating point
COS
D 1
D 10
binary floating point
Chapter 16 PLC Function C2000 Series
Cosine
16-bit command (5 STEPS)
C
D
32-bit command
DCOS
Flag signal: none
S: Radian
R: Result (COS value)
3
0
2
2
2

180)
value
16-84
DCOSP
S

Advertisement

Table of Contents
loading

Table of Contents