Mitsubishi MELSEC-Q/L Programming Manual page 544

Table of Contents

Advertisement

BSIN, BSINP
[List Mode]
Step
Instruction
[Operation]
1325
1 3 2 5
H
MOV
BCD value
(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]
Step
Instruction
[Operation]
1
7 4 6 2
74625813
DMOV
BCD value
7.12.29 BSIN, BSINP
BCD type SIN operation
7.12.29
BSIN, BSINP
BSIN
BSINP
: Data of which the SIN (sine) value is obtained or the number of the device where the data is stored (BCD 4 digits)
S
: Head number of the devices where the operation result will be stored (BCD 4 digits)
D
Setting
Internal Devices
Data
Bit
Word
S
––
D
542
Device
D0
D1
BSQR operation
0 0 3 6
BSQR
BCD value
D2
4 0 0 5
BCD value
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 (
Device
D1
D0
BDSQR operation
2
5 8 1 3
BDSQR
BCD value
Command
Command
J
\
R, ZR
Bit
Transfer
Y5F
Y50
0 0 3 6
Integer part
MOV
BCD value
Transfer
Y4F
Y40
4 0 0 5
Decimal fraction part
MOV
BCD value
)
1
)
2
)
3
D2
Transfer
Y5F
Y50
3
8 6 3 8
8 6 3 8
BCD value
MOV
BCD value
D3
Transfer
4
Y4F
Y40
6 2 3 3
6 2 3 3
BCD value
MOV
BCD value
High
Basic
performance
BSIN
BSINP
U
\G
Word
––
)
4
Integer part
Decimal fraction part
Process
LCPU
Redundant Universal
S
D
S
D
Constants
Zn
Other
K, H
––
––

Advertisement

Table of Contents
loading

Table of Contents