Read Data, Write Data - Mitsubishi Electric MELSEC IQ-R series Reference Manual

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

Advertisement

Read data, write data

The read data is stored for reading, and the data to be written is stored for writing.
Data is stored with variable length. The length of data is specified by "Data length." (Page 133 Data length)
The storing method of data is same as that of reading or writing data in word units (bit device in 16-points). (Page 74
Read data, write data)
For bit type labels
Read data and write data are handled in 16-point units, but '0' is stored in data other than label points to be accessed.
Ex.
For bit type label 6 points
b15
0
0
0
0
0
0
0
0
0
0
1
1
0
Fixed to 0
Access target
bit data
For character string type labels
Store NULL at the end of the valid character string. The data after NULL of the read data will be undefined value.
Item
Number of character strings of label
NULL code to be stored to the end
Data length of array element/label per
one point
Ex.
For read data of 1-point character string type (ASCII code) label
• Label character string: 'ABCD' (4 characters)
• "Data Length of Character String Data Type" of an Engineering tool: 32
• Data length: Number of characters (32 + 1)  Data length per one character string (1) = 34 (22H)
ASCII code
B
A
D
4
2
4
1
4
4
4
34
32
34
32
34
34
34
H
H
H
H
H
H
H
("Data Length of String Data Type"(32)+2)×2 bytes
When communicating ASCII code character string data in ASCII code, data is rearranged every two
characters and stored.
b0
1
0
1
Character string type of ASCII code
Odd
NULL (00H)
Character string specified to "Data
Length of Character String Data
Type" + 1
C
NULL
NULL
3
0
0
0
0
...
33
30
30
30
30
H
H
H
H
H
Even number
NULL (00H)2
Character string specified to "Data
Length of Character String Data
Type" + 2
Binary code
A
B
C
D
NULL
NULL
...
41
42
43
44
00
00
H
H
H
H
H
H
"Data Length of String Data Type"(32)+2 bytes
9.1 Data to be Specified in Commands
Character string type of
Unicode
NULL (0000H)
(Character string specified to "Data
Length of Character String Data
Type" + 1)2
9 LABEL ACCESS
135
9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents