Design of Communication Function Test System for Intelligent Low Voltage Electrical Apparatus Based on LabVIEW and Modbus RTU Protocol

Similar documents
SPM90 MODBUS PROTOCOL AND REGISTER LIST V1.0

SPM33. MODBUS Protocol and register List V1.5

Design of Coal Mine Power Supply Monitoring System

Conto D1 MODBUS COMMUNICATION PROTOCOL

A New Virtual Vibration and Temperature Test and Analysis Instrument of Wheel-Set Based on LabVIEW2011

Design of Substation and Distribution Station Monitoring System Based on DELPHI and Intelligent Modules

PRODUCT INFORMATION. DeviceNet Triple Play Digital Communications Board. SA Actuator with AUMA Matic Motor Controls

TECH TIP. Tritex Modbus Protocol Specification

WSK INTELLIGENT TEMPERATURE AND HUMIDITY CONTROLLER USER MANUAL

Instruction Manual Modbus Converter Unigate-CL-RS

E2 Modbus RTU Register Map Revision History Version Comments Author Date 1.02 Previous version PAE 11/06/ Revised to new format PAE 09/03/09

Protocol VIT5. Communications RS485. Version 1.0. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.

MM200 Motor Management System Communications Guide

PRODUCT INFORMATION. AUMA Actuators, Inc. Pittsburgh PA USA. Triple Play Digital Communications Board DeviceNet / Modbus CDN455

B Interface description 12.01/

MM200 Motor Management System

GE MDS, LLC. NETio Series. Protocol Communications Supplement. March 2013 Part No A01, Rev. C

Conto D2 COMMUNICATION PROTOCOL CONTENTS 1.0 INTRODUCTION

Supported Modbus RTU Function Codes... 26

Modbus/TCP is supported on some controllers. See QCI-AN028 Modbus TCP.

VD SERIES CONTROLLERS (VERSION4.0) RS-485 COMMUNICATION INSTRUCTION MANUAL MODBUS Protocol Reference Guide

How to set-up and read MOBBUS

ELECTRONIC METER SX1-A31E MODBUS RTU Protocol Specifications MDD-T0025A

Tongta Inverter TDS-F8

Phone: Fax: Web:

Revision 1.2. July 24, COM Protocol Manual. for MDC and ADC N 11th St - San Jose CA

LMV2 / LMV3... Modbus. User Documentation. Building Technologies Division

INTELLIS. Modbus Direct Network Monitor

Golander Peristaltic Pump MODBUS Communication Instruction

E2 Modbus RTU Register Map

Power Xpert C445 Motor Management Relay Cheat Sheets

BCT SERIES CONTROLLERS (VERSION 3.0) RS-485 COMMUNICATION INSTRUCTION MANUAL MODBUS Protocol Reference Guide

Modbus RTU Option Card for VLT 5000/6000 Adjustable Frequency Drive

COMMUNICATION MODBUS PROTOCOL

PROFIBUS and Integrated Safety architectures in Ex areas

PM130 Powermeters Reference Guide Modbus Communications Protocol

Automatic transfer switch

IF96017 MODBUS COMMUNICATION PROTOCOL

MODBUS Protocol. The ecode Encoders contain both single register (16 bit) and double register (32 bit) values.

Protronic 100/500/550. Controllers for process engineering Controllers for industry. Digitric 500. PROFIBUS-DP interface and module

Operating Instructions. Modbus RTU VLT 2800 VLT 6000 VLT 8000

RS-FX-N01 wind transmitter user's Guide (485type)

PM290 POWERMETER. Communication Protocols ASCII & Modbus Reference Guide

SMARTRAIL X100 Protocol

RM30xx Profibus Brief instructions efector400

JUMO Quantrol LC100/LC200/LC300

MIC-2 MKII Profibus module user s manual

This manual may not be reproduced in whole or in part by any means, without written permission of Accuenergy.

C192PF8-RPR. Power Factor Manager & Reactive Power Regulator Reference Guide. Modbus. Communications Protocol. BG0348 Rev. A1

Instruction Manual. Modbus RTU VLT 5000 VLT 6000 HVAC

DataVU 5 - Interface Manual Modbus

JUMO ctron 04/08/16. Compact controller with timer and ramp function. B Interface Description Modbus /

DataVU 5 - Interface Manual Modbus

RS-FS-N01 Wind speed transmitter user's Guide (485type)

RSGD 75mm Modbus Protocol

Intech Micro 2300-A8VI analogue input station MODBUS RTU slave application supplementary manual.

CAN-Transceiver Data Register Map MODBUS Slave RTU

