Bin (Binary Code) - Mitsubishi MELSEC QS Series User Manual

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

3
SEQUENCE PROGRAM EXECUTION

3.7.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.4 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.4 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.
Diagram 3.11 shows the numeric notation for CPU module registers.
b15
b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Bit name
15
2
2
Decimal value
-32768
16384
Diagram 3.11 Numeric Expressions for CPU module Registers
To each bit of each register, a 2
Note that the most significant bit is used for distinction of sign (positive or
negative).
1) When most significant bit is "0"...Positive
2) When most significant bit is "1"...Negative
3.7 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
2
13
2
12
2
11
2
10
2
9
2
8
2
7
8192
4096 2048 1024 512 256 128
Negative value" when most significant bit is "1".
n
value is assigned.
3.7.1 BIN (Binary Code)
Carry
Carry
Carry
2
6
2
5
2
4
2
3
2
2
2
1
2
0
64
32
16
8
4
2
1
3
- 16
1
2
3
4
5
6
7
8

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qs001cpu

Table of Contents