Mitsubishi Electric M800VW Series Programming Manual page 442

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
BATAN, BATANP: BCD type TAN
Setting
Bit devices
data
X
Y
M
L
F
S
D
[Instruction symbol] [Execution condition]
BATAN
BATANP
 Setting data
Setting data
Data for which the TAN
S
device where data is stored.
D
The first number of the device to store the operation result.
 Functions
BATAN
-1
 Returns the TAN
(arctangent) value of the value designated by (S) and stores the operation result (angle) in the device
designated by (D).
S
- 1
TAN
(
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 9999.9999 can be set.)
 The operation result stored in (D) are BCD values within the ranges of 0 to 90 degrees and 270 to 360 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
(arctangent) 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
421
Digit
Pointer
designa-
Index
tion
-
P
indicates the sign "BATAN".
S
D
P
S
D
Data type
BCD 4-digit
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents