Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
3-4
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 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 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
Number of digits Head number of bit device
Network No. Number of digits
Head number of bit device
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