549
BACOS, BACOSP
1
2
3
4
4
6
7
8
7.12
Special function
instructions
7.12.3
3
BACO
S
, BACOSP
[List Mode]
[Operations involved when X20 to X33 designates value of 0.4753]
: Number of the device where data of which the COS
-1
(inverse cosine) value is obtained is stored (BCD 4 digits)
: Head number of the devices where the operation result will be stored (BCD 4 digits)
F
unct
i
on
(1) Returns the COS
-1
(inverse cosine) value of the value designated by , and stores operation results at device
designated by .
(2) A sign for the operation data is set at .
If the operation data is a positive value, this is set at "0", and if it is a negative value, it is set at "1".
(3) The part before the decimal point and fraction part are stored at +1 and +2 respectively, as BCD values.
(Settings can be between 0 and 1.0000.)
(4) The operation results stored at will be a BCD value in the range of between 0 and 180° (degree units).
(5) Calculation results are a value from which the decimal fraction part has been rounded.
7.12.33 BACOS, BACOSP
BCD type arc cosine operation
7.12.33
BACOS, BACOSP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
––
––
Step
I
nstruct
i
on
De
vi
ce
BCD
v
a
l
ue
D0
T
ransfer
MOV
D1
T
ransfer
MOV
D2
BCD
v
a
l
ue
0
0
0
0
BCD
v
a
l
ue
0
0
0
0
BCD
v
a
l
ue
3
5
7
4
X20
BCD
v
a
l
ue
3
5
7
4
X2
F
X30
BCD
v
a
l
ue
X33
X0
O
FF
0
BAS
IN
operat
i
on
8
2
0
0
BAS
IN
Y4
0
Y4F
Process
High
performance
Redundant Universal
LCPU
Bas
i
c
BACOS
Command
Command
BACOSP
BACOSP
BACOS
S
D
S
D
S
D
S
D
S
D
COS
+2
Integer part
Decimal fraction part
.
Sign
+1
)
(
D
S
S
S
1
S
S
S
D