Private Function Hexsent(ByVal smf_code As String, ByVal sdata_saddr As String, ByVal sdata_num As String, ByVal intGetDataLen As Integer, ByVal intdisnum As Integer, ByVal Hexsent_String As String) As Integer
Dim hexchrlen%, Hexchr As String, hexcyc%, hexmid As Byte
Dim hexchrgroup() As Byte, hexchrgrouprgt() As Byte
Dim j%
Dim dfMinus, dfFreq, dfTim As Double
Dim msn1, msn2 As String
'接收的数据
Dim bytReceiveArray() As Byte
'接收的变体数据
Dim VarReceiveData As String
Dim b As Variant
Dim i As Long, ii As Long, num_flag0&, num_flag1&, m As Long
On Error Resume Next
hexchrlen = Len(Hexsent_String)
'检查参数值是否合适
For hexcyc = 1 To hexchrlen
Hexchr = Mid(Hexsent_String, hexcyc, 1)
If InStr("0123456789ABCDEFabcdef", Hexchr) = 0 Then