beautypg.com

2 data types – Yaskawa MP940 User Manual

Page 82

background image

3.6 Registers

3-35

3

3.6.2 Data Types

There are five data types: Bit, integer, double integer, real number, and address. Use them as
required. Address data is used only for pointer designations inside functions. For details,
refer to the MP9

††

Machine Controller User’s Manual Ladder Programming (SIEZ-

C887-1.2). The following table shows the data types and their numeric ranges.

Table 3.12 Data Types and Numeric Range

X X X X X X X X

Symbol Designation

Symbol:[Symbol Name]

[.]

[Subscript]

Can designate the subscript i or j.

Required if a subscript is to be used

(symbol name and subscript delimiter)

(Name given to the register, 8 characters or less)

Alphanumeric characters or symbols

Alphabetic character or symbol (A numeral

cannot be designated at the beginning of a

symbol name.)

Type

Data

Type

Numeric Range

Remarks

B

Bit

ON, OFF

Used in relay circuits.

W

Integer

-32768 to +32767
(8000H)

(7FFFH)

Used in numeric operations. The
values in parentheses ( ) are used
in logic operations.

L

Double
integer

-2147483648 to +2147483647
(80000000H)

(7FFFFFFFH)

Used in numeric operations. The
values in parentheses ( ) are used
in logic operations.

F

Real num-
ber

±(1.175E-38 to 3.402E+38), 0

Used in numeric operations.

A

Address

0 to 32767

Used only for pointer designa-
tions.

[ ML00100 ]
[ MF00100 ]

[ ML00102 ]
[ MF00102 ]

[ MB00103A ]

[ MB001006 ]

[ MW00100 ]

[ MW00103]

[ MW00102 ]

[ MW00101 ]

F E D C B A 9 8 7 6 5 4 3 2 1 0

Register Designations and Data Types