Huawei UPS2000 Development Manual

Modbus protocol
Hide thumbs Also See for UPS2000:

Advertisement

Quick Links

UPS2000-(6 kVA-20 kVA)
Modbus Protocol Development
Guide
Issue
02
Date
2016-03-10
HUAWEI TECHNOLOGIES CO., LTD.

Advertisement

Table of Contents
loading

Summary of Contents for Huawei UPS2000

  • Page 1 UPS2000-(6 kVA-20 kVA) Modbus Protocol Development Guide Issue Date 2016-03-10 HUAWEI TECHNOLOGIES CO., LTD.
  • Page 2 Notice The purchased products, services and features are stipulated by the contract made between Huawei and the customer. All or part of the products, services and features described in this document may not be within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information, and recommendations in this document are provided "AS IS"...
  • Page 3: About This Document

    About This Document Overview This document describes the Modbus protocol used between the RMS-MODBUS01A card, an optional component of the UPS2000-(6 kVA-20 kVA), and its host and provides examples of communication establishment processes. Intended Audience This document is intended for: ...
  • Page 4 The product type UPS2000A was added. The collection signal and alarm signal lists were updated. The examples of communication processes with the host were changed. Issue 01 (2015-07-14) This issue is the first release. Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 5: Table Of Contents

    1.5.5.2.1 Request Frame Format ............................17 1.5.5.2.2 Response Frame Format ............................ 17 2 Modbus Card Signal List ......................18 2.1 Collection and Configuration ............................18 2.1.1 Signal List Description ............................18 Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 6 2.2.1 Signal List Description ............................28 2.2.2 Alarm Signal List ..............................28 3 Examples for the Host Communication Process ..............34 A Acronyms and Abbreviations ....................37 Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 7: Communication Protocol

    Write command: the relevant parameters are packed at the master node and sent to the slave nodes to finish the parameter setting. Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 8: Physical Interface

    1-2, the address contains eight digits. If a toggle switch is set to ON, it stands for 0. If a toggle switch is set to OFF, it stands for 1. Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 9 Table 1-1 Mapping between addresses and toggle switches Addre Toggle Toggle Toggle Toggle Toggle Toggle Toggle Toggle Switch Switch Switch Switch Switch Switch Switch Switch Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 10 1–32 addresses. You can follow binary DIP switch setting rules to set 33–247 addresses. Step 2 Set the communication form for the Modbus card. Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 11 Control area ON: match None network OFF: no match (CAN) build-out resistor toggle switch RS485 ON: match None build-out OFF: no match Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 12 Connect the RS232 port on the RS232-RS485 adapter to the RS232 port on the PC over a network cable (a shielded twisted pair is recommended) that meets pin sequence requirements. Connecting cables for the Modbus card. Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 13 RS485 RX+ Two-wire system: A Four-wire system: RS485 TX– RS485 RX- Two-wire system: B None Four-wire system: RS485 RX+ RS485 TX+ Four-wire system: RS485 RX– RS485 TX– Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 14: Communication Mode At The Physical Layer

    CRC checking error. 0x04 Slave node execution failed Slave nodes failed to respond to the command. 0x05 Reload the start command Slave nodes are busy. Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 15: Command Type And Format At The Application Layer

    CRC ^= *addr++; for (i = 0; i < 8; i++) if (CRC & 1) CRC >>= 1; CRC ^= 0xA001; else CRC >>= 1; return CRC; Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 16: Definition And Format For The Read Device Identifier Command

    Mandatory or Category Optional Description (M/O) 0x00 Manufacturer ASCII character Basic name string ASCII character 0x01 Product code string 0x02 Main revision ASCII character version string 0x03-0x7F Normal Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 17 0x02 (invalid data address). Response PDU: Function Code 1 byte 0x2B MEI Type 1 byte 0x0E ReadDevID Code 1 byte 0x01/0x02/0x03/0x04 Consistency Level 1 byte More 1 byte 0x00/0xFF Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 18 Object N.length: the byte length of the last object.  Object N.value: the value of the last object (the byte of the object N.length). Abnormal response PDU: Function Code 1 byte 0xAB Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 19: Frame Format Examples

    If one device needs several transactions to process responses, execute the following transactions. First transaction: Request Response Domain Value Domain Value Function Code 0x2B Function Code 0x2B Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 20 ReadDevID code 0x01 Object ID 0x02 Consistency Level 0x01 More 0x00 Next Object ID 0x00 Object Number 0x03 Object ID 0x02 Object Length 0x05 Object Value "V2.11" Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 21: Query Device Identification Information Command

    0x02 Main revision ASCII character string, version software version The product code UPS2000 or UPS2000A will be returned. The signal lists for these two products are different. For details, see section 2 Modbus Card Signal List. Issue 02 (2016-03-10) Huawei Proprietary and Confidential...
  • Page 22: Definition And Format Of Read Command

    1.5.5 Definition and Format for the Write Single Register Command 1.5.5.1 Definition for the Write Single Register Command This command is used to write to a single register. Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 23: Format For The Write Single Register Command

    11 is the slave device address. 06 is the write single register command. 2B15 is the register address. 0001 is the setting value. 52BA is the CRC checking value. Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 24: Modbus Card Signal List

    Address Length Attribute (Number of Digits) Input phase Floating N1000 voltage (A) point Input phase Floating N1001 voltage (B) point Input phase Floating N1002 voltage (C) point Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 25 Floating N1016 power (B) point Output active Floating N1017 power (C) point Output Floating N1018 apparent power point Output Floating N1019 apparent power point Output Floating N1020 Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 26 Battery mode 5: Mains Battery Input mode Unsigned N1025 short integer single-p (16 bits) hase three-ph input system determi whether mains mode is single- three-ph ase. Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 27 (16 bits) Floating Battery voltage N2000 point Battery current Floating N2001 point Battery status Unsigned N2002 short integer hibernat (16 bits) floating charging equalize charging discharg Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 28 Unsigned N9004 change serial short integer number (16 bits) Configuration Unsigned N9005 signal change short integer serial number (16 bits) Energy flow Unsigned N9006 diagram short integer Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 29 (16 bits) 01: solid 10: flow to the right Energy flow Unsigned N9006 diagram short integer hollow (bit 13, segment 7 (16 bits) 01: solid 10: flow Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 30 (0,100] N9009 point UPS version Character N9011 string The relationship between the state registers' serial numbers and the energy flow diagram are shown in the following figure. Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 31: Configuration And Control Signal List

    10: startup failed (you can power on) 11: startup completed (you can power off) Startup Unsigned The register N1029 short integer value is fixed at (16 bits) Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 32 (16 bits) floating charging equalize charging Battery Unsigned The register N2012 conversi short integer value is fixed at on from (16 bits) manual charging equalize charging Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 33 Capacity Unsigned The register N2021 test* short integer value is fixed at (16 bits) Battery Unsigned 0: yes N2022 test short integer Non-zero: no stop* (16 bits) Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 34: Alarms

    Rectifier fault 40155 0041 Rectifier fault 40155 0045 Charger alarm 40155 0045 Charger alarm 40155 0045 Charger alarm 40155 0045 Charger alarm 40155 0045 Charger alarm 40155 Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 35 Faulty temperature and humidity 40160 module 0340 Maintenance breaker ON 40160 0010 Abnormal bypass voltage 40161 0010 Abnormal bypass voltage 40161 0011 Bypass phase reverse 40161 0023 Battery overtemperature 40163 Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 36 Rectifier fault 40169 0042 Internal fault 40169 0042 Internal fault 40169 0044 Incompatible version 40169 0044 Incompatible version 40170 0044 Incompatible version 40170 0020 Battery reverse 40170 Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 37 Overload timeout. 40173 0066 Output overload 40173 0014 Startup timeout 40174 0060 Inverter fault 40174 0064 Overload timeout 40174 0066 Output overload 40174 0070 Bypass fault 40174 Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 38 Internal fault 40180 0042 Internal fault 40180 0042 Internal fault 40180 0042 Internal fault 40180 0042 Internal fault 40180 0042 Internal fault 40180 0042 Internal fault 40180 Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 39 40182 0066 Output overload 40182 0066 Output overload 40182 0059 Maintenance breaker ON 40182 0042 Internal fault 40183 0066 Output overload 40183 0034 Remaining cap. warning 40183 Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 40: Examples For The Host Communication Process

    RMS-MODBUS01A card and the UPS, and confirm the number assigned to every UPS by the RMS-MODBUS01A card, ensuring normal query of semaphores needed. The following diagram shows a communication process for reference. Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 41 1.5.3.4 Query Device Identification Information Command following information can be obtained. Object ID Object Name or Description Description 0x00 Manufacturer name HUAWEI 0x01 Product code UPS2000 0x02 Main revision version UPS2000 V100R001C00 Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 42 40164 + 3 x 1024 = 43236 = 0xA8E4 The response data is 0x0008, and the bit3 value is 1, indicating the battery undervoltage alarm exists. Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 43: A Acronyms And Abbreviations

    UPS2000-(6 kVA-20 kVA) Modbus Protocol Development Guide A Acronyms and Abbreviations Acronyms and Abbreviations Cyclical Redundancy Check Economic Control Operation End Of Discharge Emergency Power Off Uninterruptible Power Supply Issue 02 (2016-03-10) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.

Table of Contents