Multiprotocol Communication Interface PMSM Control on Account of Industrial Configuration Software

The purpose is to achieve drive controller of PMSM connect with industrial control configuration software seamless and to meet the industrial configuration software in the demand for motor to realize intelligent control. A software interface was designed and implemented about motor drive controller and the PC the industrial control configuration base on Modbus RTU serial communication protocol of industrial control. One kind of design and implementation methods have been proposed in the communication interfaces for industrial applications scalable multiselectivity. Using the latest high-performance multiprotocol transceiverdevicepinprogrammableSP339asthelowermachinecommunicationschipdesignedoptionalmulti-interfacehardware circuitwithDSPTMS320F2812astheprocessor.TheinterfaceprogramwasstudiedwithregardtoClanguagesoftwareoflower machineandcontrolconfigurationsoftwareofPC.Databasecreation,dataacquisition,andanimationlinksofPCconfiguration softwarearerealized.OnlinedebuggingresultsmeetthedesignrequirementsonaccountofPCcontrolconfigurationsoftwareand thelowermachinecontrollerhardwareandsoftware.


Introduction
DSP with its powerful data processing capability becomes the first choice of motor control chip.If you want to reflect operating parameters and operating state of the motor intuitively, they must be achieved through feature-rich PC software.Currently, Labview virtual instrument is used as a PC software application research more widely.Its use RS232, RS485 serial communication user defined or Labview programming standard communication protocol from [1,2] that is unable to adapt to industrial fields.In order to meet the needs of industrial serial communication field, the field of industrial design configuration software such as power control software, such as the hardware interface of group king software to meet to achieve control configuration software which controls the drive motor intelligent control.
Literature [3] describes the Modbus communication protocol which utilizes RS232 communication and development of software dedicated only for communication design and does not have popularity.Literature [4] introduces an InTouch configuration software of RS232 communication, the use of the third-party software, and programming complexity.Multiprotocol communication interface chip [5] is used to meet the requirements of a variety of hardware design.This paper will introduce programmable multiple communication interfaces to meet the majority of industrial configuration software communication protocol ports which have Modbus the hardware and software design interface technology.A design project for the needs of a variety of interfaces is solved, given multi-interface implementations.(1) from the wires, RS232 is a three-wire, RS485 is a twowire, and RS42 is a 4-wire;

Scalability Strategy and Implementation of Communication
(2) from the transmission distance, RS232 can only transmit 15 meters; RS485 and RS422 can transmit 1200 meters in 19 kpbs; (3) on the rate, RS232 is full-duplex transmission, RS485 is half-duplex transmission, RS422 is full duplex transmission; (4) from the protocol layer, RS232 supports only pointto-point communication (1 : 1); RS485 and RS422 communications support bus in the form (1 : N).
The above distinction formulated the following scenarios.
(1) RS232 interface is for close experimental communication; RS485/RS422 is suitable for practical engineering application of communication.Select the communication interface according to need.
(2) As optional communication interface design, design of the hardware is provided.Single-chip multihardware [6][7][8][9] choices cannot only meet the design requirements but also reduce the burden of hardware design.
( The communication system has RS-232 interface and RS-485/422 interfaces.In the past, hardware design using multichip ASIC and the control circuit to complete, resulting in complex structure and poor stability.Using the SP339 and supplemented by small amounts of other circuit chip and simply through software programming to control the corresponding pin can be easily implemented through RS-232 and RS-485/422 interface combinations.The communication interface based DSPTMS320F2812 processor program is shown in Figure 1; SP339 has multiple ports to connect with the DSP that can realize data transmission and control.Use of this circuit may control SP339's SLEW, DIR1, (2) Packet format of data transceiver functions is shown in Table 1.
This design uses a set of register data read function code 03H and write function code 10H.Master and slave communication process to obtain data from master to slave, including analog data, digital data, and system parameters, are collected from the instrument of slave.Address written communication baud rate, switching output, analog output, and system parameters of slave are saved with the same function code.Each register corresponds to specific ports and each controlling the specified device, which can improve the reliability of control.The Figure 2 shows that lower computer literacy holds register for the PC to complete the execution of a request RS232 supports only point-to-point communication; RS485 supports bus communication form.Therefore, two interfaces for data transmission control subroutine differ in the data reception and data transmission.
In addition, as shown in Figure 3 in order to improve the readability and reliability of operation, the functions of interrupt program use subroutine.Subroutine function code includes judgments, data transceiver, 10 mS timer soft reset interrupt (timeout), parity, data illegal judgment, register read and write, and function code that does not recognize the answer.

Industrial Control Configuration Software (ICCS) [11, 12] Interface
ICCS is special software to handle data acquisition and process control.Its outstanding feature is real-time multitasking; you can achieve data acquisition and output, data processing and algorithms, graphical display and interactive, real-time data storage, retrieve management, and real-time communications such as multitasking.
The ICCS selection Beijing Sunway force control configuration software is the test software.Software enables remote control operation, remote monitoring of the motor operating status and performance, timely data collection and analysis of data, generating dynamic data visualization, and generating a valid database.[13].Define a series of data is used to reflect the software to monitor various parameters of the controlled motor; for example, real-time temperature control panel, bus current, motor temperature, motor speed, and other data collected by the control panel but also includes some necessary intermediate variables and indirect variables.Database is shown in Figure 4.

Movie Connection.
Through the establishment of data in the database connection relationship with the graphics object, to make the picture vivid visual parameters reflect changes.You can set the over current alarm limit, if more than 30 A alarm.codes are shown in Algorithm 1 such as real-time monitoring bus current control panel.To achieve I/O connections of three hardware aspect is essential, PC serial port, serial cable (if the next bit machine as RS485 interface, where the need RS232 to RS485 interface), and lower machine interface.Three hardware conditions are met to ensure the premise in a certain lower machine

ICCS and Motor Drive Control Seamless Connection.
ICCS and motor drive control are met seamlessly through the following conditions.
(1) Motor drive control communications hardware interface circuit; RS232 and RS485 communication can be realized.
(4) ICCS PC programming in addition to the settings of low machine.
ICCS combines hardware platform debugging using the following measures.The lower machine controller communications hardware circuit connects with the PC communication interface hardware through the hardware adapter interfaces which carry lower computer software and PC software joint commissioning.Lower machine measure and record data in real time.Host request to send real-time data acquisition and through the control configuration software to analyze data in real time and thus depict the curve.Shown in Figure 5 is the PC Control Software collected data and realtime display.

ICCS for Intelligent Motor Control
Experiment.ICCS for intelligent motor control is mainly reflected in; you can start and stop the motor, remote control, motor control parameter adjustment, electrical fault alarm, and motor run history parameter query.
Test conditions; the use of power control ICCS design PC control interface.Choose to use the PC and the control panel 485.Motor controller using DSP (MS320F2812) to control the core, IGBT three-phase full-bridge inverter drive motor.Motor with 18 kW PMSM.
Commissioning projects and results are as follows.
(1) Motor start or stop and ICCS to send control commands to control the motor via the motor controller can start and stop normally.
(2) ICCS to set the motor speed and to communicate motor controller.The controller controls the motor according to the set speed operation and motor speed to meet the preset value measured.
(3) ICCS set the motor fault alarm limit and the data transmitted to the motor controller.The ICCS generates an alarm when the motor fault.The test set motor overheating alarm limit.When generating hardware alarm information at the same time the alarm data transmit to the ICCS.
(4) ICCS establish a database.You can transfer the data of lower machine to the PC real-time storage and it can be viewed at any time through ICCS.
ICCS project tasks according to changing PC programming and interface settings, to complete real-time control of the motor and real-time data acquisition and to achieve realtime monitoring of the motor.

Conclusion
This paper designs the communication circuit of the motor controller and software programming, realized the interface technology and PC control software.Designing and debuging the results obtained the following conclusions.
(1) DSP TMS320F2812 processor realizes the Modbus RTU communication protocol by software.Software is able to adapt to the field of industrial configuration software which uses this protocol for communication.
(2) Hardware communication scalability provided strong foundation for remote communication which includes network communication.
(3) The perfect PC force control software and slave software are designed for the use of other configuration software to provide a reference.

2. 4 .
Software in C Language.DSP software use C language programming.Data transfer uses RS232 or RS485 line realtime communication.As the DSP internal programming approach is online waiting interrupts.The program of protocol and interface is completed in the main program.Next comes the holding register read and write subroutines and interrupt communication program flowchart.

Figure 1 :
Figure 1: The circuit of communication interface.

3. 3 .
I/O Connections.Force control configuration software for the use of different communication protocols for I/O devices can provide targeted I/O drivers.Real-time database performs data acquisition and command control from I/O devices with the help of the I/O driver.As described in this paper belong to Modbus RTU communication protocol for industrial control configuration software common control communication protocol can be set via the configuration software is very easy to achieve I/O connections.

Figure 3 :
Figure 3: Flow chart of read and write holding register communication interruption.

Figure 5 :
Figure 5: The interface of industrial control software.

Table 1 :
The request to read or write a data message format of PC.