艾默生EC10通讯协议格式跟踪记录1
==================================================================================================================================
原上载密码为空,设置上载密码为:11111111
SND=01 11 57 FF 08 00 00 00 00 00 00 00 00 31 31 31 31 31 31 31 31 9C B2 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
SND=01 00 06 FF B4 56 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
01 00 34 FF D7 A1 04
错误输入时:
SND=01 11 57 FF 08 33 33 33 33 33 33 33 33 31 31 31 31 31 31 31 31 1D 78 04
RCV=01 00 06 FF B4 56 04
01 00 34 FF D7 A1 04
SND=01 00 06 FF B4 56 04
RCV=01 00 06 FF B4 56 04
01 00 34 FF D7 A1 04
01 00 34 FF D7 A1 04
原上载密码为:11111111
设置上载密码为:22222222
SND=01 11 57 FF 08 31 31 31 31 31 31 31 31 32 32 32 32 32 32 32 32 45 01 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
SND=01 00 06 FF B4 56 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
01 00 34 FF D7 A1 04
原上载密码为:22222222
设置上载密码为空:
SND=01 11 57 FF 08 32 32 32 32 32 32 32 32 00 00 00 00 00 00 00 00 EE 96 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
SND=01 00 06 FF B4 56 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
01 00 34 FF D7 A1 04
======================================================================
原下载密码为空:
设置下载密码为:11111111
SND=01 11 59 FF 08 00 00 00 00 00 00 00 00 31 31 31 31 31 31 31 31 E8 8C 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36
SND=01 00 06 FF B4 56 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
01 00 34 FF D7 A1 04
原下载密码为:11111111
设置下载密码为:22222222
SND=01 11 59 FF 08 31 31 31 31 31 31 31 31 32 32 32 32 32 32 32 32 31 3F 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
SND=01 00 06 FF B4 56 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
01 00 34 FF D7 A1 04
原下载密码为:22222222
设置下载密码为空:
SND=01 11 59 FF 08 32 32 32 32 32 32 32 32 00 00 00 00 00 00 00 00 9A A8 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
SND=01 00 06 FF B4 56 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
01 00 34 FF D7 A1 04
===========================================================================
原监视密码为空:
设置监视密码为:11111111
SND=01 11 5B FF 08 00 00 00 00 00 00 00 00 31 31 31 31 31 31 31 31 44 93 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
SND=01 00 06 FF B4 56 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
01 00 34 FF D7 A1 04
原监视密码为:11111111
设置监视密码为:22222222
SND=01 11 5B FF 08 31 31 31 31 31 31 31 31 32 32 32 32 32 32 32 32 9D 20 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
SND=01 00 06 FF B4 56 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
01 00 34 FF D7 A1 04
原监视密码为:22222222
设置监视密码为空:
SND=01 11 5B FF 08 32 32 32 32 32 32 32 32 00 00 00 00 00 00 00 00 36 B7 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
SND=01 00 06 FF B4 56 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
01 00 34 FF D7 A1 04
===========================================================================
上载密码为空时,上载程序
SND=01 08 58 FF 00 00 00 00 00 00 00 00 82 74 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
===========================================================================
设置PLC运行
SND=01 00 54 FF DC 8B 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
SND=01 00 06 FF B4 56 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
01 00 33 FF 4E 36 04
设置PLC停止
SND=01 00 55 FF EF BA 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
SND=01 00 06 FF B4 56 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
01 00 33 FF 4E 36 04
设置PLC复位
SND=01 00 56 FF BA E9 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
SND=01 00 06 FF B4 56 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
01 00 33 FF 4E 36 04
/////////////////////////////
发送的错误数据格式时
RCV=01 00 15 FF E2 76 04
/////////////////////////
获取PLC信息
SND=01 00 74 FF DA 6D 04
RCV=01 00 06 FF B4 56 04
01 00 06 FF B4 56 04
01 38 74 FF 00 0A-00 6B 00-0C -00 00 00 00 00 00 00-01-00 00 00-12 -00 01 -00 00 00 00 -18 -10 -00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 22 00 00 00 00 00 00 00 00 92 3E 04
01 38 74 FF-00 0A-00 6B 00-0C -00 00 00 00 00 00 00-01-00 00 00-03 -00 01 -00 00 00-00 -18 -10 -00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 22 00 00 00 00 00 00 00 00 FE 76 04
01 38 74 FF-00 0A-00 6B 00-0C -00 00 00 00 00 00 00-00 00 00 00-00 -00 00 -00 00 00-01 -18 -10 -00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 22 00 00 00 00 00 00 00 00 86 95 04
-型号 -版本 - -容量 -最大扫描时间-当前扫描时间 -停止-输入点-输出点-
SND=01 00 06 FF B4 56 04
//////////////////
无密码时:01 00 06 FF B4 56 04 01 38 74 FF 00 0A 00 6B 00 0C 00 00 00 00 00 00 00 01 00 00 00 03 00 01 00 00 00 00 18 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 22 00 00 00 00 00 00 00 00 FE 76 04
有密码时:01 00 06 FF B4 56 04 01 38 74 FF 00 0A 00 6B 00 0C 00 00 00 00 00 00 00 01 00 00 00 12 00 01 00 00 00 00 18 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 22 00 00 00 00 00 00 00 00 92 3E 04
===========================================================
清除PLC错误信息
SND=01 00 84 FF C9 AC 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
===========================================================
清除PLC数据块
SND=01 00 52 FF 76 2D 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04
===========================================================
上载密码为11111111时,用空密码建立上载通讯:
SND=01 08 58 FF 00 00 00 00 00 00 00 00 82 74 04
RCV=01 00 06 FF B4 56 04
01 00 34 FF D7 A1 04(返回命令cmd=34,错误)
==输入正确密码11111111后:
SND=01 08 58 FF 31 31 31 31 31 31 31 31 16 1A 04
RCV=01 00 06 FF B4 56 04
01 00 33 FF 4E 36 04(返回命令cmd=33,正确)
SND=01 00 06 FF B4 56 04 01 00 63 00 5E 79 04(开始读PLC程序)
===总结====================================================
EC10 PLC协议格式:
起始字符01+数据长度n+CMD +数据+校验字符+终止字符04
01 +00 +74 FF+ +DA 6D +04
例如:
SND=01+00+06FF+B456+04
RCV=01+38+74FF+000A006B000C0000000000000000000000000000000000011810000000000000000000000000000000000000000001220000000000000000+8695+04
/////////////////////////////////
设置上载密码命令cmd=57
建立上载通讯命令cmd=58
设置下载密码命令cmd=59
建立下载通讯命令cmd=5A
设置监视密码命令cmd=5B
建立监视通讯命令cmd=5C
===问题=====================================================
校验字符的计算公式是什么?