本文主要是介绍IEC104文件传输协议,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
2024/6/19 20:25:07 IP Address 127.0.0.1 Port number 2404: (选择文件) T -> 68 11 08 00 18 00 7a 01 0d 00 01 00 00 00 00 01 00 00 01
2024/6/19 20:25:07 IP Address 127.0.0.1 Port number 2404: (文件准备就绪)R <- 68 13 18 00 0a 00 78 01 0d 00 01 00 00 00 00 01 00 06 00 00 00
2024/6/19 20:25:07 IP Address 127.0.0.1 Port number 2404: (召唤文件)T -> 68 11 0a 00 1a 00 7a 01 0d 00 01 00 00 00 00 01 00 01 02
2024/6/19 20:25:07 IP Address 127.0.0.1 Port number 2404: (节准备就绪)R <- 68 14 1a 00 0c 00 79 01 0d 00 01 00 00 00 00 01 00 01 06 00 00 00
2024/6/19 20:25:07 IP Address 127.0.0.1 Port number 2404: (节召唤)T -> 68 11 0c 00 1c 00 7a 01 0d 00 01 00 00 00 00 01 00 01 06
2024/6/19 20:25:07 IP Address 127.0.0.1 Port number 2404: (节传输)R <- 68 17 1c 00 0e 00 7d 01 0d 00 01 00 00 00 00 01 00 01 06 31 32 33 34 35 36
2024/6/19 20:25:07 IP Address 127.0.0.1 Port number 2404: (最后一节传输完成)R <- 68 12 1e 00 0e 00 7b 01 0d 00 01 00 00 00 00 01 00 01 03 35
2024/6/19 20:25:07 IP Address 127.0.0.1 Port number 2404: (节接收完成)T -> 68 11 0e 00 20 00 7c 01 0d 00 01 00 00 00 00 01 00 01 03
2024/6/19 20:25:07 IP Address 127.0.0.1 Port number 2404: (文件传输完成)R <- 68 12 20 00 10 00 7b 01 0d 00 01 00 00 00 00 01 00 01 01 35
2024/6/19 20:25:07 IP Address 127.0.0.1 Port number 2404: (文件接收完成)T -> 68 11 10 00 22 00 7c 01 0d 00 01 00 00 00 00 01 00 01 01
2024/6/19 20:25:17 IP Address 127.0.0.1 Port number 2404: R <- 68 04 01 00 12 00
2024/6/19 20:25:17 IP Address 127.0.0.1 Port number 2404: T -> 68 04 01 00 22 00
68 11 08 00 18 00
typeid=7a (选择文件)
objnums=01
cot=0d 00 (文件传输)
asdu=01 00
ioa=00 00 00
nof=01 00
nos=00
scq=01 (选择文件 0x00缺省,0x01选择文件,0x02请求文件,0x03停止激活文件,0x04删除文件,0x05选择节,0x06请求节,0x07停止激活节)
==========================================================================================================================
68 13 18 00 0a 00
typeid=78 (文件准备就绪)
objnums=01
cot=0d 00
asdu=01 00
ioa=00 00 00
nof=01 00
lof=06 00 00
frq=00 (bit7=0肯定确认/bit7=1否定确认)
==========================================================================================================================
68 11 0a 00 1a 00
typeid=7a (召唤文件)
objnums=01
cot=0d 00
asdu=01 00
ioa=00 00 00
nof=01 00
nos=01 (请求第一节)
scq=02 (请求文件)
==========================================================================================================================
68 14 1a 00 0c 00
typeid=79 (节准备就绪)
numobjs=01
cot=0d 00
asdu=01 00
ioa=00 00 00
nof=01 00
nos=01
los=06 00 00
srq=00 (0x00节准备就绪,0x80节未准备就绪)
==========================================================================================================================
68 11 0c 00 1c 00
typeid=7a (节召唤)
objnums=01
cot=0d 00
asdu=01 00
ioa=00 00 00
nof=01 00
nos=01
scq=06(0x06请求节)
==========================================================================================================================
68 17 1c 00 0e 00
typeid=7d (段)
objnums=01
cot=0d 00
asdu=01 00
ioa=00 00 00
nof=01 00
nos=01
los=06
content=31 32 33 34 35 36
==========================================================================================================================
68 12 1e 00 0e 00
typeid=7b (最后的段)
objnums=01
cot=0d 00
asdu=01 00
ioa=00 00 00
nof=01 00
nos=01
lsq=03 (0x00未用,0x01不带停止激活的文件传输,0x02带停止激活的文件传输,0x03不带停止激活的节传输,0x04带停止激活的节传输)
chs=35(一个节的全部8位位组不考虑溢出的算术和)
==========================================================================================================================
68 11 0e 00 20 00
typeid=7c
objnums=01
cot=0d 00
asdu=01 00
ioa=00 00 00
nof=01 00
nos=01
afq=03(0x00缺省,0x01文件传输肯定认可,0x02文件传输否定认可,0x03节传输肯定认可,0x04节传输否定认可)
==========================================================================================================================
68 12 20 00 10 00
typeid=7b
objnums=01
cot=0d 00
asdu=01 00
ioa=00 00 00
nof=01 00
nos=01
lsq=01 (0x01不带停止激活的文件传输)
chs=35(整个文件的全部8位位组不考虑溢出的算术和)
==========================================================================================================================
68 11 10 00 22 00
typeid=7c
numobjs=01
cot=0d 00
asdu=01 00
ioa=00 00 00
nof=01 00
nos= 01
afq=01(0x01文件传输肯定认可)
这篇关于IEC104文件传输协议的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!