cmder
級別: 探索解密
|
Word = hex(....) Sd = ENQ + "00FFWW5D" + 0123 + "02" + Word frmMain.Rscom.Output = Sd Twrite = 1 Timer1.Interval = 80 Timer1.Enabled = True Delay: DoEvents If Twrite = 1 Then GoTo Delay Timer1.Enabled = False RD = frmMain.Rscom.Input If Left(RD, 5) = ACK + "00FF" Then exit sub ......... SD = ENQ + "00FFWR3D0120" + "02" Moncom.Output = SD Tread = 1 Timer2.Interval = 100 Timer2.Enabled = True Delay4: DoEvents If Tread = 1 Then GoTo Delay4 Timer2.Enabled = False RDD = Moncom.Input If Left(RDD, 5) = STX + "00FF" Then EXIT SUB 誰能幫忙解釋下啊 ???? ENQ + "00FFWW5D" |
---|---|
|
冰糖
紫外工控論壇 BBS.ZIWAI.NET
級別: 家園常客
|
ENQ + "00FFWW5D" 就是合并字符串 |
|
---|---|---|
|
xcgksp
級別: 略有小成
|
1. “ENQ”是一個通訊使能字符 (十六進制:05),即請求(開始)通訊。 2. ENQ + "00FFWW5D" 實際含義是“05 00 FF WW 5D”,這種格式通常在三菱變頻器RS485通訊中用的比較多。 |
---|---|
|