Bin (Binary Code) - Mitsubishi Q00JCPU User Manual

Q series, logic
Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS

3.9.1 BIN (Binary Code)

(1) Binary code
Binary date is represented by 0 (OFF) and 1 (ON).
Decimal notation uses the numerals 0 through 9. When counting beyond 9, a 1 is
placed in the 10s column and a 0 is placed in the 1s column to make the number 10.
In binary notation, the numerals 0 and 1 are used. A carry occurs after 1 and the
number becomes 10 (decimal 2).
Table3.9 shows the numerical notation by BIN and DEC.
(2) Binary numeric expression
(a) Bit configuration in BIN notation used in CPU module
(b) Numeric data available for CPU module
POINT
Table3.9 Comparison between Binary and Decimal Notations
DEC (Decimal)
0
1
2
3
4
5
6
7
8
9
10
11
Each CPU module register (data registers, link registers, etc.) consists of 16 bits.
Each CPU module register can store numeric values of -32768 to 32767.
The following shows the numeric notation for CPU module registers.
Bit name
b15
b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
15
2
2
Decimal value
-32768
16384
Diagram 3.66 Numeric Expressions for CPU module Registers
To each bit of each register, a 2
Note that since the most significant bit is used for discrimination of sign between
positive and negative, it is not available for an unsigned (no sign) binary number.
1) When most significant bit is "0"...Positive
2) When most significant bit is "1"...Negative
3.9 Numeric Values which can be Used in Sequence Programs
BIN (Binary)
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
Most significant bit (for positive/negative discrimination)
14
13
12
11
10
9
8
7
2
2
2
2
2
2
2
8192
4096 2048 1024 512 256 128
Negative value" when most significant bit is "1".
n
value is assigned.
3.9.1 BIN (Binary Code)
Carry
Carry
Carry
6
5
4
3
2
1
0
2
2
2
2
2
2
2
64
32
16
8
4
2
1
3
- 76
1
2
3
4
5
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents