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 #687 background imageLoading...
Page #687 background image
7-313
BTAN(P)
1
2
3
4
6
6
7
8
7.12 Special function instructions
7.12.31 BCD type TAN operation (BTAN(P))
Program Example
(1) The following program calculates the tangent of the data stored in the 3 BCD digits from X20
to X2B, and stores the integer part of the results in the 4 BCD digits from Y50 to Y53, and
the decimal fraction part in the 4 BCD digits from Y40 to Y4F.
Y60 is turned ON if the results of the operation are negative.
[Ladder Mode]
[List Mode]
[Operations involved when X20 to X2B designate a value of 390]
1
2
3
4
5
Processes so that the input
angle is within 360° ( )
Step Instruction Device
X2B
BCD value
390
X20
B/ operation
B/
BTAN
operation
BTAN
OUT
D10
BCD value
(quotient)
0001
D11
BCD value
(remainder)
0030
D20
Transfer
MOV
D21
Transfer
MOV
D22
BCD value
0000
BCD value
0000
BCD value
5774
Y4F
BCD value
5774
Y40
Y53
BCD value
0
Y50
Y60 OFF
1
2
3
4
5

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