3300 ACM ACM / Modicon Modbus. Advanced Digital Power Instrumentation Package. Serial Communications Protocol and Register Map. Version 1.

1.Eastron SDM230Modbus Smart Meter Modbus Protocol Implementation V1.2

MODBUS MANUAL For the AccUView UV Transmission Monitor

COMMUNICATION MODBUS PROTOCOL

Interface Module XC Modbus Protocol Converter / User Manual

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Map

IFC 100 Supplementary instructions

N700E Inverter RS485 Interface Instruction Manual

Modbus Communication Manual V7 and V74X Drives

Temperature Calibrator Communication Protocol Dry TC 165 Dry TC 650 Liquid TC 165 Liquid TC 255

Multi-Split VVVF System for Electric Submersible Pump on Extraction Flat Roof on the Sea

SMART RELAY SRW 01 V4.0X

T Als het om lucht gaat. KLIMAATTECHNIEK

Kinco PLC Training. Kinco Automation

Murdoch University Engineering Thesis. Appendix XII. Profibus PA System Configuration Instructions

ENG-7680: SCADA Laboratory Experiments

JUMO di 308. Digital Indicator. B Interface Description Modbus 12.07/

Serial Communication Based on LabVIEW for the Development of an ECG Monitor

JDICON 1000 JDICON B Interface Description 3.99/ Universal Process Controller. Universal Profile Controller

Application Note: Using Modbus With the Conext CL Series. Important Safety Instructions

Communication protocols description of. Hx4xx and Hx3xx regulators with RS485 and RS232 communication interface

CE4DMID01 COMMUNICATION PROTOCOL CONTENTS 1.0 INTRODUCTION

Optidrive VTC Modbus RTU Register Map

USER S MANUAL DC REGULATED POWER SUPPLY

GA4000 SERIES CONTROLLERS (VERSION 6.0) MODBUS Protocol Reference Guide

MODBUS Protocol for MiCOM P30 Series

RTD Temperature acquisition converter WJ25

PM210v Multi-Function Panel Meter. Modbus Reference. DAE Instrument Corp.

Operating Guide MODBUS (RTU) Communications Option IM/L150 MOD_2. Level Indicator L150 and L160

SICAM P35 SICAM P36 3-phase Multi-Function Power Meter

SKD-005-M Protocol. 2 RS485 General Information 2.1 Half Duplex 2.2 Connecting the Instruments 2.3 A and B terminals 2.

Carbon Monoxide Sensor - ModBus

Design of SCADA power Distribution Monitoring System based on PLC and Configuration Software

User Guide IM/C250 MOD_3. Modbus (RTU) Communications Option C250 and V250

Research and Realization of HART Protocol Based on Wireless Short Range Network Technology Kaiyuan Meng 1, a, Qingnian Cao 2, b

Real Time Clock with Temperature Sensor and RS485/Modbus Comunications

CONFIGURATION HANDBOOK

Rev 1.3, Air-Farm User Manual. CO2 / Temperature / Humidity Transmitter

1.Eastron SDM530-Modbus Smart Meter Modbus Protocol Implementation V1.1

TECHNICAL NOTES By6150-S-485 MODBUS J BUS Communication

Dual Module VCT. 5. Lexan Enclosure is Water & Corrosion Proof Contaminants will not affect the module as long as terminal strip is not immersed.

A novel priority selection system for nuclear power plant

Multi-Measuring-Interface MMI 6000

Transcription:

2017 Asia-Pacific Engineering and Technology Conference (APETC 2017) ISBN: 978-1-60595-443-1 Design of Communication Function Test System for Intelligent Low Voltage Electrical Apparatus Based on LabVIEW and Modbus RTU Protocol Wei Xu, Huigang Xu and Qi Xie ABSTRACT On the brief introduction of the characteristics of Modbus RTU communication protocol commonly used in intelligent low voltage electrical apparatus and analyze test requirements of intelligent low voltage electrical apparatus communication function, a design of communication function test system based on LabVIEW and Modbus RTU protocol for intelligent low voltage electrical apparatus is introduced. The system hardware is made up of industrial computer and RS232 / RS485 converter. Introduces in detail the The design and realization of read, write and CRC check software for Modbus RTU protocol communication based on LabVIEW virtual instrument technology development platform is discussed in detail. Practical application results shows that the test system could conduct a comprehensive, safe, reliable detection for intelligent low voltage apparatus communication function, have the advantages of strong anti-interference ability and low cost. INTRODUCTION With the rapid development of 3C technology represented as computer, communication and control technology and the automation of power industry, the new requirements of the connotation for the intelligent electrical apparatus is put forward by people, who hope the intelligent electrical apparatus can be connected into a network, to realize the functions of remote control, remote diagnosis, fault remote recovery and remote data collection. Communication-capable has become one of the main technical characteristics of intelligent low voltage electrical products[1,2]. A number of intelligent low voltage electrical apparatus with communication interface can be connected to form a network of intelligent power distribution system by the different field bus of Modbus, Profibus or DeviceNet. Wei Xu *, Huigang Xu, and Qi Xie School of Electrical and Automation Engineering, Changshu Institute of Technology, 215500 Changshu, China * Corresponding author: xu_wei985@163.com This work is supported by grant BY2014075 of Jiangsu Science and Technology Project Foundation. 192

