7.1 User Program Types and Execution Timing
7.1.5 Registers
7-32
Data Types
There are various data types that you can use depending on the purpose of the application: bit,
integer, double-length integer, quadruple-length integer, real number, double-precision real
number, and address.
*1.
These data types cannot be used for indirect designation of motion programs.
*2.
Conforms to IEEE754 standards.
Symbol
Data Types
Range of Values
Data Size
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
(8000h to 7FFFh)
1 word
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
(80000000h to 7FFFFFFFh)
2 words
Used for numeric operations. The
values in parentheses on the left
are for logical operations.
Q
Quadruple-
length
integer
*1
-9,223,372,036,854,775,808 to
9,223,372,036,854,775,807
(8000000000000000h to
7FFFFFFFFFFFFFFFh)
4 words
Used for numeric operations. The
values in parentheses on the left
are for logical operations.
F
Real number
±
(1.175E-38 to 3.402E+38) or 0
2 words
Used for advanced numeric oper-
ations.
*2
D
Double-
precision real
number
*1
±
(2.225E-308 to 1.798E+308) or 0 4 words
Used for advanced numeric oper-
ations.
*2
A
Address
0 to 2,097,152
−
Used only as pointers for
addressing.
The SERVOPACK does not have separate registers for each data type. As shown in the following
figure, the same address will access the same register even if the data type is different.
For example, MB00001003, a bit address, and the MW0000100, an integer address, have differ-
ent data types, but they both access the same register, MW0000100.
Important