EasyManuals Logo

Mitsubishi MELSEC Q Series Programming Manual

Mitsubishi MELSEC Q Series
1296 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #693 background imageLoading...
Page #693 background image
7-319
BATAN(P)
1
2
3
4
6
6
7
8
7.12 Special function instructions
7.12.34 BCD type TAN -1 operations (BATAN(P))
Program Example
(1) The following program performs a TAN-1 operation on the sign (positive when X0 is OFF,
and negative when X0 is ON), the BCD 4-digit integer part from X20 to X2F and the BCD
4-digit decimal fraction part from X30 to X3F, and outputs the calculated angle in 4 BCD
digits from Y40 to Y4F.
[Ladder Mode]
[List Mode]
[Operations involved when X0 and X20 to X2F designate a value of 1.2654]
Sets the sign of a TAN value ( )
Sets the integer part of a TAN value ( )
Sets the decimal fraction part of a TAN value ( )
Executes TAN
-1
operation and outputs
the result of operation to Y40 to Y4F ( )
1
2
3
4
Step Instruction Device
BCD value
D0
Transfer
MOV
D1
Transfer
MOV
D2
BCD value
0000
BCD value
1000
BCD value
4
5
62
X30
BCD value
4
5
62
X3F
X0 OFF
BATAN operation
Y40
2500
Y4F
BATAN
X20
BCD value
1000
X2F
1
2
3
4

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals