Chapter 6 Constants; Decimal Constant (K); Hexadecimal Constant (H) - Mitsubishi L02CPU User Manual

Melsec-l series
Hide thumbs Also See for L02CPU:
Table of Contents

Advertisement

CHAPTER 6
The following constants can be used in the CPU module.

• Decimal constant (K)

• Hexadecimal constant (H)

• Real number (E)
• Character string (" ")
6.1
Decimal Constant (K)
The decimal constant (K) is a device used to specify decimal data in programs. Specify it as K
programs. In the CPU module, data are stored in binary (BIN). (
The specification ranges for decimal constants are as follows:
The most significant bit represents a sign bit.
• When using word data (16-bit data): K-32768 to K32767
• When using 2-word data (32-bit data): K-2147483648 to K2147483647
6.2
Hexadecimal Constant (H)
The hexadecimal constant (H) is a device used to specify hexadecimal or BCD data in programs. (For BCD data, each
digit of a hexadecimal number is specified with 0 to 9.) In programs, specify it as H
(
Page 312, Appendix 3)
The specification ranges for hexadecimal constants are as follows:
• When using word data (16-bit data): 0000
• When using 2-word data (32-bit data): 00000000
CONSTANTS
to FFFF
(For BCD data, 0000
H
H
to FFFFFFFF
H

CHAPTER 6 CONSTANTS

(example: K1234) in
Page 312, Appendix 3)
(example: H1234).
to 9999
)
H
H
(For BCD data, 00000000
H
6
to 99999999
)
H
H
275

Advertisement

Table of Contents
loading

This manual is also suitable for:

L26cpu-bt

Table of Contents