逆变器通讯协议
- 格式:pdf
- 大小:295.49 KB
- 文档页数:31
逆变器通信接口规定标准
逆变器有两个通迅接口,Rs232和R485接口,它们的功能和规定都有所不同:
一、接口:
1、Rs232采取不平衡传输方式,即所谓单端通讯。
而RS485则采用平衡传输,即差分传输方式。
2、Rs232只允许一对一通信,而RS-485接口在总线上是允许连接多达128个收发器。
3、Rs232被定义为一种在低速率串行通讯中增加通讯距离的单端标准。
4、Rs485无具体的物理形状,根据工程的实际情况而采用的接口。
二、通讯距离长短
1、Rs232:Rs232传输距离有限,最大传输距离标准值为15米,且只能点对点通讯,最大传输速率最大为20kB/s。
2、Rs485:Rs485最大无线传输距离为1200米。
最大传输速率为10Mbps,在100Kb/S的传输速率下,才可以达到最大的通信距离。
采用阻抗匹配、低衰减的专用电缆可以达到1800米!超过1200米,可加中继器(最多8只),这样传输距离接近10Km。
三、能否支持多点通讯
1、Rs232:Rs232接口在总线上只允许连接1个收发器,不能支持多站收发能力,所以只能点对点通信,不支持多点通讯。
2、Rs485:Rs485接口在总线上是允许连接多达128个收发器。
即具有多站通讯能力,这样用户可以利用单一的Rs485接口方便地建立起设备网络。
XXX48.8兆瓦村级光伏扶贫电站建设项目X标段80KW组串式逆变器技术协议买方:XXXXXX工程有限公司卖方:XXXXXXX科技有限公司设计方:XXXXXXX设计研究院签订日期:2019年4月签订地点:陕西·1 总则1、本技术协议适用于XXX“十三五”第二批光伏扶贫电站第四标段所需的组串式逆变器、智能通讯设备及其附属设备。
卖方提供设备的技术规格须响应本技术协议所提出的技术规定和要求。
2、本技术协议提出了最低限度的技术要求,并未对一切技术细节规定所有的技术要求和适用的标准,卖方应保证提供符合本技术协议和有关最新工业标准的优质产品及其相应服务。
对国家有关安全、健康、环保等强制性标准,必须满足其要求。
卖方提供的产品必须满足本技术协议的要求。
3、卖方执行的标准与本技术协议所列标准有矛盾时,按较高标准执行。
4、卖方应协同设计方完成深化方案设计,配合施工图设计,进行系统调试和验收,并承担培训及其它附带服务。
合同签订后10天内,卖方提出合同设备的设计、制造、检验/试验、装配、安装、调试、试运行、验收、运行和维护等采用的标准目录给买方,由买方确认.5、本技术协议要求卖方提供的文件和资料为中文版本。
2 工程概况1、工程概述1.1、逆变器设备采购清单125台型式规格为80kW的组串式逆变器、8台智能子方阵通讯设备及附属设备、配套服务。
1.2、场区位置及气候条件该项目选址位于XX市XX县XX镇、XX镇,场址位于东径106°01'26.28″~106°05'59″、北纬34°52'49″~34°50'58″之间,总占地面积约2353亩,本项目11个村级联建电站总装机容量为48.8MW,采用375Wp高效单晶硅组件,距离XX县城约14~20km,交通便利,场址海拔高程在1700m~1900m之间。
第四标段位于本电站山湾区域内,容量为9.7875MW。
并网逆变器通讯协议KNGI系列并网逆变器使用的是标准MODBUS通信协议,可与电站SCADA系统无缝对接。
通过TPC和工控机HMI实现集散控制,可以适应多种应用环境下的特定需求。
本协议在MODBUS-RTU规约下详细定义了数据序列、校检码等各类数据交换的必要内容。
一、通信方式提供RS232/RS422/RS485通讯接口,默认使用RS485接口通过屏蔽双绞进行通讯,通讯波特率的默认值为4800 Baud。
传输方式的定义如下。
◆Coding System 二进制编码8位◆Start bit 起始位1位◆Data bits 数据位8位◆Parity 校验无奇偶校验◆Stop bit 停止位2位◆Error checking 错误检测CRC(循环冗余校验)二、通信数据帧格式数据帧格式为发送方和接收方双方通用的帧格式,格式为(数字为16进制,标记部分为PDU)。
表2-1数据帧格式●地址(Address)域地址域在帧的开始部分,由一个字节(8位二进制码)组成,十进制为1~247。
调度这些位标明了用户指定的终端设备的地址,该设备将接收来自与之相连的主机数据。
每个终端设备的地址必须是唯一的,仅仅被寻址到的终端会响应包含了该地址的查询。
当终端发送回一个响应,响应中的从机地址数据便告诉了主机哪台终端正与之进行通信。
(注:并网逆变器地址的默认值为1。
)●功能(Function)域功能域代码告诉了被寻址到的终端执行何种功能。
表2-2 列出了KNGI系列并网逆变器提供的功能码,以及它们的意义和功能。
表2-2 功能码●数据(Data)域数据域包含了终端执行特定功能所需要的数据或者终端响应查询时采集到的数据。
这些数据的内容可能是数值、参考地址或者设置值。
例如:功能域码告诉终端读取一个寄存器,数据域则需要指明从哪个寄存器开始及读取多少个数据,内嵌的地址和数据依照类型和从机之间的不同内容而有所不同。
●错误校验(Check)域该域允许主机和终端检查传输过程中的错误。
特变电工并网逆变器通讯协议编制 盛虎 日期 2014-8-14 校准 刘永奎 日期 2014-8-14 审批周洪伟日期2014-8-14特变电工西安电气科技有限公司文档版本V2.3 密级 机密 共11页文档名称特变电工并网逆变器通讯协议文档编号24050023修订记录版本 描述 编制 校准 日期V2.2 完善遥信量 盛虎 刘永奎 2014-8-14V2.3 系统状态字增加烟感作为标配增加产品序列号廖正军 刘永奎 2014-9-26目录1 概述 (1)1.1协议概述 (1)1.2适用范围 (1)1.3引用标准 (1)1.4通讯参数 (1)1.4.1 通信地址 (1)1.4.2 通信参数 (1)2 应用层定义 (1)2.10X03/0X04块读取命令 (1)2.20X05写单个寄存器命令 (2)2.30X06写单个寄存器命令 (2)2.40X10写多个寄存器命令 (3)3 通信命令详解 (4)3.1读遥测量 (4)3.2读遥信量 (5)3.3读设置量 (7)3.4读产品信息 (7)3.5写遥控命令 (7)3.6写遥调命令 (8)3.7写系统对时命令 (8)1概述1.1协议概述本文规定的通信协议适用于特变电工TBEA-GC-500KTL、TC500KH、TC630KH、TC500K3H系列集中式并网逆变器与上位机监控系统通信。
依据MODBUS协议标准完成对光伏并网逆变器的四遥通信。
1.2适用范围本协议适用于特变电工TBEA-GC-500KTL、TC500KH、TC630KH、TC500K3H系列集中式并网逆变器与上位机监控系统通信。
1.3引用标准依据MODBUS RTU协议。
1.4通讯参数1.4.1通信地址设备地址范围:1—247。
1.4.2通信参数1、串行链路传输。
接口:RS485(物理接口详见产品用户手册);波特率:1200/2400/4800/9600 bps,默认9600bps。
2、帧长度。
3、数据传输。
设计文件名称TE9599光伏逆变器对外通讯协议编号版本V1.0版权专有违者必究中车株洲电力机车研究所有限公司目次1 目的和范围......................................................... 错误!未定义书签。
1.1 目的........................................................... 错误!未定义书签。
1.2 范围........................................................... 错误!未定义书签。
2 规范性引用文件..................................................... 错误!未定义书签。
3 物理接口........................................................... 错误!未定义书签。
4 通讯设置........................................................... 错误!未定义书签。
4.1 通讯模式....................................................... 错误!未定义书签。
4.2 传输模式....................................................... 错误!未定义书签。
5 协议内容........................................................... 错误!未定义书签。
5.1 模拟量获取..................................................... 错误!未定义书签。
5.2 数字量获取..................................................... 错误!未定义书签。
Communication ProtocolA. General: This document specifies the RS232C communications protocol used in Centralion UPS. The protocol provides the following features :1. Monitor charger status.2. Monitor battery status and condition.3. Monitor the utility status.4. Provide the power switch function for computer to turn on and off the utility on schedule for power saving.Computer will control information exchange by a query followed by <cr>. UPS will respond with information followed by a <cr> or action.B. Hardware:BAUD RATE............... : 2400 bpsDATA LENGTH.......... : 8 bitsSTOP BIT..................... : 1 bitPARITY........................ : NONECOMPUTER UPS========================RX <---------- TX (pin 2)TX ----------> RX (pin 3)GND <-------> GND (pin 5)C. COMMUNICATIONS PROTOCOL:1. Status Inquiry:Computer : Q1<cr>UPS : UPS status data stream, such as(MMM.M NNN.N PPP.P QQQ RR.R S.SS TT.T b7b6b5b4b3b2b1b0<cr>UPS status data stream :There should be a space character between every field for data separation. The meaning of each field is list as followed:a. Start byte : (b. I/P voltage: MMM.M (M is an integer number ranging from 0 to 9. The unit is Volt)c. I/P fault voltage : NNN.N (N is an integer number ranging from 0 to 9. The unit is Volt)d.O/P voltage : PPP.P (P is an integer number ranging form 0 to 9. The unit is Volt)e.O/P current : QQQ (QQQ is a percentage of maximum current, not an absolute value)f.O/P frequency : RR.R (R is an integer number ranging from 0 to 9. The unit is Hz)g.Battery voltage : SS.S or S.SSS is an integer number ranging from 0 to 9. For on-line units battery voltage/cell is provided in the form S.SS. For standby units actual battery voltage is provided in the form SS.S. UPS type in UPS status will determine which reading was obtained.h.Temperature : TT.T (T is an integer number ranging form 0 to 9. The unit is degree celsius)i. UPS Status : <U><U> is one byte of binary information such as <b7b6b5b4b3b2b1b0>. Where bn is a ASCII character ‘0’ or ‘1’.UPS status :Bit Description7 1 : Utility Fail (Immediate)6 1 : Battery Low5 1 : AVR 0: NORMAL4 1 : UPS Failed3 1 : UPS Type is Line-Interactive (0 is On_line)2 1 : Test in Progress1 1 : Shutdown Active0 1 : Beeper Onj. Stop Byte : <cr>Example: Computer : Q1<cr>UPS : (208.4 140.0 208.4 034 59.9 2.05 35.0 00110000<cr>Means : I/P voltage is 208.4V.I/P fault voltage is 140.0V.O/P voltage is 208.4VO/P current is 34 %.I/P frequency is 59.9 HZ.Battery voltage is 2.05V.Temperature is 35.0 degrees of centigrade.UPS type is on-line , UPS failed. AVR active , and shutdown not active.2. Test for 10 seconds:Computer : T<cr>UPS : Test for 10 seconds and return to utility.If battery low occurs during testing, UPS will return to utility immediately.3. Turn On/Off beep -- Toggle the UPS beeper :Computer : Q<cr>When the AC power failed, UPS will generate a warning beep to inform the manager. Manager could toggle the warning beep by sending this command .4. Shutdown and Restore Command :Computer : S<n>R<m><cr>UPS : Shut UPS output off in <n> minutes, and waiting for <m> minutes then turn on UPS output again.a.The UPS output will be off in <n> minutes, even if the utility power is present.b.If the battery low occurs before <n> minutes, the output is turned off immediately.c.If UPS is in shutdown waiting state, the "C" command can let the shutdown procedurecancelled.d.If, after <m> minutes have expired, the utility has not been restored, the UPS will waituntil it is restored.e.If UPS is in restore waiting state, the "C" command can let the UPS output turned on, butUPS must be hold off at least 10 seconds. (if utility is present)f.<n> is a number ranging form .2, .3, ..., 01, 02, ..., up to 10.g.<m> is a number ranging form 0000 to 9999. If it is 0000, there will be no restore.5. Cancel Shutdown Command :Computer : C<cr>UPS : Cancel the SN<n><cr> and SN<n>R<m><cr> command.a. If UPS is in shut down waiting state, the shut down command is cancelled.b. If UPS is in restore waiting state, the UPS output is turned on, but UPS must be hold off atleast 10 seconds. (if utility is present)6. UPS Information Command:Computer : I<cr>UPS : #Company_Name UPS_Model Version<cr>This function will make the UPS respond with the basic information about the companywho manufacture the UPS, the model name of the UPS and the version number of the UPS firmware. The length of every field is listed as follows:Company_Name : 15 characters, leave space if less than 15 charactersUPS_Model : 10 characters, leave space if less than 10 charactersVersion : 10 characters, leave space if less than 10 charactersThere should be a space character between every field for separation.(cancel)7. UPS Rating Information:Computer: F<cr>UPS : #MMM.M QQQ SS.SS RR.R<cr>This function makes the UPS answer the rating value of UPS. There should be a space character between every field for separation. The UPS‘s response contains following information field:a. Rating Voltage : MMM.Mb. Rating Current : QQQc. Battery Voltage : SS.SS or SSS.Sd. Frequency : RR.R8. UPS PasswordComputer : M<cr>UPS : C<cr> RUN formula9. Inverter fault state queryComputer : G? <cr>If UPS normal,UPS will answer: "Normal. "<cr>If UPS fanlock,UPS will answer: "Fan Locked."<cr>If UPS overload,UPS will answer: "Over Load. "<cr>If UPS shutcut,UPS will answer: Short Cut. "<cr>If UPS badbat(AC start battery voltage <9.0V ),UPS will answer: "Bat bad. "<cr>10.Inverter charger action queryComputer: D<cr>If Inverter charging , UPS will answer: “ACK”<cr>If Inverter not charging , UPS will answer: “NAK”<cr>11.Charger knob testComputer: E<cr>If Charger knob is at 100A ~ 500A level, UPS will answer: ‘0’If Charger knob is at 600A ~ 1000A level, UPS will answer: ‘0’D. COMMAND SUMMARY:ITEM COMMAND DESCRIPTION1 Q1 Status Inquiry2 T 10 Seconds inverter battery tes3 Q Turn On/Off beep ( buzzer silence command)4 S<n>R<m> Remote Shut Down and Restore Command5 C Cancel Remote Shut Down Command6 I UPS Information Command7 F UPS Rating InformationE. Invalid Command/Information HandlingIf the UPS receives any command that it could not handle, the UPS should echo the received command back to the computer. The host should check if the command send to UPS been echo or not. If there is any information field in the UPS‘s response which is unavailable or not supported, the UPS should fill the field with ‘@’.。