274
D C O S P
S
D
1
2
M
3
○○○○
FNC
131
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S
D
DCOS D0 D10
X0
S
D
S
D
Operand
Devices
Calculate Cosine
This instruction performs the mathematical cosine operation on the designated BIN oating point radians of
angle, and the result is stored in the designated device.
When X0 = “ON”, the instruction is activated, it uses the BIN oating point radians at (D1, D0) to calculate the
cosine value, and the result will be stored at the specied destination devices (D11, D10).
For to convert the angle unit between the radians and degrees, please refer to the DEG and RAD instructions.
S : the source device for input the angle in radians
D : the calculated result
Radian = Degree × π / 180
This instruction is a 32-bit instruction. Therefore, be sure to input DCOS or DCOSP in the program.
S
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.