当前位置: 首页 > 工业控制产品 > 自动化控制 > PLC可编程控制器

类型分类:
科普知识
数据分类:
PLC可编程控制器

三菱plc程序加密办法进程阐明和协议剖析

发布日期:2022-04-26 点击率:115 品牌:三菱_Mitsubishi


三菱plc程序加密办法进程阐明和协议剖析
加密进程如下初度翻开串口
[00000000] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 (此处设置波特率)
[00000000] IOCTL_SERIAL_SET_LINE_ConTROL StopBits: 1, Parity: Even, DataBits: 7(通讯格局)
[00000001] IRP_MJ_WRITE Length: 0001, data: 02 ( "STX"通讯开端符02H)
[00000001] IRP_MJ_WRITE Length: 0005, data: 37 32 35 30 46(此处CMD的置位指令37H,32 35 30 46及是要置位的地址‘250F’操作位元件的)
[00000001] IRP_MJ_WRITE Length: 0001, data: 03 (此处是终,及到这儿完毕的意思代码‘03H’)
[00000001] IRP_MJ_WRITE Length: 0002, data: 31 37 (校验和,从37H到此处的03H的和,假定有溢出,取终究两位)
[00000008] IRP_MJ_WRITE Length: 0001, data: 02 ( "STX"通讯开端符02H)
[00000008] IRP_MJ_WRITE Length: 0005, data: 37 32 35 30 46(此处CMD的置位指令37H,32 35 30 46及是要置位的地址‘250F’
[00000008] IRP_MJ_WRITE Length: 0001, data: 03 (此处是终,及到这儿完毕的意思代码‘03H’)
[00000008] IRP_MJ_WRITE Length: 0002, data: 31 37 (校验和,从37H到此处的03H的和,假定有溢出,取终究两位)
[00000015] IRP_MJ_WRITE Length: 0001, data: 02 ( "STX"通讯开端符02H)
[00000015] IRP_MJ_WRITE Length: 0011, data: 31 38 30 30 30 30 32 30 30 30 30 (此处的CMD功用码31H,即是写入数据,38 30 30 30即是写入数据的首地址‘8000’30 32即是写入的操作位数这儿是2位 那即是一个双字,30 30 30 30即是这个双字的数据为'0'
[00000015] IRP_MJ_WRITE Length: 0001, data: 03 (此处是终,及到这儿完毕的意思代码‘03H’)
[00000016] IRP_MJ_WRITE Length: 0002, data: 31 45 (校验和,从37H到此处的03H的和,假定有溢出,取终究两位)
[00000022] IRP_MJ_WRITE Length: 0001, data: 02 ( "STX"通讯开端符02H)
[00000022] IRP_MJ_WRITE Length: 0011, data: 31 38 30 30 30 30 32 30 30 30 30 (此处的CMD功用码31H,即是写入数据,38 30 30 30即是写入数据的首地址‘8000’30 32即是写入的操作位数这儿是2位 那即是一个双字,30 30 30 30即是这个双字的数据为'0'
[00000023] IRP_MJ_WRITE Length: 0001, data: 03 (此处是终,及到这儿完毕的意思代码‘03H’)
[00000023] IRP_MJ_WRITE Length: 0002, data: 31 45 (校验和,从37H到此处的03H的和,假定有溢出,取终究两位)
[00000030] IRP_MJ_CLOSE Port Closed 封闭串口
第2次翻开串口
[00000000] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600
[00000000] IOCTL_SERIAL_SET_LINE_ConTROL StopBits: 1, Parity: Even, DataBits: 7
[00000000] IRP_MJ_WRITE Length: 0001, data: 02 ( "STX"通讯开端符02H)
[00000000] IRP_MJ_WRITE Length: 0005, data: 38 32 35 30 46 (此处CMD的复位指令38H,32 35 30 46及是要复位的地址‘250F’操作位元件的,这儿把刚刚置位的205F的地址复位了)
[00000001] IRP_MJ_WRITE Length: 0001, data: 03 (此处是终,及到这儿完毕的意思代码‘03H’)
[00000001] IRP_MJ_WRITE Length: 0002, data: 31 38 (校验和,从37H到此处的03H的和,假定有溢出,取终究两位)
[00000007] IRP_MJ_WRITE Length: 0001, data: 02 ( "STX"通讯开端符02H)
[00000007] IRP_MJ_WRITE Length: 0005, data: 38 32 35 30 46 (此处CMD的复位指令38H,32 35 30 46及是要复位的地址‘250F’操作位元件的,这儿把刚刚置位的250F的地址复位了)
[00000008] IRP_MJ_WRITE Length: 0001, data: 03 (此处是终,及到这儿完毕的意思代码‘03H’)
[00000008] IRP_MJ_WRITE Length: 0002, data: 31 38 (校验和,从37H到此处的03H的和,假定有溢出,取终究两位)
[00000010] IRP_MJ_CLOSE Port Closed


下一篇: PLC、DCS、FCS三大控

上一篇: MATLAB和Simulink在航

推荐产品

更多