Conversion From Bcd 4-Digit Data To Bin Data; Conversion From Bcd 8-Digit Data To Bin Data - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

6.3.2
BIN, BINP

Conversion from BCD 4-digit data to BIN data

6.3.2
DBIN, DBINP

Conversion from BCD 8-digit data to BIN data

BIN, BINP, DBIN, DBINP
BIN, DBIN
BINP, DBINP
: BCD data or head number of the devices where the BCD data is stored (BCD 4/8 digits)
S
: Head number of the devices where BIN data will be stored (BIN 16/32 bits)
D
Internal Devices
Setting
Data
Bit
Word
S
D
Function
BIN
Converts BCD data (0 to 9999) at device designated by
DBIN
Converts BCD data (0 to 99999999) at device designated by
S
BCD 99999999
D
BIN 99999999
Command
Command
J
R, ZR
Bit
S
8000
4000
2000
1000
800
S
BCD 9999
1
0
0
1
1
Thousands digits Hundreds digits
32768
16384
8192
4096
2048
D
BIN 9999
0
0
1
0
0
Always filled with 0s.
S
+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 1 0 0 1
Ten
Millions
Hundred
millions
digits
thousands
digits
digits
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 0s.
Basic
indicates an instruction symbol of
P
\
U
\G
Word
to BIN data, and stores at the device designated by
400
200
100
80
40
20
10
8
0
0
1
1
0
0
1
1
Tens digits
BIN conversion
1024
512
256
128
64
32
16
8
1
1
1
0
0
0
0
1
to BIN data, and stores at the device designated by
S
S
Ten
Thousands
Hundreds
thousands
digits
digits
digits
BIN conversion
D
BIN, BINP, DBIN, DBINP
High
Process
Redundant Universal
performance
BIN/DBIN.
S
D
S
D
Constants
Zn
K, H
––
.
D
4
2
1
0
0
1
Ones digits
4
2
1
1
1
1
Tens
Ones
digits
digits
LCPU
1
2
3
4
Other
––
––
6
7
8
.
D
233

Advertisement

Table of Contents
loading

Table of Contents