Conversion From Bcd 4-Digit And 8-Digit Data To Bin Data (Bin(P), Dbin(P)) - Mitsubishi MELSEC QS Series Programming Manual

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

BIN(P), DBIN(P)
6.3.2
Conversion from BCD 4-digit and 8-digit data to BIN data
(BIN(P), DBIN(P))
BIN(P), DBIN(P)
BIN, DBIN
BINP, DBINP
Function
BIN
(1) Converts BCD data (0 to 9999) at device designated by
device designated by
DBIN
(1) Converts BCD data (0 to 99999999) at device designated by
the device designated by
BCD 99999999 1
S
D
BIN 99999999
6-24
6.3 Data Conversion Instructions

6.3.2 Conversion from BCD 4-digit and 8-digit data to BIN data (BIN(P), DBIN(P))

Command
Command
: BCD data or start number of the devices where the BCD data is stored (BCD 4/8 digits)
D
: Start number of the devices where BIN data will be stored (BIN 16/32 bits)
Internal Devices
Set
Data
Bit
Word
D
.
D
8000
4000
2000
1000
S
BCD 9999
1
0
0
1
Thousands digit
32768
16384
8192
4096
2048
BIN 9999
0
0
1
0
D
Always filled with 0.
.
D
S
+1
0
0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
Ten millions
Millions
Hundred
digit
digit
thousands
digit
D
+1
0
0
0 0 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1
Always filled with 0.
Constants
Others
K, H
––
––
––
800
400
200
100
80
40
20
10
1
0
0
1
1
0
0
Hundreds digit
Tens digit
BIN conversion
1024
512
256
128
64
32
16
0
1
1
1
0
0
0
Ten thousands
Thousands
Hundreds
digit
digit
digit
BIN conversion
indicates "BIN / DBIN".
S
D
P
S
D
to BIN data, and stores at the
8
4
2
1
1
1
0
0
1
Ones digit
8
4
2
1
0
1
1
1
1
to BIN data, and stores at
S
Ones
Tens
digit
digit
D

Advertisement

Table of Contents
loading

Table of Contents