Arccosine: Acos - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Arccosine: ACOS

Format
ACOS(S)
Setting data
■Usable data
: Usable
Setting
Usable Data
data
Bit
Word device
device
16-bit
integer
type
(S)
■Description, data type of result
Setting data
Description
(S)
COS value data on which COS
Processing details
-1
• COS
(arccosine) operation is performed on the COS value data specified with (S) to find an angle.
• The COS value specified with (S) must be within the range -1.0 to 1.0.
• The operation result is in an angle (degree) unit.
• If (S) is an integer type, it is converted into a floating-point type before operation is performed.
Operation error
An operation error will occur if:
• (S) is outside the range -1.0 to 1.0.
• (S) is an indirectly specified device and its device No. is outside the range.
Program example
■Program which performs the COS
#0F
#0F = ACOS(D0F)
#3
#2
#0F
60.0
Number of basic steps
4
Constant
32-bit
64-bit
16-bit
integer
floating
integer
type (L)
point
type
type (F)
(K/H)
-1
(arccosine) operation will be performed
-1
(arccosine) operation of D0F and substitutes the result to
#1
#0
D0F
Usable steps
F/FS
Calculation
expression
32-bit
64-bit
integer
floating
type
point
(K/H, L)
type (K)
Data type of result
Floating-point type
D3
D2
D1
0.5
4 OPERATION CONTROL PROGRAMS
G
Bit
Comparison
conditional
conditional
expression
expression
D0
4.7 Standard Functions
4
149

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents