Data Used In Sequence Programs - Mitsubishi Electric melsec q00ujcpu User Manual

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

2.4 Data Used in Sequence Programs

The CPU module represents numeric and alphabetic data using two symbols (states): 0 (off) and 1 (on).
Data represented using these two symbols is called binary number (BIN).
The CPU module can also use hexadecimal (HEX) (each hexadecimal digit represents four binary bits), binary-coded
decimal (BCD), or real numbers.
shows the numeric representations of BIN, HEX, BCD, and DEC (decimal).
Table2.2
DEC (Decimal)
0
1
2
3
9
10
11
12
13
14
15
16
17
47
32766
32767
-32768
-32767
-2
-1
2 - 32
Table2.2 Numeric representations of BIN, HEX,BCD,and DEC
HEX (Hexadecimal)
0
1
2
3
9
A
B
C
D
E
F
10
11
2F
7FFE
7FFF
8000
8001
FFFE
FFFF
BIN (Binary)
10
1001
1010
1011
1100
1101
1110
1111
1
0000
1
0001
10
1111
0111
1111
1111
1110
0111
1111
1111
1111
1000
0000
0000
0000
1000
0000
0000
0001
1111
1111
1111
1110
1111
1111
1111
1111
BCD (Binary-coded decimal)
0
1
11
1
1
1
1
1
1
1
1
100
-
-
1000
0000
0000
1000
0000
0000
-
-
0
1
10
11
1001
0000
0001
0010
0011
0100
0101
0110
0111
0111
0000
0001

Advertisement

Table of Contents
loading

Table of Contents