Bcd (Binary Coded Decimal) - Mitsubishi QCPU (Q Mode) User Manual

Table of Contents

Advertisement

4 SEQUENCE PROGRAM CONFIGURATION AND EXECUTION
CONDITIONS

4.8.3 BCD (Binary Coded Decimal)

4 - 48
(1) BCD notation
BCD notation is binary expression with a carry similar to that of the decimal
notation.
Though it uses 4-bit representation like hexadecimal notation, it dose not use
letters A to F.
Table 4.4 gives numeric expressions by binary, BCD, and decimal notations.
Table 4.4 Comparison of BIN, BCD, and DEC Numeric Expressions
DEC (Decimal)
0
1
2
3
4
5
6
7
8
9
10
11
12
(2) BCD numeric expression
High Performance model QCPU registers (data registers, link registers, etc.)
consist of 16 bits.
Therefore, the numeric values expressed in BCD notation can be stored in each
register within 0 to 9999 range.
BIN (Binary)
(Binary Coded Decimal)
0
1
10
11
100
101
110
111
1000
1001
1010
1011
1100
MELSEC-Q
BCD
0
1
10
11
100
101
110
111
1000
1001
Carry
1 0000
1 0001
1 0010
4 - 48

Advertisement

Table of Contents
loading

Table of Contents