9 - 12
MELSEC-F
WHEN COMMUNICATING DATA USING THE MC PROTOCOL9
9 - 12
(b) When reading from or writing to a word device memory
Each word of the word device memory is expressed in hexadecimal values
in 4-bit units sequentially from the higher bit.
(Example)
Indicating the storage contents of data registers D350 and D351
POINT
(1) When designating alphabet letters in the character area, use upper case
code.
(2) When data other than an integer value (real number, character string, etc.)
was stored in a word device memory to be read, the stored value is read 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 = 3F40H
(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 = 4241H
30
H
00
30
H
0
30
H
0
30
H
1
31
H
5
35
H
6
36
H
A
41
H
B
42
H
1
31
H
7
37
H
0
30
H
F
46
H
5
35
H
E
35
H
0
30
H
2
32
H
32
H
2
L
HL
H
L
HL
34
H
4
34
H
4
H
30
H
30
H
00
B15
01010110101010110001
B14B13B12 B11B10B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
011100001111
B15B14B13B12 B11B10B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
56AB170F
Head device
Device
point
Data Data
1: Indicates ON
0: Indicates OFF
The content of D350 indicates 56AB
H
(22187 in decimal)
The content of D351 indicates 170F
H
(5903 in decimal)