Mitsubishi Electronics FR-A700, 700 Series specifications DEC Decimal Code BIN Binary Code

Models: FR-A700 700 Series

1 183
Download 183 pages 30.92 Kb
Page 78
Image 78

Numerical Values Usable in Sequence Program

3.8.1BIN (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)

BIN (Binary Code)

 

 

 

 

 

0

0000

 

 

 

 

 

1

0001

 

 

 

 

Carry

 

 

 

 

2

0010

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

0011

 

 

 

 

Carry

 

 

 

 

4

0100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

0101

 

 

 

 

 

6

0110

 

 

 

 

 

7

0111

 

 

 

 

Carry

 

 

 

 

8

1000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

9

1001

 

 

 

 

 

10

1010

 

 

 

 

 

11

1011

 

 

 

 

 

(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 2n value.

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.

 

 

Most significant bit (for judgment of positive/negative)

Bit name

 

b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

 

SEQUENCE PROGRAMMING

215

214

213

212

211

210

29

28

27

26

25

24

23

22

21

20

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

Decimal value -32768 16384 8192 4096 2048 1024 512 256 128

64

32

16

8

4

2

1

Value is negative if most significant bit is 1.

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

3

73

Page 78
Image 78
Mitsubishi Electronics FR-A700, 700 Series specifications DEC Decimal Code BIN Binary Code