514
ACOSD, ACOSDP
Program
E
xamp
l
e
(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]
[Operations involved when the D0 and D1 value is 0.5]
: COS value of which the COS
-1
(inverse cosine) value is obtained or head number of the devices where the COS value is stored (real number)
: Head number of the devices where the operation result will be stored (real number)
7.12.10 ACOSD, ACOSDP
Arc cosine operation on floating-point data (Double
precision)
7.12.10
ACOSD, ACOSDP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
E
Other
Bit
Word
Bit
Word
––
––
––
––
––
––
––
Calculates an angle (radian
v
alue)
by COS
-1
operation ( )
Con
v
erts the radian
v
alue into an angle ( )
Con
v
erts the angle in 32-bit floating-point
real number into an integer ( )
Outputs the integer-con
v
erted angle
to a display de
v
ice ( )
1
2
3
4
Step
I
nstruct
i
on
De
vi
ce
Con
v
ersion
to BIN
32-bit floating-point
real number
D21
D20
INT
BCD operation
BCD
ACOS
Con
v
ersion to angle
DEG
Y4F
BCD
v
alue
0 0 6 0
Y40
D30
b15
b0
BIN
v
alue
60
32-bit floating-point
real number
D1
D0
32-bit floating-point
real number
D11
D10
COS
-1
operation
0 . 5
1 . 0 4 7 1 9 8
6 0
Universal
LCPU
Bas
i
c
Hi
gh
performance
Process
Redundant
Command
Command
ACOSDP
ACOSD
ACOSDP
ACOSD
S
D
S
D
S
D
S
D