Using Word (16 Bits) Data - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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.
(b) In cases where digit designation has been made at the source (S), the numeric values
3-4
Digit designation of bit devices is done by designating
Number of digits
Head number of bit device
"
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
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.
XF
XC XB
to
Fig 3.1 Digit Designation Setting Range for 16-Bit Instruction
shown in Table 3.1 are those which can be dealt with as source data.
Table 3.1 List of Numeric Values that Can Be Dealt with as Digit Designation
Number of Digits Designated
K1 (4 points)
K2 (8 points)
K3 (12 points)
K4 (16 points)
". Digit designation of bit devices can
Network No.
Number of digits
\
".
X8 X7
X4 X3
to
to
K2 designation range
K3 designation range
(12 points)
K4 designation range
(16 points)
With 16-Bit Instruction
0 to 255
0 to 4095
-32768 to 32767
X0
to
K1 designation
range
(4 points)
(8 points)
0 to 15

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents