Mitsubishi Electric MELSEC iQ-F Series Training Manual page 93

Fx5u
Hide thumbs Also See for MELSEC iQ-F Series:
Table of Contents

Advertisement

Binary (BIN)
• A binary value consists of two symbols, 0 and 1, which represent the order and size (amount). After a digit reaches 1, an
increment resets it to 0, causing an increment of the next digit to the left. One digit of 0 or 1 is called a bit.
Binary
0
1
10
11
100
101
110
111
1000
• The following example describes how to convert a binary value into a decimal value.
"10011101"
The following figure shows the binary value with bit numbers and binary bit weights.
The binary value is broken as follows.
= 1 × 128 + 0 × 64 + 0 × 32 + 1 × 16 + 1 × 8 + 1 × 4 + 0 × 2 + 1 × 1
= 128 + 16 + 8 + 4 + 1
= 157
A binary value can be converted into a decimal value by the addition of the weight of each bit whose code is 1.
5 BASIC INSTRUCTIONS -PART 2-
5 - 2
5.1 Notation of Values (Data)
Decimal
0
1
2
3
4
5
6
7
8
7
6
5
4
1
0
0
1
2
2
2
2
7
6
5
4
128
64
32
16
3
2
1
0
← Bit number
1
1
0
1
← Binary
← (Bit number)
2
2
2
2
3
2
1
0
← ("Binary")
8
4
2
1
Bit weight

Advertisement

Table of Contents
loading

Table of Contents