1、CDT规约解读精品文档CDT规约解读 在电力行业,采集RTU数据经常会选择CDT规约,而物理链路上一般走串口232转485。如果是短距离传输,不需要转发器,传输距离长了最好232转485后转光纤再转485转232,防止信号衰败丢失。 下面主要介绍CDT规约。相对101规约、102规约和104规约,CDT规约比较简单。 调试的时候可以使用串口调试工具接收串口报文,3个eb 90 开头的即可确定是CDT规约。转:规约要点(1)源地址和目的地址设为1。(2)频率转发序号设置从偶数开始,通常为2点放到一个信息字内,功能码0x8A, BCD码发送。(3)要求转发遥测值传送的是一次值,要配置系数值。(工程
2、转换或比例缩放)(4)转发遥测值带品质描述。 设置溢出标志:额定值小于2047的设成额定值,大于2047的设成2047,电压限值设成1.2倍额定值。 由于CDT发送的最大码值为 -2048 2047,所以当最大值大于2047时要放缩发送. 可计算总加遥测上传。(5)遥测转发序列可设定:ABA ABA ABC ABA ABA ABC ABA ABA ABC D1 D2 (举例)(6)遥测分为重要遥测,次要遥测,一般遥测。YCA32点;YCB32点;YCC其余点,遥测分配的功能码共有128个,最大传送数256。D1遥信分配的功能码共有16个,最大传送数512.(7)每个E帧只上送一个SOE。(8)
3、华北网调要求远动双通道上送数据,保证其主备通道数据完全一致。(双机并行或单机双通道)(9)事故总信号放在第一位遥信,即YX1;事故时为“1”,无事故时为“0”。总加遥测上送。上行信息的优先级排列顺序和传送时间要求:l 对时的子站时钟返回信息插入传送l 变位遥信、子站工作状态变化信息插入传送,要求在1s内送到主站l 遥控、升降命令的返送校核信息插入传送l 重要遥测安排在A帧传送,循环时间不大于3sl 次要遥测安排在B帧传送,循环时间一般不大于6sl 一般遥测安排在C帧传送,循环时间一般不大于20sl 遥信状态信息,包括子站工作状态信息,安排在D1帧定时传送l 电能脉冲计数值安排在D2帧定时传送l
4、 事项顺序记录安排在E帧以帧插入方式传送下行(主站至子站)命令的优先级排列如下:l 召唤子站时钟,设置子站时钟校正值,设置子站时钟l 遥控选择、执行、撤消命令,升降选择、执行、撤消命令,设定命令l 广播命令l 复归命令l D帧传送的遥信状态、电能脉冲计数值是慢变化量,以几分钟至几十分钟循环传送。l E帧传送的事件顺序记录是随机量,同一事件顺序记录应分别在三个E帧内重复传送。帧类别代号定义表 下文是一段CDT报文解读的例子,读者可以根据CDT规约标准来逐渐理解CDT规约。 RTU发送重要遥测(A帧) 源地址=1 目标地址=1 信息字数=32eb 90 eb 90 eb 90 同步头71 61 2
5、0 01 01 11 控制字 00 00 00 00 00 FF 01 00 00 00 00 9d 02 00 00 00 00 3b 03 00 00 00 00 59 04 00 00 00 00 70 05 00 00 00 00 12 06 00 00 00 00 b4 07 00 00 00 00 d6 08 00 00 00 00 e6 09 00 00 00 00 84 0a 00 00 00 00 22 0b 00 00 00 00 40 0c 00 00 00 00 69 0d 00 00 00 00 0b 0e 00 00 00 00 ad 0f 00 00 00 00
6、cf 10 00 00 00 00 cd 11 00 00 00 00 af 12 00 00 00 00 09 13 00 00 00 00 6b 14 00 00 00 00 42 15 00 00 00 00 20 16 00 00 00 00 86 17 00 00 00 00 e4 18 00 00 00 00 d4 19 00 00 00 00 b6 1a 00 00 00 00 10 1b 00 00 00 00 72 1c 00 00 00 00 5b 1d 00 00 00 00 39 1e 00 00 00 00 9f 1f 00 00 00 00 fd 解读 eb 90
7、eb 90 eb 90 同步头71 61 20 01 01 11 控制字 61重要遥测 20 32个信息数 01 源站, 01 目的站 11 校验00 00 00 00 00 FF 00(信息地址) 00 00 (点号0,值为0 )00 00 (点号1,值为0 ) FF (校验)解读 01 00 00 00 00 9d 其他类似01(信息地址) 00 00 (点号2,值为0 )00 00 (点号3,值为0 ) FF (校验)次要遥测(B帧) 源地址=1 目标地址=1 信息字数=32eb 90 eb 90 eb 90 同步头71 c2 20 01 01 d4 控制字20 00 00 00 00
8、9b 21 00 00 00 00 f9 22 00 00 00 00 5f23 00 00 00 00 3d 24 00 00 00 00 14 25 00 00 00 00 76 26 00 00 00 00 d0 27 00 00 00 00 b2 28 00 00 00 00 82 29 00 00 0000 e0 2a 00 00 00 00 46 2b 00 00 00 00 24 2c 00 00 00 00 0d 2d 00 00 00 00 6f 2e 00 00 00 00 c9 2f 00 00 00 00 ab 30 00 00 00 00 a9 31 00 00 00
9、 00 cb 32 00 00 00 00 6d 33 00 00 00 00 0f 34 00 00 00 00 26 35 0000 00 00 44 36 00 00 00 00 e2 37 00 00 00 00 80 38 00 00 00 00 b0 39 00 00 00 00 d2 3a 00 00 00 00 74 3b 00 00 00 00 16 3c 00 00 00 00 3f 3d 00 00 00 00 5d 3e 00 00 00 00 fb 3f 00 00 00 00 99解读 :eb 90 eb 90 eb 90 同步头71 c2 20 01 01 d4
10、控制字 c2次要遥测 20 32个信息数 01 源站, 01 目的站 d4 校验信息字解读同上。电能脉冲数值(D2帧) 源地址=1 目标地址=1 信息字数=64eb 90 eb 90 eb 90 71 85 40 01 01 e8 a0 00 00 00 00 0c a1 00 00 00 00 6e a2 00 00 00 00 c8 a3 00 00 00 00 aa a4 00 00 00 00 83 a5 00 00 00 00 e1 a6 00 00 00 00 47 a7 00 00 00 00 25 a8 00 00 00 00 15 a9 00 00 00 00 77 aa 0
11、0 00 00 00 d1 ab 00 00 00 00 b3 ac 00 00 00 00 9a ad 00 00 00 00 f8 ae 00 00 00 00 5e af 00 00 00 00 3c b0 00 00 00 00 3e b1 00 00 00 00 5c b2 00 00 00 00 fa b3 00 00 00 00 98 b4 00 00 00 00 b1 b5 00 00 00 00 d3 b6 00 00 00 00 75 b7 00 00 00 00 17 b8 00 00 00 00 27 b9 00 00 00 00 45 ba 00 00 00 00 e
12、3bb 00 00 00 00 81 bc 00 00 00 00 a8 bd 00 00 00 00 ca be 00 00 00 00 6c bf 00 00 00 00 0e c0 00 00 00 00 a0 c1 00 00 00 00 c2 c2 00 00 00 00 64 c3 00 00 00 00 06c4 00 00 00 00 2f c5 00 00 00 00 4d c6 00 00 00 00 eb c7 00 00 00 00 89 c8 00 00 00 00 b9 c9 00 00 00 00 db ca 00 00 00 00 7d cb 00 00 00
13、00 1f cc 00 00 00 00 36 cd 00 00 00 00 54 ce 00 00 00 00 f2 cf 00 00 00 00 90 d0 00 00 00 00 92 d1 00 00 00 00 f0 d2 00 00 00 00 56 d3 00 00 00 00 34 d4 00 00 00 00 1d d5 00 00 00 00 7f d6 00 00 00 00 d9 d7 00 00 00 00 bb d8 00 00 00 00 8b d9 00 00 00 00 e9 da 00 00 00 00 4f db 00 00 00 00 2d dc 00 00 00 00 04 dd 00 00 00 00 66 de 0000 00 00 c0 df 00 00 00 00 a2 解读eb 90 eb 90 eb 90 同步头71 85 40 01 01 e8 控制字 85电能脉冲记数值 40 64个信息数 01 源站, 01 目的站 e8 校验a0 00 00 00 00 0c 第0路脉冲 脉冲计数值 0,注意计数值为32位。a1 00 00 00 00 6e第1路脉冲 脉冲计数值 0,注意计数值为32位其他类似。收集于网络,如有侵权请联系管理员删除