3 CONFIGURATION OF INSTRUCTIONS
3.2 Designating Data
83
3
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 User's Manual (Function Explanation, Program Fundamentals) for the CPU
module used.)
When Using Bit Devices
Bit devices can deal with word data when digits are designated.
Digit designation of bit devices is done by designating "[Number of digits][Head number of bit device]".
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[Network No.]\[Number of digits][Head number of bit device]". 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.
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.
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.
Number of digits designated With 16-bit instructions
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 instructions
XF
K1 designation
range
(4 points)
K2 designation range
(8 points)
K3 designation range
(12 points)
K4 designation range
(16 points)
XC XB X8 X7
X4
X3 X0
to to to
to
X010
MOV K1X0D0
Source (S) data
0 0
X3
b0
D0
K1X0
b1b2b3
0000000000
X2 X1 X0
Filled with 0s
X3 X2 X1 X0
b15 b4