Intelligent low voltage electrical apparatus communication function is directly related to the safety, stable and reliable operation of low voltage distribution and control system, so communication function test is a key of intelligent low voltage electrical apparatus function detection[3,4]. In order to realize the communication function test for intelligent low voltage electrical products, which is called "four remote" function (remote control, remote communication, remote measurement, remote adjustment), the design and realization of the highly reliable communication software by LabVIEW virtual instrument software platform based on the Modbus RTU communication protocol commonly used in intelligent low voltage electrical apparatus communication, to realize the communication between the testing equipment and the tested products is introduced in this paper. CONTENT OF INTELLIGENT LOW VOLTAGE ELECTRICAL APPARATUS COMMUNICATION FUNCTION TESTING Intelligent low voltage electrical apparatus communication function detection is equal to the detection of "four remote" function, so the following 4 main test content should be included in the communication function detection for intelligent low voltage electrical apparatus (1) Remote adjustment: The upper computer sends remote setting parameters command (such as open phase protection operating parameters, overload protection operating parameters, etc.), intelligent low-voltage electrical apparatus can change corresponding operating parameters in accordance with the requirements, in order to realize the PC remote to adjust power distribution circuit parameters Settings. (2) Remote measurement: The upper computer could read the real-time working parameters and all kinds of fault parameters submitted by the intelligent low voltage electrical apparatus such as the applied voltage and the main circuit current of the intelligent low voltage electrical apparatus, etc. (3) Remote control: When the upper computer send control information (such as breaking, switching signal of relay, contactor, etc.) intelligent low-voltage electrical appliances can execute correctly. (4) Remote communication: The upper computer could correctly read the information of intelligent low voltage electrical apparatus, such as products information, fault information, starting times, running time and open/close state. SYSTEM DESIGN Intelligent low voltage electrical apparatus communication function test system is mainly composed of two parts of hardware and software. Communication function testing hardware part is relatively simple; only need a computer and a communication conversion interface. The IPC610 industrial computer with the ability to work continuously for a long time and strong anti-interference ability is chosen as the upper computer, which can better guarantee the safety, stable and accuracy for intelligent low voltage electrical apparatus communication function test. The RS232/485 Communication converter is used as the communication conversion interface. The RS485 serial port with the advantage of good anti-noise jamming, long transmission distance and more standing ability is generally chosen as the communication interface of intelligent low voltage electrical apparatus, but the computer's serial port is generally for RS232 serial port, so the RS232/485 193

communication converter is used to realize the communication between the intelligent low voltage apparatus and the computer. The intelligent low voltage electrical apparatus communication function test system structure is shown in Figure 1. The IPC is the main equipment of the communication detection system, and the slave equipment is the measured low voltage electrical apparatus product. Communication function testing software is realized by currently the most successful and most widely used software development platform LabVIEW 7. Communication test Intelligent low voltage electrical apparatus RS485 RS232/485 Converter RS232 LabVIEW Real-time display test results Testing data analysis and processing Generate test results report Figure 1. The intelligent low voltage electrical apparatus communication function test system structure. REALIZATION OF THE COMMUNICATION SOFTWARE Intelligent low-voltage electrical communication function detection is mainly through the serial port to receive and send data, which could determine the quality of its communication function. Therefore, the realization of communication function detection involves the main program of serial initialization, read and write data, CRC check and serial port close. Read and write data, CRC check program is the key. The writing data is involved in read data process, so the implementation of the read data and the CRC check program is mainly introduced as follows. Design of Data Read Software Before reading data, set the serial port number, baud rate, number of data bits, stop bits, parity, data flow control and other parameters according to the requirements. When reading the data, it is necessary to find out the starting address of the data and the amount of data to be read clearly. At the same time, also need to check the CRC code. The master request message format of data read is shown in Table 2. If the master station request is correct, the slave station will respond. The slave response message format of data read is shown in table 3. The communication data read block diagram is shown in Figure 2 Table 2. The master request message format of data read. Slave address Function code Start address Data CRC 1Byte 1Byte MSB LSB MSB LSB LSB MSB Table 3. The slave response message format of data read. Slave address Function code Number of bytes Data 1 Data n CRC 1Byte 1Byte MSB LSB MSB LSB MSB LSB LSB MSB Note: MSB indicates the high byte of the double byte; LSB indicates the low byte of the double byte Figure 2. The communication data read block diagram. 194

Realization of the CRC Check Software As the communication bus there will always be some interference, information in the transmission process may be wrong, which will result in the loss of information. Therefore, when using Modbus RTU mode to read and write data, it is necessary to use CRC (cyclic redundancy check) check code to check whether the received information frame is correct, in order to prevent the wrong communication process from happening, to ensure the safe, accurate and reliable communication. CRC check code is a 16-bit binary value, divided into high and low two bytes. It is calculated by the sending device and then added to the message. After receiving the message, the receiving device recalculates the CRC code and compares it with the CRC code in the received message. If they are the same, the received message is correct. On the contrary, that is not correct. Only 8 data bits, start bit, stop bit and parity bit are used in CRC calculation. The generation flow of the CRC check code is shown in Figure 3. The CRC check block diagram is shown in Figure 4. Preset the 16-bit CRC register to 0xFFFF One byte in the frame in turn XOR with the lower 8 bits of the CRC register, and the result is stored in the CRC register One bit of the CRC register is shifted to the right, and the highest bit is filled with zero Whether the right shifted bit is zero? N CRC register XOR with 0xA001 Y N Whether the initial MSB of the CRC register is removed? Y Whether all the bytes in the frame are processed? N Y The content in the CRC register is CRC code Figure 3. The generation flow of the CRC check code. Figure 4. The CRC check block diagram. APPLICATION EXAMPLE The communication function test technology researched in this paper has been applied in CPS measurement function test. Regulate the CPS main circuit current to the rated current, read the actual measurement current Ia, Ib, Ic on the LCD screen of the measured CPS by communication, and compare with the set current to determine the CPS measurement function is qualified. The front panel of CPS measurement function test is shown in Figure5. The communication parameter for reading CPS real-time measurement values is shown in Table 4. Table 4. The communication parameter for reading CPS real-time measurement values. Data address Number of registers Rules Unit Format Range Directions 1205H 1 read 0.01A UINT 0-65535 Current of phase A 1206H 1 read 0.01A UINT 0-65535 Current of phase B 1207H 1 read 0.01A UINT 0-65535 Current of phase C 195

According to the factory setting of CPS, under the Modbus RTU communication protocol mode the read data communication function code is 03H. Regulate the CPS main circuit current to 12A, the read data is shown in Table 5. Slave address Function code Number of bytes Table 5. The read data. Data 1 Data 2 Data 3 CRC 1byte 03H 3 MSB LSB MSB LSB MSB LSB LSB MSB 1 03H 3 4 B3 4 AE 4 BC Calculated According to the read data, the actual current value can be calculated as fllows: Ia=Data1(convert to decimal) *0.01(A) (1) Ia=1203*0.01=12.03(A) (2) Ib=Data2(convert to decimal) *0.01(A) (3) Ib=1198*0.01=11.98(A) (4) Ic=Data3(convert to decimal)*0.01(a) (5) Ic=1212*0.01=12.12(A) (6) Figure 5. The front panel of CPS measurement function test. CONCLUSION The communication function test system for intelligent low voltage electrical apparatus based on LabVIEW and Modbus RTU protocol discussed in this paper has been put into use in related producer.practical application results shows that the test system could conduct a comprehensive, safe, reliable detection for intelligent low voltage apparatus communication function, have the advantages of strong antiinterference ability and low cost. ACKNOWLEDGEMENTS This work is supported by grant BY2014075 of Jiangsu Science and Technology Project Foundation. REFERENCES [1] Lin Zuowei, Wang Zhong, Analysis of product and market development for low voltage. [2] Electrical apparatus, Electrical Equipment, 9th ed, vol. 2, pp. 104-107, September, 2008 Degui Chen, New intelligent technique of low voltage apparatus, Low voltage apparatus 1, pp.1-5(2008). 196

[3] Xie Qi, Gu Qimin, Tu ShuiLin, Ji Shaolin. Realization of Modbus RTU Communication Protocol Based on Labview, Coal Mine Machinery,27th ed, vol. 12, pp.95-97, 2008. [4] Xu W, Xu H G, Xie Q, et al. Design of Automatic Performance Test System for CPS. [5] International Conference on Computer, Mechatronics, Control and Electronic Engineering, [6] Changchun, China, August 2010, Vol. 4, pp. 206-209. 197