2 - 11 2 - 11
MELSEC-Q
2 THE BASICS OF AD51H-BASIC
(4) Hexadecimal Constants
A hexadecimal number (0 through 9, A through F) is preceded by &H.
Example
&H76
• • • • •
118
&H32F
• • • • •
815
(5) Octadecimal Constants
An octadecimal number (0 through 7) is preceded by &0 or &.
Example
&0347
• • • • •
231
&1234
• • • • •
668
2.7.3 Single-precision and double-precision numeric constants
Fixed decimal point constants and floating-point constants can be either single
precision or double precision. Single-precision constants are stored in a memory with
an accuracy of 7 significant digits. Double-precision constants are stored in a memory
with an accuracy of 16 significant digits.
(1) Single-precision constants are numeric constants that can be categorized into one
of the following:
(a) Constants with 7 or less significant digits
(b) Constants expressed in exponential format using E
(c) Constants that are followed by an exclamation mark (!)
(2) Double-precision constants are numeric constants that can be categorized into
one of the following:
(a) Constants with 8 or more significant digits
(b) Constants expressed in exponential format using D
(c) Constants that are followed by a number sign (#)
Example
Single-precision constants
Double-precision constants
46.8
345692811
-7.09E-06
-1.09432D-06
3489.0
3489.0#
22.5!
7654321.1234
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...