Specifications

4.4 Method for Specifying Data
4.4.2 Word (16 bits) data
4-23
4
PROGRAM
CONFIGURATION
4.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 FFFFH
For word data, word devices and digit-specified bit device 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
User's Manual (Function Explanation, Program Fundamentals) for the CPU module used.)
(1) Using bit devices
(a) By specifying digits of bit devices, word data can be used.
Specify digits of bit data as ' '. Digits 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 following are the examples of the target points when digits are specified for X0.
QCPU (Q mode)/LCPU
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
FXCPU
For FXCPU, the device numbers of input/output (X, Y) is assigned in octal.
K1X0 ....... 4 points of X0 to X3
K2X0 ....... 8 points of X0 to X7
K3X0 ....... 12 points of X0 to X13
K4X0 ....... 16 points of X0 to X17
Figure 4.4.2-1 Digit specification setting range of word data (16 bits)
Number of digits
Start number of bit device
Network No.
Number of digits
Start number of bit device
XF
K1 specification
range
(4 points)
K2 specification range
(8 points)
K3 specification range
(12 points)
K4 specification range
(16 points)
XC XB X
8 X7
X4
X3 X0
to to to
to