Download Print this page

Calculating The Cosine Of Single-Precision Real Number - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Calculating the cosine of single-precision real number

COS(P)/DCOS(P)
These instructions calculate the cosine of the angle specified by (s), and store the operation result in the device specified by
(d).
The COS(P) instructions can also be used as DCOS(P).
Ladder diagram
(s)
(d)
*1
FBD/LD
EN
ENO
s
d
*1 The COS instruction is not supported by the ST language and the FBD/LD language. Use COS of the standard function.
Page 982 COS(_E)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Angle data or head device number where the angle data is
stored
(d)
Head device number for storing the operation result
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Structured text
ENO:=COSP(EN,s,d);
Range
Data type
Single-precision real number
Single-precision real number
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Data type (label)
ANYREAL_32
ANYREAL_32
BOOL
BOOL
Constant
Others
K, H
E
$
8 APPLICATION INSTRUCTION
8.9 Real Number Instruction
8
517

Hide quick links:

Advertisement

loading