Bin (Binary Code) - Mitsubishi Electric 700 Series Programming Manual

700 series plc function programming manual
Hide thumbs Also See for 700 Series:
Table of Contents

Advertisement

3.8.1

BIN (Binary Code)

(1) Binary code
BIN is a numerical value represented by 0s (OFF) and 1s (ON).
In the decimal code, a number is incremented from 0 to 9, and at this point, a
carry occurs and the number is incremented to 10.
In BIN, 0, 1 are followed by a carry, and the number is incremented to 10 (2 in
decimal).
Table 2.2 indicates the numerical representations of BIN and decimal code.
Table 3.2 Differences between Numerical
Representations of BIN and Decimal Code
DEC (Decimal Code)
(2) Numerical representation of BIN
1) Each register (e.g. data register) of the built-in PLC function consist of 16 bits.
Each bit of the register is assigned a 2
However, the most significant bit is used to judge whether the value is positive
or negative.
• Most significant bit is 0 ..... Positive
• Most significant bit is 1 ..... Negative
The numerical representation of each register of the built-in PLC function is
shown in Fig. 2.8.
Bit name
Decimal value
-32768
Fig 3.9 Numerical Representation of Each Register of Built-in PLC Function
2) Numerical data usable with the built-in PLC function
In the numerical representation shown in Fig. 2.8, values can be represented in
BIN (Binary Code)
0
1
2
3
4
5
6
7
8
9
10
11
Most significant bit (for judgment of positive/negative)
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
2
2
2
2
2
2
15
14
13
12
11
16384 8192 4096 2048 1024
Value is negative if most significant bit is 1.
Numerical Values Usable in Sequence Program
0000
0001
Carry
0010
0011
Carry
0100
0101
0110
0111
Carry
1000
1001
1010
1011
n
value.
2
2
2
2
2
10
9
8
7
6
5
512 256 128 64
32
2
2
2
2
2
4
3
2
1
0
16
8
4
2
1
3
73

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr-a700

Table of Contents