Hitachi 32HDL51M Service Manual page 18

Table of Contents

Advertisement

4.
Command String Development Information
4.1- To assist with developing command strings, the table below shows a Hex character
conversion chart
Hex Character
0
1
2
3
4
5
6
7
8
9
4.2 - An example of the proper coding technique is demonstrated below for the ìPower Onî
Command.
Hex Character Set: 6E: Power Function
Hex Coded Data: 364530303030303030303031
Note- an STX (02-Hex) would be added at the start of the string and ETX (03-Hex) would be
added at the end of the string to create a complete command.
4.3- Figure 6 shows the 14 byte string formatted in Hex Characters for the ìPower On Functionî.
1
2
3
Start
02
6
E
Function
STX
(2 Byte)
(1 Byte)
Figure 6
4.4- Figure 7 shows the ìPower Onî function converted to Hex Code set
1
2
3
4
Start
02
36
45
30
Function
STX
(2 Byte)
(1 Byte)
Table 4.1.1 Hex Character Conversion Chart
Hex Code
Hex Character
30
31
32
33
34
35
36
37
38
39
00: Write Function (Note- A ì01î would indicate a read function)
rd
00: 3
(Upper byte-Function)
th
00: 4
(Lower byte-Function)
th
00: 5
(Upper byte-Data)
th
01: 6
(Lower byte- Data
4
5
6
7
8
0
0
0
0
0
Read/Write
Function
(2 Byte)
(2 Byte)
Function
Function
(2 Byte)
(2 Byte)
5
6
7
8
30
30
30
30
Function
Read/Write
(2 Byte)
(2 Byte)
Function
Function
(2 Byte)
(2 Byte)
Hex Code
A
41
B
42
C
43
D
44
E
45
F
46
9
10
11
12
0
0
0
0
Function
Upper Data
Lower Data
(2 Byte)
(2 Byte)
Function
Function
(2 Byte)
(2 Byte)
9
10
11
12
30
30
30
30
Function
Upper Data
Lower Data
(2 Byte)
(2 Byte)
Function
Function
(2 Byte)
(2 Byte)
18
PLC1/AVC5-UB
13 14
Stop
1
ETX
(2 Byte)
(1 Byte)
Function
(2 Byte)
13
14
Stop
31
ETX
(2 Byte)
(1 Byte)
Function
(2 Byte)

Advertisement

Table of Contents
loading

Table of Contents