6.4 Registers
6-25
6
6.4.3 Data Types
There are five data types: Bit, integer, double-length integer, real number, and address. Use them as required.
Address data is used only for pointer designations inside functions. The following table shows the data types.
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 parenthe-
ses ( ) are used in logic operations.
L
Double-length
integer
−
2147483648 to +2147483647
(
80000000H
)
(
7FFFFFFFH
)
Used in numeric operations. The values in parenthe-
ses ( ) are used in logic operations.
F
Real number
±
(1.175E-38 to 3.402E+38), 0
Used in numeric operations.
A
Address
0 to 32767
Used only for pointer designations.
[ MW00100 ]
[ MW00103 ]
[ MW00102 ]
[ MW00101 ]
[ ML00100 ]
[ MF00100 ]
[ ML00102 ]
[ MF00102 ]
[ MB00103A ]
[ MB001006 ]
F E D C B A 9 8 7 6 5 4 3 2 1 0
Register Designations and Data Types
Integar
Bit
Bit
Double-length
integar,
Real number
・
・
・
[ MB001003 ]
[ MF00100 ]
[ ML00100 ]
[ MW00101 ]
[ MW00103 ]
[ MW00102 ]
[ MW00100 ]
[ MA00100 ]
メモリ上のア
ドレス
Pointer Designations
Register area
Memory
address
[ MA00100 ]