Delta CT2000 Series User Manual page 525

Table of Contents

Advertisement

Chapter 16 PLC Function CT2000 Series
API
COS
D
131
Bit device
X
Y
M
S
D
Notes on operand usage:
Please refer to the function specifications table for each device in
series for the scope of device usage
X0
P
Word device
K
H
KnX KnY KnM
S: the designated source value. D: the COS value result.
The source designated b y S can be given as radians or an angl e; this is
decided by flag M1018.
When M1018=Off, the operation is in radians mode, where the radians (RAD)
value is equal to (angle ×π/180).
When M1018=On, the operation is in the angle mode, where the angular range is
0°≤ angle <360°.
When calculation results yield 0, M1020=On.
The COS obtained from the source value designated by S is stored in D.
The following figure displays the relationship between the arc and SIN results:
3
-
-
-2
-2
2
2
When X0=On, the COS value of the designated binary floating point number (D1,
D0) in radians will be stored in (D11, D10), with the content consisting of a binary
floating point number.
DCOS
D0
D 1
D 0
D 1
D 10
Binary floating point number COS operation
16-bit command
T
C
D
32-bit command (9 STEP)
DCOS
Flag signal: none
S: Radian
R
R: Result (COS value)
1
3
0
2
2
-1
D10

RAD value ( x
180)
binary floating point
value
COS
binary floating point
16-84
Continuous
DCOSP
execution type
execution type
S
2
Pulse

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents