Mitsubishi MELSEC-Q/L Programming Manual page 551

Table of Contents

Advertisement

[List Mode]
Step
Instruction
[Operations involved when X20 to X33 designates value of 0.4753]
X0 OFF
Transfer
X33
X30
0
BCD value
MOV
Transfer
X2F
X20
4
7
5
3
BCD value
MOV
7.12.33 BACOS, BACOSP
BCD type arc cosine operation
7.12.33
BACOS, BACOSP
BACOS
BACOSP
: Number of the device where data of which the COS
S
: Head number of the devices where the operation result will be stored (BCD 4 digits)
D
Internal Devices
Setting
Data
Bit
Word
––
S
D
Function
-1
(1) Returns the COS
(inverse cosine) value of the value designated by
designated by
.
D
(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
(Settings can be between 0 and 1.0000.)
(4) The operation results stored at
(5) Calculation results are a value from which the decimal fraction part has been rounded.
Device
D0
0
0
0
0
BCD value
D1
Y4F
BASIN operation
0
0
0
0
0
BCD value
BASIN
BCD value
D2
4
7
5
3
BCD value
Command
Command
-1
(inverse cosine) value is obtained is stored (BCD 4 digits)
J
\
R, ZR
Bit
S
S
+1
1
COS
(
Sign
Integer part
.
S
will be a BCD value in the range of between 0 and 180° (degree units).
D
Y40
0
2
8
High
Basic
performance
BACOS
S
BACOSP
S
U
\G
Word
––
, and stores operation results at device
S
S
+2
Decimal fraction part
)
.
+1 and
+2 respectively, as BCD values.
S
S
BACOS, BACOSP
Process
LCPU
Redundant Universal
D
D
Zn
Constants
Other
––
––
D
1
2
3
4
4
6
7
8
549

Advertisement

Table of Contents
loading

Table of Contents