Handling of Numerical Value

3.21 Handling of Numerical Value

The built-in PLC function has instructions that handle numerical values indicated in 16 bits.

The most significant bit of the 16 bits is used to judge whether the value is positive or negative. Therefore, the numerical values that can be handled as 16 bits are as follows.

16 bits: -32768 to 32767

POINT

Numerical value setting method 1) Decimal number

10 is stored into D10 in BIN.

-10 is stored into D10 in BIN.

2) Hexadecimal number

10 is stored into D10 in hexadecimal.

The decimal notation and hexadecimal notation correspond as indicated below.

Decimal Notation

Hexadecimal Notation

32767

H7FFF

to

to

5

H0005

4

H0004

3

H0003

2

H0002

1

H0001

0

H0000

-1

HFFFF

-2

HFFFE

-3

HFFFD

-4

HFFFC

-5

HFFFB

to

to

-32768

H8000

SEQUENCE PROGRAMMING

3

101

Page 106
Image 106
Mitsubishi Electronics FR-A700, 700 Series Handling of Numerical Value, Numerical value setting method 1 Decimal number