551
BATAN, BATANP
1
2
3
4
4
6
7
8
7.12
Special function
instructions
7.12.3
4
BATAN, BATANP
[Operations involved if X0 and X20 to X33 designate a value of 0.7650]
: Number of the device where data of which the TAN
-1
(inverse tangent) 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) Performs TAN
-1
(inverse tangent) on value designated by and stores operation results (angles) 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.
(Values from 0 to 9999.9999 can be set.)
(4) Operation results stored at are BCD values between 0 and 90 degrees, and 270 and 360 degrees (degree units).
(5) Calculation results are a value from which the decimal fraction part has been rounded.
Operat
i
on
E
rror
(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.
7.12.34 BATAN, BATANP
BCD type arc tangent operations
7.12.34
BATAN, BATANP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
––
––
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The operation data specified in is not a BCD value.
––
4101
The points of the device specified in exceed those of the
corresponding device.
––
––
––
––
BCD
v
a
l
ue
D0
T
ransfer
MOV
D1
T
ransfer
MOV
D2
BCD
v
a
l
ue
1
0
0
0
BCD
v
a
l
ue
0
0
0
0
BCD
v
a
l
ue
0
5
6
7
BCD
v
a
l
ue
0
5
6
7
X30
BCD
v
a
l
ue
X33
X0
O
N
0
BACOS
operat
i
on
0
4
1
0
BACOS
4
1
2
3
X20
X2
F
Y4
0
Y4F
Process
High
performance
Redundant Universal
LCPU
Bas
i
c
BATAN
Command
Command
BA
T
A
N
P
BATANP
BA
T
A
N
S
D
S
D
S
D
S
D
S
D
TAN
+2
Integer part
Decimal fraction part
.
Sign
+1
)
(
D
S
S
S
1
S
S
S
D
S
S