Bcd Type Tan Operation (Btan(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

BTAN(P)
7.12.31

BCD type TAN operation (BTAN(P))

BTAN(P)
BTAN
BTANP
Setting
Data
S
D
Function
(1) Calculates TAN (tangent) value for value (angle) designated by
the operation result in the word device designated by
word device designated by
(2) The value designated at
(in units of degrees).
(3) The sign for the operation result stored in
"1" if the result is a negative value.
(4) The operation results stored at
57.2901 and 57.2902.
(5) Operation results are rounded off from the fifth decimal place.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The data designated by
• The data designated by
• The data designated by
• The device specified by
(For the Universal model QCPU, LCPU.)
7-312
Command
Command
: Data of which the TAN (tangent) value is obtained or head number of the devices where the data is stored
S
(BCD 4 digits)
: Head number of the devices where the operation result will be stored (BCD 4 digits)
D
Internal Devices
R, ZR
Bit
Word
––
+1 and
D
D
TAN
S
Sign
Integer part
is a BCD value which can be between 0 and 360 degrees
S
+1 and
D
is not a BCD value.
S
is not in the range of from 0 to 360.
S
°
is 90
or 270
S
exceeds the range of the corresponding device.
D
High
Basic
performance
BTAN
BTANP
J
\
U
\G
Bit
Word
––
, and the operation result in the
D
+2.
D
D
+1
D
+2
Decimal fraction part
.
will be "0" if the result is a positive value, and
D
+2 are BCD values within the range of from
D
°
.
Process
Redundant Universal
LCPU
S
D
S
D
Constants
Zn
Other
K, H
––
––
, and stores the sign for
S
(Error code: 4100)
(Error code: 4100)
(Error code: 4100)
(Error code: 4101)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents