3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
3.9 Numeric Values which can be Used in Sequence Programs
3.9.3 BCD (Binary Coded Decimal)
3 - 85
1
Overview
2
Performance
Specification
3
Sequence Program
Configuration and
Execution Conditions
4
I/O Nunber Assignment
5
Memories and Files
Handled by CPU Module
6
Functions
7
Communication using
built-in Ethernet ports of
CPU module
8
Communication with
Intelligent Function
Module
3.9.3 BCD (Binary Coded Decimal)
(1) BCD notation
BCD (binary coded decimal) is a numbering system in which one digit of DEC
(decimal) is expressed in BIN (binary).
Though it uses 4-bit representation like hexadecimal notation, it dose not use letters
A
H to FH.
Table3.11 shows the numeric expressions of BIN, BCD and DEC.
(2) BCD numeric expression
CPU module 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.
Table3.11 Comparison of BIN, BCD, and DEC Numeric Expressions
DEC (Decimal) BIN (Binary)
BCD
(Binary Coded Decimal)
0 0000 0
1 0001 1
2 0010 10
3 0011 11
4 0100 100
5 0101 101
60110 110
70111 111
8 1000 1000
9 1001 1001
10 1010 1 0000
11 1011 1 0001
12 1100 1 0010
Carry