18
PLC1/AVC5-UB
4. Command String Development Information
4.1- To assist with developing command strings, the table below shows a Hex character
conversion chart
Table 4.1.1 Hex Character Conversion Chart
4.2 - An example of the proper coding technique is demonstrated below for the ìPower Onî
Command.
Hex Character Set: 6E: Power Function
00: Write Function (Note- A ì01î would indicate a read function)
00: 3
rd
(Upper byte-Function)
00: 4
th
(Lower byte-Function)
00: 5
th
(Upper byte-Data)
01: 6
th
(Lower byte- Data
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
4
5
6
7
8
9
10
11
12
13
14
Start
Stop
02
6
E
0
0
0
0
0
0
0
0
0
1
Figure 6
4.4- Figure 7 shows the ìPower Onî function converted to Hex Code set
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Start
Stop
02
36
45
30
30
30
30
30
30
30
30
30
31
Hex Character
Hex Code
0
30
1
31
2
32
3
33
4
34
5
35
6
36
7
37
8
38
9
39
Hex Character
Hex Code
A
41
B
42
C
43
D
44
E
45
F
46
Function
(2 Byte)
Function
(2 Byte)
Function
(2 Byte)
Read/Write
(2 Byte)
Function
(2 Byte)
Upper Data
(2 Byte)
Function
(2 Byte)
Lower Data
(2 Byte)
Function
(2 Byte)
STX
(1 Byte)
ETX
(1 Byte)
Function
(2 Byte)
Function
(2 Byte)
Function
(2 Byte)
Read/Write
(2 Byte)
Function
(2 Byte)
Upper Data
(2 Byte)
Function
(2 Byte)
Lower Data
(2 Byte)
Function
(2 Byte)
STX
(1 Byte)
ETX
(1 Byte)
Function
(2 Byte)
Function
(2 Byte)
Function
(2 Byte)
Function
(2 Byte)
Summary of Contents for 32HDL51M
Page 23: ...23 PLC1 AVC5 UB Specification Features 2 of 2 ...
Page 53: ...53 PLC1 AVC5 UB ...
Page 54: ...54 PLC1 AVC5 UB ...
Page 55: ...55 PLC1 AVC5 UB ...
Page 57: ...57 PCL1 AVC5 UB EXPLODED VIEW MONITOR TABLE OF CONTENTS MODEL 32HDL51 ...
Page 62: ...62 PLC1 AVC5 UB This page left blank intentionally ...
Page 63: ...PRINTED CIRCUIT BOARDS 63 PCL1 AVC5 UB ...
Page 80: ...80 PLC1 AVC5 UB ...