Appendix 1 Numeric System & Data Structure
XBC E-Type Main Unit
Appendix 1-1
Ver. 1
Appendix 1 Number Systems & Data Structure
1) Expression of number (data)
In PLC CPU, all information is saved and processed in the states of On & Off, or “1” & “0”. Numeric
operation is also processed in 1 and 0, which are called Binary numbers (BIN).
Since decimal is easy and most widely used, numeric information to write or read through
PLC needs to be converted from decimal to other number systems and vice-versa. This appendix shows how to
Better understand decimal (DEC), binary (BIN), hexadecimal (HEX), and binary coded decimal (BCD).
(1) Decimal
Decimal is a Base 10 number system meaning that it uses 10 digits before needing to repeat them: 0, 1, 2, 3, 4,
…..9. “10” will be 2 figures.
For example, decimal 153 will be expressed as shown below in the aspect of row and “value weighted of row”
135=100+50+3
=1*100+5*10+3*1
=1*10 +5*10 +3*10
2
1
0
10진수의 기호(0~9)
행의 가중치
(2) Binary (Bin)
Binary is a Base 2 number system, meaning that it uses 2 digits before needing to repeat them: 0 and 1. In this
system, the value of 2 will be two figures. Therefore in binary, “2” is represented as “10”. A single digit in Binary is
known as a “Bit”.
Binary
Decimal
0
1
10
11
100
101
110
111
1000
……
0
1
2
3
4
5
6
7
8
……
Signs decimal (0~9)
Value weighted of row
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...