84
3.2.2
Using word (16 bits) data
Word data is 16-bit numeric data used by basic instructions and application instructions.
The following two types of word data can be used with CPU module:
• Decimal constants...............K-32768 to K32767
• Hexadecimal constants.......H0000 to HFFFF
Word devices and bit devices designated by digit can be used as word data.
For direct access input (DX) and direct access output (DY), word data cannot be designated by digit. (For details of direct
access input and direct access output, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or
Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).
(1) When Using Bit Devices
(a) Bit devices can deal with word data when digits are designated.
Digit designation of bit devices is done by designating "
".
Digit designation of bit devices can be done in 4-point (4-bit) units, and designation can be made for K1 to K4.
(For link direct devices, designation is done by "J
\
".
When X100 to X10F are designated for Network No.2, it is done by J2\K4X100).
For example, if X0 is designated for digit designation, the following points would be designated:
• K1X0.........The 4 points X0 to X3 are designated.
• K2X0.........The 8 points X0 to X7 are designated.
• K3X0.........The 12 points X0 to XB are designated.
• K4X0.........The 16 points X0 to XF are designated.
Fig 3.1 Digit Designation Setting Range for 16-Bit Instruction
(b) In cases where digit designation has been made at the source (S), the numeric values shown in the following Table
are those which can be dealt with as source data.
(c) When destination (D) data is a word device
The word device for the destination becomes 0 following the bit designated by digit designation at the source.
Fig 3.2 Ladder Example and Processing Conducted
Number of Digits Designated
With 16-Bit Instruction
K1 (4 points)
0 to 15
K2 (8 points)
0 to 255
K3 (12 points)
0 to 4095
K4 (16 points)
-32768 to 32767
Ladder Example
Processing
With 16-Bit Instruction
Number of digits
Head number of bit device
Network No.
Number of digits
Head number of bit device
XF
K1 d
es
ig
nat
io
n
ran
g
e
(4
p
oi
nts
)
K2 d
es
ig
nat
io
n
ran
g
e
(
8
p
oi
nts
)
K3 d
es
ig
nat
io
n
ran
g
e
(12
p
oi
nts
)
K4 d
es
ig
nat
io
n
ran
g
e
(1
6
p
oi
nts
)
XC XB
X
8
X
7
X4
X3
X0
t
o
t
o
t
o
t
o
0 0
X3
b
0
D0
K1X0
b
1
b
2
b
3
0 0 0 0 0 0 0 0 0 0
X2 X1 X0
Fill
e
d
w
i
th
0
s
X3 X2 X1 X0
b
1
5
b
4
X010
MO
V
K1X0
D0
So
urce
(S) d
ata