9
DEVICE EXPLANATION
9.5 Constants
9.5.1 Decimal constant (K)
9
- 35
9
D
e
vi
ce
Exp
lana
tion
10
CP
U Mo
du
le
Pr
oce
ssing
Ti
m
e
11
P
ro
ced
ur
e f
o
r W
rit
in
g
Pr
og
ra
m t
o CP
U Mo
du
le
App
e
nd
ic
es
In
de
x
9.5 Constants
9.5.1 Decimal constant (K)
(1) Definition
Decimal constants are devices that designate decimal data in sequence programs.
Specify it as K
(example: K1234) in a sequence program.
It is stored in binary (BIN) into the CPU module. (
(2) Designation range
The designation ranges for decimal constants are as follows:
• For word data (16 bits)••••••••••••••••••••••••••K-32768 to 32767
• For 2-word data (32 bits) •••••••••••••••••••••••K-2147483648 to 2147483647
POINT
The most significant bit is a sign bit.
9.5.2 Hexadecimal constant (H)
(1) Definition
Hexadecimal constants are devices which designate hexadecimal or BCD data in
sequence programs.
(For BCD data designations, 0 to 9 digit designations are used.)
Hexadecimal constants are designated as "H
" settings (e.g. H1234).
(
(2) Designation range
The setting ranges for hexadecimal constants are as follows:
• For word data (16 bits)••••••••••••••••••••••••••H0 to FFFF
(H0 to 9999 for BCD)
• For 2-word data (32 bits) •••••••••••••••••••••••H0 to FFFFFFFF
(H0 to 99999999 for BCD)
Summary of Contents for MELSEC QS Series
Page 1: ......
Page 2: ......
Page 24: ...A 22 Memo ...
Page 258: ...Index 3 Memo ...
Page 263: ......
Page 264: ......