How To Specify Data In Devices; In The Case Of Bit Data; In The Case Of Word (16-Bit) Data - Mitsubishi MELSEC-Q series Programming Manual

Process control instructions
Hide thumbs Also See for MELSEC-Q series:
Table of Contents

Advertisement

2.2

How to Specify Data in Devices

The following 4 types of data can be used by the process control instructions.
Data that can be used by the
process control instructions
2.2.1

In the case of bit data

Bit data is handled on a single bit basis.
The CPU module uses a word device for alarm condition or selection on a single bit basis.
By specifying the bit number of the word device, you can use the 1/0 of the specified bit number as bit data.
Word device
Specify the bit of the word device in the form of "
(Specify the bit number in hexadecimal.)
For example, specify the bit 5 (b5) of D0 as D0.5, and the bit 10 (b10) of D0 as D0.A.
However, you cannot specify the bits of the timer (T), retentive timer (ST), counter (C) and index register (Z). (Example: You
cannot specify Z0.0.)
2.2.2

In the case of word (16-bit) data

Word data is the 16-bit numeric data that is used for the loop tag memory bit pack contents and operation constants, etc.
• Decimal constant........................K-32768 to K32767
• Hexadecimal constant................H0000 to HFFFF
Example) For the loop tag memory ALM (standard value setting 4000
ALM
Bit data
Numeric data
b15
1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0
Word device
0
1
0
0
0
0
0
4
0
Integer data
Word data
Double word data
Real number data
(floating-point data)
1 in each bit can be used as ON,
or 0 as OFF.
.
".
Bit No.
)
H
0
0
0
0
0
0
0
0
0
b0
0
0
1
2
3
4
4
6
7
8
19

Advertisement

Table of Contents
loading

Table of Contents