EasyManua.ls Logo

Delta VP3000 Series - Page 360

Delta VP3000 Series
714 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 7 Second Development PlatformVP3000
351
API Instruction code Operand Function
131 D COS P S, D
Binary floating-point number cosine
operation
Type
Operand
Bit devices Word devices
16-bit instruction
- - - -
32-bit instruction (9 steps)
DCOS
Continuous
execution
type
DCOSP
Pulse
execution
type
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
D
Caution for using operand
See the specification of each model for the scope of device’s usage.
Description
S: source value
D: operation result of cosine
The source value designated by S can be set as radian or degree, and this is decided by flag
M1018.
M1018 = OFF, radian mode, RAD value = degree x π / 180
M1018 = ON, degree mode, range: 0° degree < 360°
If the operation result is 0, M1020 = ON
Find cosine value from the source value designated by S, and store in the register that D
designates.
See the figure below for the relation between the radian and the operation result:
Example
When X0 = ON, designate the RAD value of the binary floating-point number (D1, D0) to find
the sine value and stores in (D11, D10). The content is binary floating-point number.
X0
DSIN D0 D10

Table of Contents

Related product manuals