;创建者:王剑锋 ;创建时间:16:55 2012-04-14 ;协议名称:itrust adapt ;UPS型号: 艾默生 iTrust Adapt ;首次使用项目:北京\龙头国际\联想 ;注意,首次写ini文件,Index的超始值是0 #Rs232协议命令 [CMD] #;命令总数 cmd-count=87 ; 42H cmd-1=交流输入相电压A cmd-2=交流输入相电压B cmd-3=交流输入相电压C cmd-4=交流输出相电压A cmd-5=交流输出相电压B cmd-6=交流输出相电压C cmd-7=交流输出相电流A cmd-8=交流输出相电流B cmd-9=交流输出相电流C cmd-10=直流输入电压(电池正组) cmd-11=输出频率 cmd-12=标示电池数量m cmd-13=标示温度数量n cmd-14=用户自定义遥测内容数量 cmd-15=输入频率 cmd-16=旁路电压 cmd-17=旁路电流 cmd-18=交流输出有功功率 cmd-19=交流输出视在功率 cmd-20=交流输出负载百分比 ; 43H cmd-21=供电方式(01H:UPS(逆变)供电 02H:旁路供电 E0H:均不供电) cmd-22=用户自定义状态数量p(预留:07H) cmd-23=整流侧供电状态(E0H:市电电池均不供电 E1H:市电供电状态 E2H:电池供电状态) cmd-24=电池充电状态(E0H:非充电非放电状态 E1H:浮充状态 E2H:均充状态 E3H:放电状态) cmd-25=电池自检状态(E0H:自检中 E1H:不在自检) cmd-26=电池自检允许状态(E0H:允许自检 E1H:不能自检) cmd-27=电池电压预告警状态(E0H:电池电压正常 E1H:电池电压低预告警) cmd-28=电池需维护状态(预留:20H) cmd-29=开机状态(E0H:关机状态 E1H:开机状态) ; 44H cmd-30=同步/不同步状态(00H:正常 03H:不同步) cmd-31=市电(00H:正常 F0H:异常) cmd-32=整流器(00H:正常 F0H:故障) cmd-33=逆变器(00H:正常 F0H:故障) cmd-34=旁路(00H:正常 F0H:异常) cmd-35=蓄电池电压异常(00H:正常 01H:低于下限 02H:高于上限 F0H:故障) cmd-36=标示电池数量m(预留:00H) cmd-37=用户自定义告警数量p(预留:0EH) cmd-38=散热器过温(00H:正常 F0H:过温) cmd-39=风扇故障(00H:正常 F0H:故障) cmd-40=缺零故障(00H:正常 F0H:故障) cmd-41=母线电压异常(00H:正常 F0H:异常) cmd-42=充电器故障(00H:正常 F0H:故障) cmd-43=电池EOD(00H:正常 F0H:故障) cmd-44=辅助电源故障(00H:正常 F0H:故障) cmd-45=输出过载(00H:正常 F0H:过载) cmd-46=输出短路(00H:正常 F0H:短路) cmd-47=过载超时(00H:正常 F0H:短路) cmd-48=均流故障(00H:正常 F0H:故障) cmd-49=并机线故障(00H:正常 F0H:故障) cmd-50=并机地址冲突(00H:正常 F0H:故障) cmd-51=并机通信故障(00H:正常 F0H:短路) ;47 cmd-52=蓄电池总电压上限(预留:20H) cmd-53=蓄电池总电压下限(预留:20H) cmd-54=蓄电池单体电压上限(预留:20H) cmd-55=蓄电池单体电压下限(预留:20H) cmd-56=用户自定义参数数量p(预留:14H) cmd-57=电压等级(1-220V(默认) 2-230V 3-240V) cmd-58=额定频率(1-50Hz(默认) 2-60Hz) cmd-59=逆变器频率跟踪范围(1-±10%(默认)) cmd-60=逆变器频率跟踪速率(1-0.2Hz/s(默认) 2-1Hz/s) cmd-61=旁路工作电压上限(1―253V(默认)) cmd-62=旁路工作电压下限(1―120V(默认)) cmd-63=旁路输出设置(1―允许输出(默认-常开) 2―禁止输出(常闭)) cmd-64=开机模式(1―手动开机(默认) 2―自动开机) cmd-65=并联冗余数设置(预留:20H) cmd-66=内部电池容量设置(预留:20H) cmd-67=外部电池容量设置(预留:20H) cmd-68=温度补偿允许设置(预留:20H) cmd-69=均充允许设置(预留:20H) cmd-70=电池关机点电压设置(预留:20H) cmd-71=电池预告警时间设置(预留:20H) cmd-72=电池自检周期设置(1―禁止周期自检(默认) 1-3个月 2-6个月 3-9个月 4-12个月) cmd-73=ECO模式(1―允许(默认) 2―禁止) cmd-74=电池EOD自动开机设置(1―允许(默认) 2―禁止) cmd-75=系统容量设置(1―5k(默认) 2―6k) cmd-76=通讯速率设置(1―2400 2―4800 3―9600(默认) 4―19200) ; 45H 遥控命令 cmd-77=开始电池有无自检 cmd-78=开始电池维护自检 cmd-79=结束电池自检 cmd-80=UPS开机 cmd-81=UPS关机 cmd-82=UPS关闭输出 ; 49H 设置系统参数(定点数) cmd-83=电池自检周期设置 cmd-84=ECO模式 cmd-85=电池EOD自动开机设置 cmd-86=系统容量设置 cmd-87=通讯速率设置 ;------------------------------------------------------------------ [cmd-1] SendCmd=42 Index=15 Len=4 type=FLOAT [cmd-2] SendCmd=42 Index=19 Len=4 type=FLOAT [cmd-3] SendCmd=42 Index=23 Len=4 type=FLOAT [cmd-4] SendCmd=42 Index=27 Len=4 type=FLOAT [cmd-5] SendCmd=42 Index=31 Len=4 type=FLOAT [cmd-6] SendCmd=42 Index=35 Len=4 type=FLOAT [cmd-7] SendCmd=42 Index=39 Len=4 type=FLOAT [cmd-8] SendCmd=42 Index=43 Len=4 type=FLOAT [cmd-9] SendCmd=42 Index=47 Len=4 type=FLOAT [cmd-10] SendCmd=42 Index=51 Len=4 type=FLOAT [cmd-11] SendCmd=42 Index=55 Len=4 type=FLOAT [cmd-12] SendCmd=42 Index=59 Len=2 type=BYTE [cmd-13] SendCmd=42 Index=61 Len=4 type=FLOAT [cmd-14] SendCmd=42 Index=65 Len=2 type=BYTE [cmd-15] SendCmd=42 Index=67 Len=4 type=FLOAT [cmd-16] SendCmd=42 Index=71 Len=4 type=FLOAT [cmd-17] SendCmd=42 Index=75 Len=4 type=FLOAT [cmd-18] SendCmd=42 Index=79 Len=4 type=FLOAT [cmd-19] SendCmd=42 Index=81 Len=4 type=FLOAT [cmd-20] SendCmd=42 Index=87 Len=4 type=FLOAT ;------------------------------------------------------------------ [cmd-21] SendCmd=43 Index=15 Len=2 type=BYTE [cmd-22] SendCmd=43 Index=17 Len=2 type=BYTE [cmd-23] SendCmd=43 Index=19 Len=2 type=BYTE [cmd-24] SendCmd=43 Index=21 Len=2 type=BYTE [cmd-25] SendCmd=43 Index=23 Len=2 type=BYTE [cmd-26] SendCmd=43 Index=25 Len=2 type=BYTE [cmd-27] SendCmd=43 Index=27 Len=2 type=BYTE [cmd-28] SendCmd=43 Index=29 Len=2 type=BYTE [cmd-29] SendCmd=43 Index=31 Len=2 type=BYTE ;------------------------------------------------------------------ [cmd-30] SendCmd=44 Index=15 Len=2 type=BYTE [cmd-31] SendCmd=44 Index=17 Len=2 type=BYTE [cmd-32] SendCmd=44 Index=19 Len=2 type=BYTE [cmd-33] SendCmd=44 Index=21 Len=2 type=BYTE [cmd-34] SendCmd=44 Index=23 Len=2 type=BYTE [cmd-35] SendCmd=44 Index=25 Len=2 type=BYTE [cmd-36] SendCmd=44 Index=27 Len=2 type=BYTE [cmd-37] SendCmd=44 Index=29 Len=2 type=BYTE [cmd-38] SendCmd=44 Index=31 Len=2 type=BYTE [cmd-39] SendCmd=44 Index=33 Len=2 type=BYTE [cmd-40] SendCmd=44 Index=35 Len=2 type=BYTE [cmd-41] SendCmd=44 Index=37 Len=2 type=BYTE [cmd-42] SendCmd=44 Index=39 Len=2 type=BYTE [cmd-43] SendCmd=44 Index=41 Len=2 type=BYTE [cmd-44] SendCmd=44 Index=43 Len=2 type=BYTE [cmd-45] SendCmd=44 Index=45 Len=2 type=BYTE [cmd-46] SendCmd=44 Index=47 Len=2 type=BYTE [cmd-47] SendCmd=44 Index=49 Len=2 type=BYTE [cmd-48] SendCmd=44 Index=51 Len=2 type=BYTE [cmd-49] SendCmd=44 Index=53 Len=2 type=BYTE [cmd-50] SendCmd=44 Index=55 Len=2 type=BYTE [cmd-51] SendCmd=44 Index=57 Len=2 type=BYTE ;------------------------------------------------------------------ [cmd-52] SendCmd=47 Index=15 Len=4 type=FLOAT [cmd-53] SendCmd=47 Index=19 Len=4 type=FLOAT [cmd-54] SendCmd=47 Index=23 Len=4 type=FLOAT [cmd-55] SendCmd=47 Index=27 Len=4 type=FLOAT [cmd-56] SendCmd=47 Index=31 Len=2 type=FLOAT [cmd-57] SendCmd=47 Index=33 Len=4 type=FLOAT [cmd-58] SendCmd=47 Index=37 Len=4 type=FLOAT [cmd-59] SendCmd=47 Index=41 Len=4 type=FLOAT [cmd-60] SendCmd=47 Index=45 Len=4 type=FLOAT [cmd-61] SendCmd=47 Index=49 Len=4 type=FLOAT [cmd-62] SendCmd=47 Index=53 Len=4 type=FLOAT [cmd-63] SendCmd=47 Index=57 Len=4 type=FLOAT [cmd-64] SendCmd=47 Index=61 Len=4 type=FLOAT [cmd-65] SendCmd=47 Index=65 Len=4 type=FLOAT [cmd-66] SendCmd=47 Index=69 Len=4 type=FLOAT [cmd-67] SendCmd=47 Index=71 Len=4 type=FLOAT [cmd-68] SendCmd=47 Index=75 Len=4 type=FLOAT [cmd-69] SendCmd=47 Index=79 Len=4 type=FLOAT [cmd-70] SendCmd=47 Index=83 Len=4 type=FLOAT [cmd-71] SendCmd=47 Index=87 Len=4 type=FLOAT [cmd-72] SendCmd=47 Index=91 Len=4 type=FLOAT [cmd-73] SendCmd=47 Index=95 Len=4 type=FLOAT [cmd-74] SendCmd=47 Index=99 Len=4 type=FLOAT [cmd-75] SendCmd=47 Index=103 Len=4 type=FLOAT [cmd-76] SendCmd=47 Index=107 Len=4 type=FLOAT ;------------------------------------------------------------------ #Rs232协议命令类型 [TYPE] #类型总数 type-count=2 #十六进制,BB代表UPS iTrust Adapt协议 type-1=iTrustAdapt