QJ71C24 R2 通信问题 时间:2014/3/3 6:46:00
QJ71C24 R2与E540变频器进行232通信,QJ发送后变频器无反应,在电脑上用串口调试工具发送同样的数据,变频器动作正常。将QJ的端口连接至电脑端口后用串口调试工具对其发送内容进行检测后发现并无错误,只是获得的数据并不是一起接收到得。先将串口调试工具获得的内容粘贴如下:
# Time Function Data ( Hex )
16 [00010541] IRP_MJ_READ Length: 0001, Data: 05
17 [00010541] IRP_MJ_READ Length: 0001, Data: 30
18 [00010541] IRP_MJ_READ Length: 0001, Data: 30
19 [00010541] IRP_MJ_READ Length: 0001, Data: 46
20 [00010541] IRP_MJ_READ Length: 0001, Data: 41
21 [00010541] IRP_MJ_READ Length: 0001, Data: 31
22 [00010541] IRP_MJ_READ Length: 0001, Data: 30
23 [00010541] IRP_MJ_READ Length: 0001, Data: 30
24 [00010541] IRP_MJ_READ Length: 0001, Data: 37
25 [00010541] IRP_MJ_READ Length: 0001, Data: 38
26 [00010542] IRP_MJ_READ Length: 0001, Data: 0D
27 [00010543] IRP_MJ_READ Length: 0001, Data: 0A
注:以上是串口调试工具获得QJ发送的数据记录,这个是变频停止指令(用串口调试工具让变频器先运转起来后再用此指令),即使是变频器运行指令,变频器也无反应。为什么接收来的数据时这个样子呢??而不是一个长度为12的数据呢??
138 [00003133] IRP_MJ_WRITE Length: 0012, Data: 05 30 30 46 41 31 30 32 37 41 0D 0A
139 [00003136] IRP_MJ_READ Length: 0003, Data: 06 30 30
140 [00004015] IRP_MJ_WRITE Length: 0012, Data: 05 30 30 46 41 31 30 30 37 38 0D 0A
141 [00004018] IRP_MJ_READ Length: 0003, Data: 06 30 30
142 [00007181] IRP_MJ_WRITE Length: 0012, Data: 05 30 30 46 41 31 30 32 37 41 0D 0A
143 [00007184] IRP_MJ_READ Length: 0003, Data: 06 30 30
注:以上是有串口调试工具向E540发送同样的数据 E540动作正常
通信设置 9600、8、 Even 、2。 QJ(SW3:05DE SW4:0006)、 E540(0号站 9600、8、even、2、CRLF结束符、通信次数为9999 )、串口调试工具均设置无误
Re:续:QJ71C24 R2 通信问题 时间:2014/3/3 7:47:00
根据您提供的信息,变频器不运转是由于发送的数据没有连续造成的,可能还是由于程序方面导致的,建议您最好来电咨询,谢谢。
Re:Re:续:QJ71C24 R2 通信问题 时间:2014/3/3 10:11:00
格式化存储器后,写入说明书的示例程序,发现数据还是不连续
后将数据线接线方式改变后,数据依旧不连续,但是有差别显现
'46 78短接后接受数据如下
6 [00000452] IRP_MJ_READ Length: 0001, Data: 05
7 [00000453] IRP_MJ_READ Length: 0002, Data: 30 31
8 [00000453] IRP_MJ_READ Length: 0002, Data: 46 41
9 [00000453] IRP_MJ_READ Length: 0001, Data: 31
10 [00000453] IRP_MJ_READ Length: 0001, Data: 30
11 [00000454] IRP_MJ_READ Length: 0003, Data: 32 37 42
12 [00002779] IRP_MJ_READ Length: 0002, Data: 05 30
13 [00002779] IRP_MJ_READ Length: 0003, Data: 31 46 41
14 [00002779] IRP_MJ_READ Length: 0003, Data: 31 30 32
15 [00002780] IRP_MJ_READ Length: 0002, Data: 37 42
'将46连接 78短接 后数据接受如下
16 [00006247] IRP_MJ_READ Length: 0001, Data: 05
17 [00006247] IRP_MJ_READ Length: 0001, Data: 30
18 [00006247] IRP_MJ_READ Length: 0001, Data: 31
19 [00006247] IRP_MJ_READ Length: 0001, Data: 46
20 [00006247] IRP_MJ_READ Length: 0001, Data: 41
21 [00006248] IRP_MJ_READ Length: 0001, Data: 31
22 [00006248] IRP_MJ_READ Length: 0001, Data: 30
23 [00006248] IRP_MJ_READ Length: 0001, Data: 32
24 [00006248] IRP_MJ_READ Length: 0001, Data: 37
25 [00006248] IRP_MJ_READ Length: 0001, Data: 42
'将78连接 46短接 后数据如下
26 [00026148] IRP_MJ_READ Length: 0004, Data: 05 30 31 46
27 [00026148] IRP_MJ_READ Length: 0003, Data: 41 31 30
28 [00026149] IRP_MJ_READ Length: 0003, Data: 32 37 42
29 [00030555] IRP_MJ_READ Length: 0001, Data: 05
30 [00030555] IRP_MJ_READ Length: 0003, Data: 30 31 46
31 [00030555] IRP_MJ_READ Length: 0001, Data: 41
32 [00030555] IRP_MJ_READ Length: 0003, Data: 31 30 32
33 [00030556] IRP_MJ_READ Length: 0001, Data: 37
34 [00030556] IRP_MJ_READ Length: 0001, Data: 42
35 [00030661] IRP_MJ_READ Length: 0001, Data: 05
36 [00030661] IRP_MJ_READ Length: 0004, Data: 30 31 46 41
37 [00030662] IRP_MJ_READ Length: 0004, Data: 31 30 32 37
38 [00030663] IRP_MJ_READ Length: 0001, Data: 42
Re:Re:Re:续:QJ71C24 R2 通信问题 时间:2014/3/3 14:59:00
232接线方式为2、3交叉,4、6交叉,5直连,7、8短接。建议您还是来电咨询,核对相关程序,谢谢。
相关问题
相关下载