8 DEVICE ACCESS
8.1 Data to be Specified in Commands
75
8
For word units (16-point unit for bit device)
The following shows the data to be read and written in word units.
When handling data other than bit data, refer to the following section.
Page 79 Considerations for handling real number data and character string data
■Data communication in ASCII code
Convert the 1-word(16 points of bit device) numerical value to 4-digit ASCII code (hexadecimal), and send it from the upper
digits.
Use capitalized code for alphabetical letter.
The ON/OFF status of bit device is a value of hexadecimal 1-digit in 4-point units.
When indicating ON/OFF status of 32 points from M16
When indicating the stored data of D350 and D351
16 A
B
1234C
D
0002
b15
10101011000100100011
b14 b13 b12 b11b10 b9 b8
b7
b6
b5
b4 b3 b2 b1 b0
010011001101
b15 b14 b13 b12 b11b10 b9 b8
b7
b6
b5
b4 b3 b2 b1 b0
M
0000
44
H
43
H
34
H
33
H
32
H
31
H
42
H
41
H
32
H
30
H
30
H
30
H
36
H
31
H
30
H
30
H
30
H
30
H
2A
H
4D
H
M16M31
0OFF
1ON
AB1234C
M32M47
D
The device point value becomes "0002" in 16-points units.
Device
code
Number of
device points
Head device Data
toto
Data
*
00350 56AB170F0002D0
*
44H 2AH 30H 30H 30H 33H 35H 30H 30H 30H 32H 35H 36H 41H 42H 31H 37H 30H 46H30H
Device
code
Number of
device pointsHead device Data Data
The content of
D350 indicates
56ABH (22187 in
decimal)
The content of
D351 indicates
170FH (5903 in
decimal)