EasyManua.ls Logo

Vigor VS Series - Page 283

Vigor VS Series
484 pages
Print Icon
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...
277
D A C O S P
S
D
1
2
M
3
FNC
134
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S
D
S
D
DACOS D0 D10
X0
S
D
- 1.0 S 1.0
Calculate Arc Cosine
Operand
Devices
- 1
COS
0.5
=
1.047198
(D1, D0) BIN floating number
(D11, D10) BIN floating number
The calculated result at the (D11, D10) is by the value of radians and the range is between 0 and π .
S
For to convert the angle unit between the radians and degrees, please refer to the DEG and RAD instructions.
S
Degree = Radian ×180 / π
This instruction is a 32-bit instruction. Therefore, be sure to input DACOS or DACOSP in the program.
D
The source operand must assign to a BIN oating point number for the calculation, and the calculated result
is by the BIN oating point format, too.
The format for storing a oating point number will occupy two Registers in the PLC system. Please refer to the
section 2-13 “Numerical System” for the reference of the oating point number.
The PLC will identify it as an operating error if the value of is exceeded the available range -1.0 ~ 1.0.
S : the source device for input the value of cosine
D : the device to store the calculated result (unit: radian)
-1
This instruction performs the mathematical Arccosine (inverse cosine or cos ) operation by the designated
BIN oating point cosine value, and the result of radians is stored in the designated device.
When X0 = “ON”, the instruction is activated, it uses the BIN oating point cosine value at (D1, D0) to calculate the
Arccosine value, and the result of radians will be stored at the specied destination devices (D11, D10).

Table of Contents