3.4 Method for Specifying Data
3.4.2 Word (16 bits) data
3-9
3
CONFIGURA
TION
OF IN
S
T
RU
CTIONS
3.4.2
Word (16 bits) data
Word data are 16-bit numeric value data used in basic instructions and application instructions.
The following shows the two types of word data that can be handled in CPU modules.
• Decimal constants ................ -32768 to 32767
• Hexadecimal constants ........ 0000
H
to FFFF
H
For word data, word devices and digit specification for bit devices can be used.
Note that word data cannot be specified using digit specification for direct access inputs (DX) and
direct access outputs (DY).
For direct access inputs and direct access outputs, refer to the following manual.
• QCPU User's Manual (Function Explanation, Program Fundamentals)
(1) Using bit devices
(a) By specifying a digit for bit devices, word data can be used.
Specify a digit for bit data as '
'. A digit can be
specified in the range from K1 to K4 in unit of 4 points (4 bits). (For a link direct device,
specify as 'J
\
'. To specify X100 to
X10F of Network No.2, specify as J2\K4X100.)
The followings are the examples of the target points when a digit is specified for X0.
• K1X0 ....... 4 points of X0 to X3
• K2X0 ....... 8 points of X0 to X7
• K3X0 ....... 12 points of X0 to XB
• K4X0 ....... 16 points of X0 to XF
Figure 3.4.2-1 Digit specification setting range of word data (16 bits)
(b) The following table shows the numeric values that can be used as source data when a
digit is specified at the source .
Table 3.4.2-2 List of digit specification and numeric values that can be used
Number of specified
digits
Value range
K1 (4 points)
0 to 15
K2 (8 points)
0 to 255
K3 (12 points)
0 to 4095
K4 (16 points)
−
32768 to 32767
N
um
b
er
o
f
d
i
g
i
ts
Start
num
b
er
o
f bi
t
dev
i
ce
N
et
w
ork
N
o
.
N
um
b
er
o
f
d
i
g
i
ts
Start
num
b
er
o
f bi
t
dev
i
ce
XF
K1
s
p
ec
ifi
cat
i
on
range
(
4 p
o
i
nts)
K2
s
p
ec
ifi
cat
i
on
range
(8
p
o
i
nts)
K
3
s
p
ec
ifi
cat
i
on
range
(
12 p
o
i
nts)
K4
s
p
ec
ifi
cat
i
on
range
(
16 p
o
i
nts)
X
C
X
B
X
8
X
7
X4
X
3
X
0
to
to
to
to
s
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......