Mitsubishi Electric M800VW Series Programming Manual page 440

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.11 Special Function Instructions
BACOS, BACOSP: BCD type COS
Setting
Bit devices
data
X
Y
M
L
F
S
D
[Instruction symbol] [Execution condition]
BACOS
BACOSP
 Setting data
Setting data
Data for which the COS
S
device where data is stored.
D
The first number of the device to store the operation result.
 Functions
BACOS
-1
 Returns the COS
(arccosine) value of the value designated by (S) and stores the operation result (angle) in the device
designated by (D).
S
- 1
COS
(
Sign
Integer part
 The sign of the operation data is set to (S). If the operation data is a positive value, (S) is set to "0", and if the operation data
is a negative value, (S) is set to "1".
 The integer part and decimal fraction part of the operation data are stored as their respective BCD values in (S+1) and
(S+2). (A value from 0 to 1.0000 can be set.)
 The operation result stored in (D) are BCD values within the range of 0 to 180 degrees (units of degrees).
 The operation result rounds off the decimal fraction part.
-1
operation
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
-1
(arccosine) value is obtained or the first number of the
S+1
S+2
Decimal
=
)
D
.
fraction part
Con-
Word devices
stant
D
R/ZR W SW SD
Z
419
Digit
Pointer
designa-
Index
tion
-
P
indicates the sign "BACOS".
S
D
P
S
D
Data type
BCD 4-digit
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents