EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 650

Mitsubishi Electric MELSEC-Q/L
1084 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
Loading...
648
7 APPLICATION INSTRUCTIONS
7.12 Special Function Instructions
Program example
The following program calculates the square root of BCD value 1325 and outputs the integer part to the 4 BCD digits from
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 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
BSQR operation
BSQR
D1
BCD value
0
0 3 6
D2
BCD value
4
005
D0
BCD value
1
325
MOV
1325
H
Y5F
BCD value
0
0 3 6
Y50
Y4F
BCD value
4
005
Y40
Transfer
MOV
MOV
Transfer
Integer part
Decimal fraction part

Table of Contents

Related product manuals