Mitsubishi MELSEC-Q/L Programming Manual page 516

Table of Contents

Advertisement

ACOSD, ACOSDP
Program Example
(1) The following program seeks the inverse cosine of the 32-bit floating decimal point real number at D0 and D1, and
outputs the angle to the 4 BCD digits at Y40 to Y4F.
[Ladder Mode]
[List Mode]
Step
Instruction
[Operations involved when the D0 and D1 value is 0.5]
D1
D0
COS
0 . 5
32-bit floating-point
real number
Conversion
D21
D20
to BIN
6 0
32-bit floating-point
real number
7.12.10 ACOSD, ACOSDP
Arc cosine operation on floating-point data (Double
precision)
7.12.10
ACOSD, ACOSDP
ACOSD
ACOSDP
: COS value of which the COS
S
: Head number of the devices where the operation result will be stored (real number)
D
Setting
Internal Devices
Data
Bit
Word
––
S
––
D
514
Calculates an angle (radian value)
by COS
Converts the radian value into an angle (
Converts the angle in 32-bit floating-point
real number into an integer (
Outputs the integer-converted angle
to a display device (
Device
D11
D10
-1
operation
1 . 0 4 7 1 9 8
ACOS
32-bit floating-point
real number
Conversion to angle
DEG
D30
BCD operation
b15
b0
60
INT
BIN value
BCD
Command
Command
-1
(inverse cosine) value is obtained or head number of the devices where the COS value is stored (real number)
J
R, ZR
Bit
-1
operation (
)
1
)
3
)
4
Y4F
Y40
0 0 6 0
BCD value
High
Basic
performance
ACOSD
ACOSDP
\
U
\G
Word
––
––
)
2
Process
LCPU
Redundant
Universal
S
D
S
D
Constants
Zn
Other
E
––
––
––

Advertisement

Table of Contents
loading

Table of Contents