Bcd (Binary Coded Decimal) - Mitsubishi Electric MELSEC-Q Series User Manual

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

4 SEQUENCE PROGRAM CONFIGURATION & EXECUTION
CONDITIONS

4.8.3 BCD (Binary Coded Decimal)

4 - 24
(1) BCD notation
BCD numeric expressions are binary expressions with a carry format identical to
that of the decimal system.
As with the hexadecimal system, BCD expressions are the equivalent of 4 binary
bits, although the BCD system does not use the A to F alphabetic characters.
A comparison of binary, BCD, and decimal numeric expressions is shown in
Table 4.4 below.
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
Basic model QCPU registers (data registers, link registers, etc.) consist of 16
bits.
Therefore, as expressed in BCD code, the range of numeric values to be stored
is 0 to 9999.
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 - 24

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qcpuMelsec q00jcpuMelsec q00cpuMelsec q01cpu

Table of Contents