9 - 14
MELSEC-F
WHEN COMMUNICATING DATA USING THE MC PROTOCOL
9
9 - 14
(b) Reading from or writing to a word device memory
Each word of a word device memory is designated by 16 bits and the
designated number of points from the designated head device are
sequentially expressed in one-point units in the order, low byte (L: bits 0 to 7)
to high byte (H: bits 8 to 15).
(Example)
Indicating the storage contents of data registers D350 and D351
POINT
(1) When data other than an integer value (real number, character string, etc.)
was stored in a word device memory to be read, the module reads the stored
value as an integer value.
(Example 1)
When the real number (0.75) is stored in D0 and D1, it is read as the
following integer values:
D0 = 0000
H
, D1 = 3F40
H
(Example 2)
When the character string ("12AB") is stored in D2 and D3, it is read as the
following integer values:
D2 = 3231
H
, D3 = 4241
H
02
H
AB
H
56
H
0F
H
17
H
B7
1 0 1 0 1 0 1 1 0 1 0 1 0 1 1 0 0 0 0 0
B6 B5 B4 B3 B2 B1 B0 B15 B14 B13 B12 B11B10 B9 B8
1 1 1 1 0 0 1 1 0 1 1 1
B7 B6 B5 B4 B3 B2 B1 B0 B15 B14 B13 B12 B11 B10 B9 B8
A
B
5
6
0
F
1
7
L H
B15
0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 0 0 1
B14 B13 B12 B11B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
0 1 1 1 0 0 0 0 1 1 1 1
B15 B14 B13 B12 B11B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
5
6
A
B
1
7
0
F
Data
1: Indicates ON
0: Indicates OFF
170F
H
L H
Data
56AB
H
Device point
The content of D350 indicates 56AB
H
(22187 in decimal)
The content of D351 indicates 170F
H
(5903 in decimal)
(L)
(H)
(L)
(H)