;创建者:王剑锋 ;创建时间:2011.11.21 A.M. ;协议名称: ;首次使用项目: ;注意,首次写ini文件,Index的超始值是0 #Rs232协议命令 [CMD] #;命令总数 cmd-count=121 ;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=三相输出标识 ;0x02 cmd-63=模块地址号 cmd-64=逆变输出R相电压 cmd-65=逆变输出T相电压 cmd-66=逆变输出S相电压 cmd-67=R相输出电流 cmd-68=T相输出电流 cmd-69=S相输出电流 cmd-70=R相有效电流 cmd-71=T相有效电流 cmd-72=S相有效电流 cmd-73=R相均流电流 cmd-74=T相均流电流 cmd-75=S相均流电流 cmd-76=交流输入R相电压 cmd-77=交流输入S相电压 cmd-78=交流输入T相电压 cmd-79=模块机内温度 cmd-80=交流输入S相电流 cmd-81=交流输入T相电流 cmd-82=1号直流电压 cmd-83=2号直流电压 ;交流输入异常报警状态 cmd-84=A相输入过压 cmd-85=B相输入过压 cmd-86=C相输入过压 cmd-87=A相输入欠压 cmd-88=B相输入欠压 cmd-89=C相输入欠压 ;直流异常报警状态 cmd-90=正负偏差过大 cmd-91=预充电正极欠压 cmd-92=预充电负极欠压 cmd-93=正极欠压 cmd-94=负极欠压 cmd-95=正极过压 cmd-96=负极过压 ;逆变异常报警状态1 cmd-97=A相过压 cmd-98=B相过压 cmd-99=C相过压 cmd-100=A相欠压 cmd-101=B相欠压 cmd-102=C相欠压 ;逆变异常报警状态2 cmd-103=A相过压 cmd-104=B相过压 cmd-105=C相过压 cmd-106=A相欠压 cmd-107=B相欠压 cmd-108=C相欠压 ;负载异常报警状态 cmd-109=A相125%过载 cmd-110=B相125%过载 cmd-111=C相125%过载 cmd-112=A相105%过载 cmd-113=B相105%过载 cmd-114=C相105%过载 ;0x06 cmd-115=R相输出功率因数 cmd-116=S相输出功率因数 cmd-117=T相输出功率因数 cmd-118=R相负载百分比 cmd-119=S相负载百分比 cmd-120=T相负载百分比 cmd-121=电池剩余容量 ;***************************************************** ;市电输入R相电压 [cmd-1] SendCmd=01 Index=0 Len=4 type=WORD ;市电输入S相电压 [cmd-2] SendCmd=01 Index=13 Len=4 type=WORD ;市电输入T相电压 [cmd-3] SendCmd=01 Index=13 Len=4 type=WORD ;逆变输出R相电压 [cmd-4] SendCmd=01 Index=13 Len=4 type=WORD ;逆变输出S相电压 [cmd-5] SendCmd=01 Index=13 Len=4 type=WORD ;逆变输出T相电压 [cmd-6] SendCmd=01 Index=13 Len=4 type=WORD ;旁路输入R相电压 [cmd-7] SendCmd=01 Index=13 Len=4 type=WORD ;旁路输入S相电压 [cmd-8] SendCmd=01 Index=13 Len=4 type=WORD ;旁路输入T相电压 [cmd-9] SendCmd=01 Index=13 Len=4 type=WORD ;系统R相输出电流 [cmd-10] SendCmd=01 Index=13 Len=4 type=WORD ;系统S相输出电流 [cmd-11] SendCmd=01 Index=13 Len=4 type=WORD ;系统T相输出电流 [cmd-12] SendCmd=01 Index=13 Len=4 type=WORD ;系统输出R相视在功率 [cmd-13] SendCmd=01 Index=13 Len=4 type=WORD ;系统输出S相视在功率 [cmd-14] SendCmd=01 Index=13 Len=4 type=WORD ;系统输出T相视在功率 [cmd-15] SendCmd=01 Index=13 Len=4 type=WORD ;1号电池组电压值 [cmd-16] SendCmd=01 Index=13 Len=4 type=WORD ;2号电池组电压值 [cmd-17] SendCmd=01 Index=13 Len=4 type=WORD ;1号电池组电流值 [cmd-18] SendCmd=01 Index=13 Len=4 type=WORD ;2号电池组电流值 [cmd-19] SendCmd=01 Index=13 Len=4 type=WORD ;逆变输出频率 [cmd-20] SendCmd=01 Index=13 Len=4 type=WORD ;当前在线模块数量 [cmd-21] SendCmd=01 Index=13 Len=4 type=WORD ;系统设置最大模块数量 [cmd-22] SendCmd=01 Index=13 Len=4 type=WORD ;市电输入异常报警状态 ;A相欠压 [cmd-23] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;A相过压 [cmd-24] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;B相欠压 [cmd-25] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;B相过压 [cmd-26] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;C相欠压 [cmd-27] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;C相过压 [cmd-28] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;旁路输入异常报警状态 [cmd-29] SendCmd=01 Index=13 Len=4 type=WORD ;逆变输出异常报警状态 [cmd-30] SendCmd=01 Index=13 Len=4 type=WORD ;直流异常报警状态 ;正极欠压 [cmd-31] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;正极欠压关机 [cmd-32] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;正极过压 [cmd-33] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;负极欠压 [cmd-34] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;负极欠压关机 [cmd-35] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;负极过压 [cmd-36] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;正极高于负极关机 [cmd-37] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;负极高于正极关机 [cmd-38] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;负载异常报警状态 ;A相过载 [cmd-39] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;B相过载 [cmd-40] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;C相过载 [cmd-41] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;系统切换状态 ;A相欠压切旁路 [cmd-42] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;B相欠压切旁路 [cmd-43] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;C相欠压切旁路 [cmd-44] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;A相过压切旁路 [cmd-45] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;B相过压切旁路 [cmd-46] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;C相过压切旁路 [cmd-47] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;手动旁路 [cmd-48] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;系统开关机状态 ;直流正极欠压关机 [cmd-49] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;直流正极过压关机 [cmd-50] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;直流负极欠压关机 [cmd-51] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;直流负极过压关机 [cmd-52] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;直流正极大于负极关机 [cmd-53] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;直流负极大于正极关机 [cmd-54] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;EPO关机 [cmd-55] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;手动关机 [cmd-56] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;其他状态1 ;不同步标识 [cmd-57] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;相序错误标识 [cmd-58] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;切换准备状态 [cmd-59] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;均充状态 [cmd-60] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;手动均浮充转换标识 [cmd-61] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;三相输出标识 [cmd-62] SendCmd=01 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;0x02 ;模块地址号 [cmd-63] SendCmd=02 Index=13 Len=4 type=WORD ;逆变输出R相电压 [cmd-64] SendCmd=02 Index=13 Len=4 type=WORD ;逆变输出T相电压 [cmd-65] SendCmd=02 Index=13 Len=4 type=WORD ;逆变输出S相电压 [cmd-66] SendCmd=02 Index=13 Len=4 type=WORD ;R相输出电流 [cmd-67] SendCmd=02 Index=13 Len=4 type=WORD ;T相输出电流 [cmd-68] SendCmd=02 Index=13 Len=4 type=WORD ;S相输出电流 [cmd-69] SendCmd=02 Index=13 Len=4 type=WORD ;R相有效电流 [cmd-70] SendCmd=02 Index=13 Len=4 type=WORD ;T相有效电流 [cmd-71] SendCmd=02 Index=13 Len=4 type=WORD ;S相有效电流 [cmd-72] SendCmd=02 Index=13 Len=4 type=WORD ;R相均流电流 [cmd-73] SendCmd=02 Index=13 Len=4 type=WORD ;T相均流电流 [cmd-74] SendCmd=02 Index=13 Len=4 type=WORD ;S相均流电流 [cmd-75] SendCmd=02 Index=13 Len=4 type=WORD ;交流输入R相电压 [cmd-76] SendCmd=02 Index=13 Len=4 type=WORD ;交流输入S相电压 [cmd-77] SendCmd=02 Index=13 Len=4 type=WORD ;交流输入T相电压 [cmd-78] SendCmd=02 Index=13 Len=4 type=WORD ;模块机内温度 [cmd-79] SendCmd=02 Index=13 Len=4 type=WORD ;交流输入S相电流 [cmd-80] SendCmd=02 Index=13 Len=4 type=WORD ;交流输入T相电流 [cmd-81] SendCmd=02 Index=13 Len=4 type=WORD ;1号直流电压 [cmd-82] SendCmd=02 Index=13 Len=4 type=WORD ;2号直流电压 [cmd-83] SendCmd=02 Index=13 Len=4 type=WORD ;交流输入异常报警状态 ;A相输入过压 [cmd-84] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;B相输入过压 [cmd-85] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;C相输入过压 [cmd-86] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;A相输入欠压 [cmd-87] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;B相输入欠压 [cmd-88] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;C相输入欠压 [cmd-89] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;直流异常报警状态 ;正负偏差过大 [cmd-90] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;预充电正极欠压 [cmd-91] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;预充电负极欠压 [cmd-92] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;正极欠压 [cmd-93] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;负极欠压 [cmd-94] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;正极过压 [cmd-95] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;负极过压 [cmd-96] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;逆变异常报警状态1 ;A相过压 [cmd-97] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;B相过压 [cmd-98] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;C相过压 [cmd-99] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;A相欠压 [cmd-100] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;B相欠压 [cmd-101] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;C相欠压 [cmd-102] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;逆变异常报警状态2 ;A相过压 [cmd-103] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;B相过压 [cmd-104] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;C相过压 [cmd-105] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;A相欠压 [cmd-106] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;B相欠压 [cmd-107] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;C相欠压 [cmd-108] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;负载异常报警状态 ;A相125%过载 [cmd-109] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;B相125%过载 [cmd-110] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;C相125%过载 [cmd-111] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;A相105%过载 [cmd-112] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;B相105%过载 [cmd-113] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;C相105%过载 [cmd-114] SendCmd=02 Index=13 Len=4 Sbit=0 Ebit=0 type=WORD ;0x06 ;R相输出功率因数 [cmd-115] SendCmd=02 Index=13 Len=4 type=WORD ;S相输出功率因数 [cmd-116] SendCmd=02 Index=13 Len=4 type=WORD ;T相输出功率因数 [cmd-117] SendCmd=02 Index=13 Len=4 type=WORD ;R相负载百分比 [cmd-118] SendCmd=02 Index=13 Len=4 type=WORD ;S相负载百分比 [cmd-119] SendCmd=02 Index=13 Len=4 type=WORD ;T相负载百分比 [cmd-120] SendCmd=02 Index=13 Len=4 type=WORD ;电池剩余容量 [cmd-121] SendCmd=02 Index=13 Len=4 type=WORD #Rs232协议命令类型 [TYPE] #类型总数 type-count=121 type-1=CMD