3 data types, 1 ) list of data types, Important – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 58

Advertising
background image

4.4 Registers (Variables)

4.4.3 Data Types

4-17

Programming

4

4.4.3 Data Types

( 1 ) List of Data Types

There are various data types that you can use depending on the purpose of the application: bit, integer, double-length
integer, real number, and address.

The MP3000-series Machine Controllers do not have separate registers for each data type. As shown in the fol-
lowing figure, the same address will access the same register even if the data type is different.
For example, MB001003, a bit address, and the MW00100, an integer address, have different data types, but
they both access the same register, MW00100.

Symbol

Data Type

Range of Values

Remarks

B

Bit

1 (ON) or 0 (OFF)

Used in relay circuits and to determine ON/OFF status.

W

Integer

-32,768 to 32,767 (8000 to 7FFF hex)

Used for numeric operations. The values in parentheses on
the left are for logical operations.

L

Double-length
integer

-2,147,483,648 to 2,147,483,647
(80000000 to 7FFFFFFF hex)

Used for numeric operations. The values in parentheses on
the left are for logical operations.

F

Single-preci-
sion real number ±

(1.175E-38 to 3.402E+38) or 0

Used for numeric operations.

A

Address

0 to 32,767

Used only as pointers for addressing.

IMPORTANT

MW00100

MW00101

MW00102

MW00103

ML00100
MF00100

ML00102
MF00102

0

1

2

3

4

5

6

7

8

9

A

B

C

D

E

F

MA00101

Integer data type

Double-length integer or

real number data type

MB001003

[MB00103B]

Bit data type

Address data type

Bit data type

The addressed register (00102) and the
following register (00103) are combined
as a 2-word area. Therefore the register
addresses are specified at intervals of 2.

An extra digit that specifies the bit (3) is appended
to the end of the register address (00100).

One word is allocated for each register address.

A continuous data area is addressed,
with the specified register address
(00101) as the first address.

Data Types and Register Designations

Advertising
This manual is related to the following products: