25 CONSTANTS
25.1 Decimal Constant (K)
401
25
25
CONSTANTS
This section describes constants.
25.1
Decimal Constant (K)
Use this type of constants when specifying decimal data in a program. Specify the decimal constant using K
character (e.g.
K1234). The specification range depends on the argument data type of the instruction using the decimal constant as shown in
the following table:
25.2
Hexadecimal Constant (H)
Use this type of constants when specifying hexadecimal data in a program. Specify the hexadecimal constant using H
character (e.g. H1234). To specify data in BCD, specify each digit of hexadecimal value with numerical characters 0 to 9. The
specification range depends on the argument data type of the instruction using the hexadecimal constant. The range is H0 to
HFFFF for 16-bit data size, and H0 to HFFFFFFFF for 32-bit data size.
Argument data type of the instruction
Specification range for decimal constant
Data size
Data type name
16 bit
Word (signed)
K-32768 to K32767
Word (unsigned)/bit string (16 bit)
K0 to K65535
16-bit data
K-32768 to K65535
32 bit
Double word (signed)
K-2147483648 to K2147483647
Double word (unsigned)/bit string (32 bit)
K0 to K4294967295
32-bit data
K-2147483648 to K4294967295
Содержание MELSEC iQ-R-R00CPU
Страница 2: ......
Страница 151: ...9 MONITOR FUNCTION 9 1 Real Time Monitor Function 149 9 MEMO ...
Страница 323: ...18 SEQUENCE SCAN SYNCHRONIZATION SAMPLING FUNCTION 321 18 MEMO ...
Страница 330: ...328 20 ROUTING SETTING 20 3 Precautions MEMO ...
Страница 423: ...26 BASIC CONCEPT 26 8 State Transition of the Redundant System 421 26 MEMO ...
Страница 524: ...522 30 MAINTENANCE AND INSPECTION FOR A REDUNDANT SYSTEM 30 1 Module Replacement in the Redundant System MEMO ...
Страница 1009: ...APPX Appendix 14 List of Available SQL Commands for CPU Module Database Access Function 1007 A MEMO ...
Страница 1014: ...1012 APPX Appendix 15 Added and Enhanced Functions MEMO ...
Страница 1027: ......