Data Length, Unit Specification - Mitsubishi Electric MELSEC IQ-R series Reference Manual

Programmable controller
Hide thumbs Also See for MELSEC IQ-R series:
Table of Contents

Advertisement

Data length, unit specification

Specify the length of data to be read/written.
Unit specification
Specify the units of data length when reading/writing data from/to array in batch.
■Bit specification
The value of data length is handled as the number of bits.
Specify this when the data type of the label is bit.
ASCII code
0
0
0
0
30
30
30
30
H
H
H
H
Read data or write data are stored in 16 point unit of bit devices (2 bytes).
When data length is not a multiple of 16 at the time of bit specification, '0' is stored in an invalid area.
■Byte specification
The value of data length is handled as a number of bytes of read data or write data.
Specify when the data type of a label is other than bit.
ASCII code
0
0
0
1
30
30
30
31
H
H
H
H
Data length
Specify the length of read data or write data.
Specify the following values according to the data type of a label.
Specifying and writing data length which is not suited for the data type of label results in abnormal completion.
Data type
Bit
Word [Unsigned]/Bit String [16-bit]
Double Word [Unsigned]/Bit String [32-bit]
Word [Signed]
Double Word [Signed]
FLOAT [Single Precision]
FLOAT [Double Precision]
Time
String
String [Unicode]
Pointer
Timer
Contact
Counter
Coil
Retentive timer
Current value
Long timer
Contact
Long counter
Coil
Long retentive timer
Current value
*1 Specify the following values per one array element/label.
Character string length specified to "Data Length of Character String Data Type" with an Engineering tool + 1
(When the value is an odd number, add 1 and specify with an even number.)
*2 Specify the following values per one array element/label.
(Character string length specified to "Data Length of Character String Data Type" with an Engineering tool + 1)  2
Binary code
00
00
H
H
Binary code
01
00
H
H
Batch read and write array type labels
Unit
Array data length
specification
1  Number of array element
Bit units
2  Number of array element
Byte units
4  Number of array element
2  Number of array element
4  Number of array element
4  Number of array element
8  Number of array element
4  Number of array element
Depend on the number of character strings (1 per 1 character, including end NULL)
Depend on the number of character strings (2 per 1 character, including end NULL)
Cannot be specified.
Cannot be specified.
Random read and write
Data length per 1 point label
2
2
4
2
4
4
8
4
2
2
4
9 LABEL ACCESS
9.1 Data to be Specified in Commands
9
*1
*2
133

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents