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 #681 background imageLoading...
Page #681 background image
7-307
BSQR(P),BDSQR(P)
1
2
3
4
6
6
7
8
7.12 Special function instructions
7.12.28 BCD 4-digit and 8-digit square roots (BSQR(P),BDSQR(P))
(2) The following program calculates the square root of BCD value 74625813 and outputs the
integer part of the result to the 4 BCD digits at Y50 to Y5F, and the decimal fraction part to
the 4 BCD digits from Y40 to Y4F.
[Ladder Mode]
[List Mode]
[Operation]
Sets the data (BCD value) used
for square root operation ( )
Executes square root operation ( )
Outputs the integer part of the
operation result to a display device ( )
Outputs the decimal fraction part of
the operation result to a display device ( )
1
2
3
4
Step Instruction Device
BDSQR operation
BDSQR
D2
BCD value
8638
D3
BCD value
6233
D0
BCD value
5813
D1
7462
DMOV
BCD value
74625813
Y5F
BCD value
8638
Y50
Y4F
BCD value
6233
Y40
Transfer
MOV
Transfer
MOV
Integer part
Decimal fraction part
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