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

Hide thumbs Also See for MELSEC QS 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 safety 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.
(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.2 Designating Data
3-4
3.2.2 Using word (16 bits) data
Digit designation of bit devices is done by designating "
Start 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 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
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)
".
X8 X7
X4 X3
K2 designation range
(8 points)
K3 designation range
(12 points)
K4 designation range
(16 points)
With 16-Bit Instruction
0 to 15
0 to 255
0 to 4095
–32768 to 32767
Number of digits
X0
K1 designation
range
(4 points)

Advertisement

Table of Contents
loading

Table of Contents