Mitsubishi Electric MELSEC-Q Series User Manual page 34

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

(b) When reading/writing the word device memory
In the word device memory, one word is expressed in 4-bit units sequentially from upper bits in hexadecimal.
Ex.
To write data to the data registers D350 and D351
(In the case of data read operation, the content of data when the data registers D350 and D351 are specified is
shown.)
Specify each setting item as follows:
• Device code: Select "D".
• Start device: Specify "350".
• Number of device: Specify "2".
• Write data: Specify "56AB170F".
The following data will be written. (In the case of device read operation, the following data will be read.)
5
B15
B14 B13 B12 B11B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 0 0 1
The content of D350 indicates 56AB
(22187 in decimal).
If values (real numbers, character strings) other than integers are stored in the word device memory from which data is to be
read, the Ethernet module reads the stored values as integer values.
(Example 1) If a real number (0.75) is stored in D0 and D1, it will be read as the following integer value:
• "00003F40" (D0 = 0000
(Example 2) If a character string ("12AB") is stored in D2 and D3, it will be read as the following integer value:
• "32314241" (D2 = 3231
32
Data
5
6
A
B
1
6
A
B
1
B15 B14 B13 B12 B11B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
The content of D351 indicates 170F
H
(5903 in decimal).
, D1 = 3F40
H
, D3 = 4241
H
Data
7
0
F
7
0
F
0 1 1 1 0 0 0 0 1 1 1 1
)
H
)
H
1: Indicates ON.
0: Indicates OFF.
H

Advertisement

Table of Contents
loading

Table of Contents