EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q00U(J)CPU - CHAPTER 5 CONSTANTS; 5.1 Decimal Constant (K); 5.2 Hexadecimal Constant (H)

Mitsubishi Electric MELSEC-Q00U(J)CPU
588 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
415
CHAPTER 5 CONSTANTS
5
5.1 Decimal Constant (K)
CHAPTER 5 CONSTANTS
5.1 Decimal Constant (K)
The decimal constant (K) is used to specify decimal data in sequence programs.
Specify it as K (example: K1234) in sequence programs.
In the CPU module, data are stored in binary (BIN). ( Page 494, Appendix 4.1)
(1) Specification range
The specification ranges for decimal constants are as follows:
When using word data (16-bit data) ••• K-32768 to K32767
When using 2-word data (32-bit data) ••• K-2147483648 to K2147483647
The most significant bit represents a sign bit.
5.2 Hexadecimal Constant (H)
The hexadecimal constant (H) is a device for specifying hexadecimal or BCD data in sequence programs.
(For BCD data, each digit of a hexadecimal number is specified with 0 to 9.)
In sequence programs, specify it as H (example: H1234). ( Page 495, Appendix 4.2)
(1) Specification range
The specification ranges for hexadecimal constants are as follows:
When using word data (16-bit data) ••• H0 to HFFFF (For BCD data, H0 to H9999)
When using 2-word data (32-bit data) ••• H0 to HFFFFFFFF (For BCD data, H0 to H99999999)

Table of Contents

Related product manuals