;创建者:王剑锋 ;创建时间:2011.11.21 A.M. ;协议名称: ;首次使用项目: ;注意,首次写ini文件,Index的超始值是0 #Rs232协议命令 [CMD] #;命令总数 cmd-count=62 ;0x1 cmd-1=市电输入R相电压 cmd-2=市电输入S相电压 cmd-3=市电输入T相电压 cmd-4=逆变输出R相电压 cmd-5=逆变输出S相电压 cmd-6=逆变输出T相电压 cmd-7=旁路输入R相电压 cmd-8=旁路输入S相电压 cmd-9=旁路输入T相电压 cmd-10=系统R相输出电流 cmd-11=系统S相输出电流 cmd-12=系统T相输出电流 cmd-13=系统输出R相视在功率 cmd-14=系统输出S相视在功率 cmd-15=系统输出T相视在功率 cmd-16=1号电池组电压值 cmd-17=2号电池组电压值 cmd-18=1号电池组电流值 cmd-19=2号电池组电流值 cmd-20=逆变输出频率 cmd-21=当前在线模块数量 cmd-22=系统设置最大模块数量 ;市电输入异常报警状态 cmd-23=A相欠压 cmd-24=A相过压 cmd-25=B相欠压 cmd-26=B相过压 cmd-27=C相欠压 cmd-28=C相过压 ;旁路输入异常报警状态 cmd-29=旁路输入异常报警状态 cmd-30=逆变输出异常报警状态 ;直流异常报警状态 cmd-31=正极欠压 cmd-32=正极欠压关机 cmd-33=正极过压 cmd-34=负极欠压 cmd-35=负极欠压关机 cmd-36=负极过压 cmd-37=正极高于负极关机 cmd-38=负极高于正极关机 ;负载异常报警状态 cmd-39=A相过载 cmd-40=B相过载 cmd-41=C相过载 ;系统切换状态 cmd-42=A相欠压切旁路 cmd-43=B相欠压切旁路 cmd-44=C相欠压切旁路 cmd-45=A相过压切旁路 cmd-46=B相过压切旁路 cmd-47=C相过压切旁路 cmd-48=手动旁路 ;系统开关机状态 cmd-49=直流正极欠压关机 cmd-50=直流正极过压关机 cmd-51=直流负极欠压关机 cmd-52=直流负极过压关机 cmd-53=直流正极大于负极关机 cmd-54=直流负极大于正极关机 cmd-55=EPO关机 cmd-56=手动关机 ;其他状态1 cmd-57=不同步标识 cmd-58=相序错误标识 cmd-59=切换准备状态 cmd-60=均充状态 cmd-61=手动均浮充转换标识 cmd-62=三相输出标识 ;***************************************************** ;市电输入R相电压 [cmd-1] SendCmd=01 Index=0 Len=2 type=HEX1 ;市电输入S相电压 [cmd-2] SendCmd=01 Index=2 Len=2 type=HEX1 ;市电输入T相电压 [cmd-3] SendCmd=01 Index=4 Len=2 type=HEX1 ;逆变输出R相电压 [cmd-4] SendCmd=01 Index=6 Len=2 type=HEX1 ;逆变输出S相电压 [cmd-5] SendCmd=01 Index=8 Len=2 type=HEX1 ;逆变输出T相电压 [cmd-6] SendCmd=01 Index=10 Len=2 type=HEX1 ;旁路输入R相电压 [cmd-7] SendCmd=01 Index=12 Len=2 type=HEX1 ;旁路输入S相电压 [cmd-8] SendCmd=01 Index=14 Len=2 type=HEX1 ;旁路输入T相电压 [cmd-9] SendCmd=01 Index=16 Len=2 type=HEX1 ;系统R相输出电流 [cmd-10] SendCmd=01 Index=18 Len=2 type=HEX1 ;系统S相输出电流 [cmd-11] SendCmd=01 Index=20 Len=2 type=HEX1 ;系统T相输出电流 [cmd-12] SendCmd=01 Index=22 Len=2 type=HEX1 ;系统输出R相视在功率 [cmd-13] SendCmd=01 Index=24 Len=2 type=HEX1 ;系统输出S相视在功率 [cmd-14] SendCmd=01 Index=26 Len=2 type=HEX1 ;系统输出T相视在功率 [cmd-15] SendCmd=01 Index=28 Len=2 type=HEX1 ;1号电池组电压值 [cmd-16] SendCmd=01 Index=30 Len=2 type=HEX1 ;2号电池组电压值 [cmd-17] SendCmd=01 Index=32 Len=2 type=HEX1 ;1号电池组电流值 [cmd-18] SendCmd=01 Index=34 Len=2 type=HEX2 ;2号电池组电流值 [cmd-19] SendCmd=01 Index=36 Len=2 type=HEX2 ;逆变输出频率 [cmd-20] SendCmd=01 Index=38 Len=2 type=HEX1 ;当前在线模块数量 [cmd-21] SendCmd=01 Index=40 Len=1 type=HEX3 ;系统设置最大模块数量 [cmd-22] SendCmd=01 Index=41 Len=1 type=HEX3 ;市电输入异常报警状态 ;A相欠压 [cmd-23] SendCmd=01 Index=42 Len=1 Sbit=0 Ebit=0 type=HEX4 ;A相过压 [cmd-24] SendCmd=01 Index=42 Len=1 Sbit=1 Ebit=1 type=HEX4 ;B相欠压 [cmd-25] SendCmd=01 Index=42 Len=1 Sbit=2 Ebit=2 type=HEX4 ;B相过压 [cmd-26] SendCmd=01 Index=42 Len=1 Sbit=3 Ebit=3 type=HEX4 ;C相欠压 [cmd-27] SendCmd=01 Index=42 Len=1 Sbit=4 Ebit=4 type=HEX4 ;C相过压 [cmd-28] SendCmd=01 Index=42 Len=1 Sbit=5 Ebit=5 type=HEX4 ;旁路输入异常报警状态 [cmd-29] SendCmd=01 Index=43 Len=1 type=HEX4 ;逆变输出异常报警状态 [cmd-30] SendCmd=01 Index=44 Len=1 type=HEX4 ;直流异常报警状态 ;正极欠压 [cmd-31] SendCmd=01 Index=45 Len=1 Sbit=0 Ebit=0 type=HEX4 ;正极欠压关机 [cmd-32] SendCmd=01 Index=45 Len=1 Sbit=1 Ebit=1 type=HEX4 ;正极过压 [cmd-33] SendCmd=01 Index=45 Len=1 Sbit=2 Ebit=2 type=HEX4 ;负极欠压 [cmd-34] SendCmd=01 Index=45 Len=1 Sbit=3 Ebit=3 type=HEX4 ;负极欠压关机 [cmd-35] SendCmd=01 Index=45 Len=1 Sbit=4 Ebit=4 type=HEX4 ;负极过压 [cmd-36] SendCmd=01 Index=45 Len=1 Sbit=5 Ebit=5 type=HEX4 ;正极高于负极关机 [cmd-37] SendCmd=01 Index=45 Len=1 Sbit=6 Ebit=6 type=HEX4 ;负极高于正极关机 [cmd-38] SendCmd=01 Index=45 Len=1 Sbit=7 Ebit=7 type=HEX4 ;负载异常报警状态 ;A相过载 [cmd-39] SendCmd=01 Index=46 Len=1 Sbit=0 Ebit=0 type=HEX4 ;B相过载 [cmd-40] SendCmd=01 Index=46 Len=1 Sbit=1 Ebit=1 type=HEX4 ;C相过载 [cmd-41] SendCmd=01 Index=46 Len=1 Sbit=2 Ebit=2 type=HEX4 ;系统切换状态 ;A相欠压切旁路 [cmd-42] SendCmd=01 Index=47 Len=1 Sbit=0 Ebit=0 type=HEX4 ;B相欠压切旁路 [cmd-43] SendCmd=01 Index=47 Len=1 Sbit=1 Ebit=1 type=HEX4 ;C相欠压切旁路 [cmd-44] SendCmd=01 Index=47 Len=1 Sbit=2 Ebit=2 type=HEX4 ;A相过压切旁路 [cmd-45] SendCmd=01 Index=47 Len=1 Sbit=3 Ebit=3 type=HEX4 ;B相过压切旁路 [cmd-46] SendCmd=01 Index=47 Len=1 Sbit=4 Ebit=4 type=HEX4 ;C相过压切旁路 [cmd-47] SendCmd=01 Index=47 Len=1 Sbit=5 Ebit=5 type=HEX4 ;手动旁路 [cmd-48] SendCmd=01 Index=47 Len=1 Sbit=7 Ebit=7 type=HEX4 ;系统开关机状态 ;直流正极欠压关机 [cmd-49] SendCmd=01 Index=48 Len=1 Sbit=0 Ebit=0 type=HEX4 ;直流正极过压关机 [cmd-50] SendCmd=01 Index=48 Len=1 Sbit=1 Ebit=1 type=HEX4 ;直流负极欠压关机 [cmd-51] SendCmd=01 Index=48 Len=1 Sbit=2 Ebit=2 type=HEX4 ;直流负极过压关机 [cmd-52] SendCmd=01 Index=48 Len=1 Sbit=3 Ebit=3 type=HEX4 ;直流正极大于负极关机 [cmd-53] SendCmd=01 Index=48 Len=1 Sbit=4 Ebit=4 type=HEX4 ;直流负极大于正极关机 [cmd-54] SendCmd=01 Index=48 Len=1 Sbit=5 Ebit=5 type=HEX4 ;EPO关机 [cmd-55] SendCmd=01 Index=48 Len=1 Sbit=6 Ebit=6 type=HEX4 ;手动关机 [cmd-56] SendCmd=01 Index=48 Len=1 Sbit=7 Ebit=7 type=HEX4 ;其他状态1 ;不同步标识 [cmd-57] SendCmd=01 Index=49 Len=1 Sbit=0 Ebit=0 type=HEX4 ;相序错误标识 [cmd-58] SendCmd=01 Index=49 Len=1 Sbit=1 Ebit=1 type=HEX4 ;切换准备状态 [cmd-59] SendCmd=01 Index=49 Len=1 Sbit=2 Ebit=2 type=HEX4 ;均充状态 [cmd-60] SendCmd=01 Index=49 Len=1 Sbit=3 Ebit=3 type=HEX4 ;手动均浮充转换标识 [cmd-61] SendCmd=01 Index=49 Len=1 Sbit=4 Ebit=4 type=HEX4 ;三相输出标识 [cmd-62] SendCmd=01 Index=49 Len=1 Sbit=5 Ebit=5 type=HEX4 #Rs232协议命令类型 [TYPE] #类型总数 type-count=62 type-1=CMD