EasyManuals Logo

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 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 #544 background imageLoading...
Page #544 background image
542
BSIN, BSINP
[List Mode]
[Operation]
(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]
: Data of which the SIN (sine) value is obtained or the number of the device where the data is stored (BCD 4 digits)
: Head number of the devices where the operation result will be stored (BCD 4 digits)
7.12.29 BSIN, BSINP BCD type SIN operation
7.12.29
BSIN, BSINP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
–– –– ––
Step Instruction Device
BSQR operation
BSQR
D1
BCD value
0
036
D2
BCD value
4
005
D0
BCD value
1
325
MOV
1325
H
Y5F
BCD value
0
036
Y50
Y4F
BCD value
4
005
Y40
Transfer
MOV
MOV
Transfer
Integer part
Decimal fraction par
t
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
Process
High
performance
Redundant
Universal
LCPU
Basic
Command
Command
BSINP
BSIN
BSINP
BSIN
S
D
S D
S
D
S
D

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals