CN104617826A - USS protocol based multi-motor synchronous and variable frequency type speed regulating control system - Google Patents
USS protocol based multi-motor synchronous and variable frequency type speed regulating control system Download PDFInfo
- Publication number
- CN104617826A CN104617826A CN201410750988.3A CN201410750988A CN104617826A CN 104617826 A CN104617826 A CN 104617826A CN 201410750988 A CN201410750988 A CN 201410750988A CN 104617826 A CN104617826 A CN 104617826A
- Authority
- CN
- China
- Prior art keywords
- chip microcomputer
- key
- low level
- data
- frequency
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Communication Control (AREA)
Abstract
The invention provides an USS protocol based multi-motor synchronous and variable frequency type speed regulating control system. The method is characterized in that an XC164CS single-chip microcomputer is used as a main station for system network communication; a transducer is used as a secondary station for system network communication; an asynchronous serial communication between the main station and the secondary station is built through RS-485; a 4*4 matrix keyboard is used as a system instruction input; an 128*64 LCD is used as a system display interface; the USS protocol is utilized to achieve the communication between the MM440 transducer and the single-chip microcomputer; therefore, the 4*4 matrix keyboard can control the frequency variation of a plurality of MM440 transducers, and as a result, a plurality of motors can be synchronously processed by frequency changing and speed regulating, or the motors are individually controlled to be subjected to frequency varying and speed regulating; in addition, the parameters of related MM440 transducers can be accurately returned to the single-chip microcomputer according to the request of the keyboard and then are displayed to an 12864 LCD.
Description
Technical field
The present invention relates to a kind of speed-adjusting and control system, particularly a kind of multi-drive synchronization frequency conversion speed-adjusting system adopting USS agreement.
Background technology
Frequency converter timing is the technology integrating automatic control, microelectronics, power electronics, the communication technology, because it has good speed governing, energy-efficient performance, obtains a wide range of applications in every profession and trade.In Industry Control, the dragging of alternating current machine controls to adopt frequency converter to complete more and more.But the control mode of a corresponding controller of frequency converter is difficult to meet actual application demand, therefore adopts network control to be a kind of trend.
General frequency converter all provides the control modes such as panel control, Terminal control and Communication Control.Conventional control generally adopts Terminal control, the start/stop of frequency converter, direction, alarm, faulty indication and failure reset use digital output modul usually, speeds control adopts analog input to complete, but this mode needs a large amount of wiring work amounts, also need a large amount of interface simultaneously, substantially increase the complexity of connection.Along with the development of Fieldbus Based bottom control network, the manufacturer of many electric drive is proposed the product with data communication function, various fieldbus can be adopted, as: LonWorks, PROFIBUSCAN etc., to facilitate system configuration, but generally need to purchase interface hardware in addition as annex.
In automatic control system, more and more employing uses USS agreement to control multiple stage frequency converter by the RS-485 interface of frequency converter own.This communication modes, without the need to hardware devices such as special visa cards, can realize by the long-range converter parameter that arranges, can realize on-line monitoring to frequency converter, effectively can reduce wiring, the interference free performance of increase and decrease system.For frequency-changing control system provides the scheme of a low-cost and high-performance.MM440 (MicroMaster 440) is the high performance vector frequency converter of Siemens Company's forth generation.Use for reference Master Driver Vector Engineering inverter argument structure, high-precision control performance flexibly, and be integrated with the RS-485 interface for USS communication up to 115.2Kb.Considerably reduce the complexity of connection, improve the extensibility of system.This system is well suited for small-sized network control, and this network system realization is simple, stable performance, and cost is low, is thus popular in Industry Control.
Summary of the invention
The object of this invention is to provide a kind of frequency-changing control system communications protocol based on RS-485 bus standard and software and hardware realization thereof, thus realize a main frame to the object of multiple stage frequency converter monitoring and controlling.
The object of the present invention is achieved like this:
The main website of the present invention using XC164CS single-chip microcomputer as grid communication, frequency converter is as the slave station of grid communication, utilize RS-485 to set up MS master-slave and grow the asynchronous serial communication between standing, input using 4 × 4 matrix keyboards as system command, using 128 × 64LCD as system display interface, the communication between MM440 frequency converter and single-chip microcomputer is realized by USS agreement, complete 4 × 4 matrix keyboards and control the frequency conversion of multi-section MM440 frequency converter, to reach the frequency control of multi-section motor in synchrony (independent motor variable-frequency speed-regulating can certainly be controlled), and by keyboard ask the parameter about MM440 frequency converter to pass back to single-chip microcomputer accurately, and be presented in 12864LCD LCDs.
Keyboard scanning method is: line P1H_P0 ~ P1H_P3 is output line, and alignment P1H_P4 ~ P1H_P7 is input line.Single-chip microcomputer is by line (P1H_P0 ~ P1H_P3) all output low levels at the beginning, now reads in column line data, if alignment is high level entirely, does not have key to press, calls delay procedure remove key jitter with this when alignment occurs low level.Judge whether low level again after time delay completes, if now read in column line data still have low level, then illustrated and really have key to press.Final step determination key assignments.Are we for the S5 key of the second row now, if how we should obtain this key assignments after pressing S5? when judgement has after key presses really, line is output low level in turn, and the data according to reading in alignment can determine key assignments.First, P1H_P0 exports as low level by single-chip microcomputer, and other P1H_P1 ~ P1H_P3 exports high level, and the data now reading alignment are high level entirely, illustrate and do not have key to press in the first row; Secondly, single-chip microcomputer is by P1H_P1 output low level, other P1H_P0, P1H_P2, P1H_P3 are still high level, now read column line data again, find that the data that alignment is read have low level, numerical value is 0111 (0x07), if our keyboard layout is determined, so 0x07 just represents the value of S5.Forward S5 key function treatment subprogram to just can achieve the goal.
First flow for displaying is, carries out initialization to the I/O interface that XC164CS single-chip microcomputer is associated with 128 × 64LCD, is then carrying out initialization to 128 × 64LCD.Then, write and will show the position page address of data on 128 × 64LCD display screen, write corresponding column address again, to choose 8 128 × 64LCD row dot matrix, write a byte (show state of the upper point of each correspondence 128 × 64LCD of this byte).Repeatedly write page address, column address, input data.Finally, single-chip microcomputer sends display command to 128 × 64LCD, shows complete write data.
Feature of the present invention and useful benefit: the present invention can carry out on-line monitoring to the operational factor of each frequency converter and carry out Long-distance Control, thus reaches single-chip microcomputer to multi-section motor in synchrony variable frequency regulating speed control.Effectively reduce system wiring, improve the antijamming capability of system, for frequency conversion adjusting system provides the scheme of a low-cost and high-performance.
Accompanying drawing explanation
Fig. 1 is 4 × 4 matrix keyboard schematic diagrams and keyboard scan flow chart.
Fig. 2 is 12864LCD flow for displaying figure.
Embodiment
Below in conjunction with accompanying drawing citing, the present invention is described in more detail:
Embodiment 1
Composition graphs 1, Fig. 1 is 4 × 4 matrix keyboard schematic diagrams and keyboard scan flow chart.Keyboard scanning method is: line P1H_P0 ~ P1H_P3 is output line, and alignment P1H_P4 ~ P1H_P7 is input line.Single-chip microcomputer is by line (P1H_P0 ~ P1H_P3) all output low levels at the beginning, now reads in column line data, if alignment is high level entirely, does not have key to press, calls delay procedure remove key jitter with this when alignment occurs low level.Judge whether low level again after time delay completes, if now read in column line data still have low level, then illustrated and really have key to press.Final step determination key assignments.Are we for the S5 key of the second row now, if how we should obtain this key assignments after pressing S5? when judgement has after key presses really, line is output low level in turn, and the data according to reading in alignment can determine key assignments.First, P1H_P0 exports as low level by single-chip microcomputer, and other P1H_P1 ~ P1H_P3 exports high level, and the data now reading alignment are high level entirely, illustrate and do not have key to press in the first row; Secondly, single-chip microcomputer is by P1H_P1 output low level, other P1H_P0, P1H_P2, P1H_P3 are still high level, now read column line data again, find that the data that alignment is read have low level, numerical value is 0111 (0x07), if our keyboard layout is determined, so 0x07 just represents the value of S5.Forward S5 key function treatment subprogram to just can achieve the goal.
Embodiment 2
Composition graphs 2, Fig. 2 is 12864LCD flow for displaying figure.First, initialization is carried out to the I/O interface that XC164CS single-chip microcomputer is associated with 128 × 64LCD, then initialization is being carried out to 128 × 64LCD.Then, write and will show the position page address of data on 128 × 64LCD display screen, write corresponding column address again, to choose 8 128 × 64LCD row dot matrix, write a byte (show state of the upper point of each correspondence 128 × 64LCD of this byte).Repeatedly write page address, column address, input data.Finally, single-chip microcomputer sends display command to 128 × 64LCD, shows complete write data.
Claims (3)
1. based on USS agreement multi-drive synchronization frequency-converting speed-governing control system, it is characterized in that: the main website of the present invention using XC164CS single-chip microcomputer as grid communication, frequency converter is as the slave station of grid communication, utilize RS-485 to set up MS master-slave and grow the asynchronous serial communication between standing, input using 4 × 4 matrix keyboards as system command, using 128 × 64LCD as system display interface, the communication between MM440 frequency converter and single-chip microcomputer is realized by USS agreement, complete 4 × 4 matrix keyboards and control the frequency conversion of multi-section MM440 frequency converter, to reach the frequency control of multi-section motor in synchrony or to control independent motor variable-frequency speed-regulating, and by keyboard ask the parameter about MM440 frequency converter to pass back to single-chip microcomputer accurately, and be presented in 12864LCD LCDs.
2. according to claim 1 based on USS agreement multi-drive synchronization frequency-converting speed-governing control system, it is characterized in that: keyboard scanning method is: line P1H_P0 ~ P1H_P3 is output line, alignment P1H_P4 ~ P1H_P7 is input line; Single-chip microcomputer is by whole for line P1H_P0 ~ P1H_P3 output low level at the beginning, now reads in column line data, if alignment is high level entirely, does not have key to press, calls delay procedure with this remove key jitter when alignment occurs low level; Judge whether low level again after time delay completes, if now read in column line data still have low level, then illustrated and really have key to press; Final step determination key assignments; Are we for the S5 key of the second row now, if how we should obtain this key assignments after pressing S5? when judgement has after key presses really, line is output low level in turn, and the data according to reading in alignment can determine key assignments; First, P1H_P0 exports as low level by single-chip microcomputer, and other P1H_P1 ~ P1H_P3 exports high level, and the data now reading alignment are high level entirely, illustrate and do not have key to press in the first row; Secondly, single-chip microcomputer is by P1H_P1 output low level, and other P1H_P0, P1H_P2, P1H_P3 are still high level, now read column line data again, find that the data that alignment is read have low level, numerical value is 0x07, if our keyboard layout is determined, so 0x07 just represents the value of S5; Forward S5 key function treatment subprogram to just can achieve the goal.
3. according to claim 2 based on USS agreement multi-drive synchronization frequency-converting speed-governing control system, it is characterized in that: first 12864LCD flow for displaying is, initialization is carried out to the I/O interface that XC164CS single-chip microcomputer is associated with 128 × 64LCD, then initialization is being carried out to 128 × 64LCD; Then, write and will show the position page address of data in 128 × 64 LCD display, write corresponding column address again, to choose 8 128 × 64LCD row dot matrix, write a byte, the show state of the upper point of each correspondence 128 × 64LCD of byte, writes page address, column address repeatedly, input data; Finally, single-chip microcomputer sends display command to 128 × 64LCD, shows complete write data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410750988.3A CN104617826A (en) | 2014-12-10 | 2014-12-10 | USS protocol based multi-motor synchronous and variable frequency type speed regulating control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410750988.3A CN104617826A (en) | 2014-12-10 | 2014-12-10 | USS protocol based multi-motor synchronous and variable frequency type speed regulating control system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104617826A true CN104617826A (en) | 2015-05-13 |
Family
ID=53152152
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410750988.3A Pending CN104617826A (en) | 2014-12-10 | 2014-12-10 | USS protocol based multi-motor synchronous and variable frequency type speed regulating control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104617826A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109557845A (en) * | 2018-11-18 | 2019-04-02 | 安徽大学 | A kind of parameter setter based on wireless telecommunications |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5783184A (en) * | 1980-11-10 | 1982-05-24 | Fuji Electric Co Ltd | Operator for magnetic flux vector of induction motor |
US5184056A (en) * | 1989-01-13 | 1993-02-02 | Siemens Aktiengesellschaft | Method of regulating the torque response of a multiphase electronically commutated electric motor |
-
2014
- 2014-12-10 CN CN201410750988.3A patent/CN104617826A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5783184A (en) * | 1980-11-10 | 1982-05-24 | Fuji Electric Co Ltd | Operator for magnetic flux vector of induction motor |
US5184056A (en) * | 1989-01-13 | 1993-02-02 | Siemens Aktiengesellschaft | Method of regulating the torque response of a multiphase electronically commutated electric motor |
Non-Patent Citations (3)
Title |
---|
孙鹏: "51单片机综合学习系统——12864点阵型液晶显示篇", 《电子制作》 * |
徐纬: "51单片机综合学习系统——矩阵键盘篇", 《电子制作》 * |
杨婉霞等: "基于AVR单片机和RS-485的种子包衣机控制系统", 《农机化研究》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109557845A (en) * | 2018-11-18 | 2019-04-02 | 安徽大学 | A kind of parameter setter based on wireless telecommunications |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8072174B2 (en) | Motor controller with integrated serial interface having selectable synchronization and communications | |
CN103078589B (en) | Dead-time compensation method and device | |
CN104090514A (en) | Master-slave type frequency converting control system and control method based on single-chip microcomputer | |
US20100123420A1 (en) | Motor controller having integrated communications configurations | |
CN208636410U (en) | A kind of test system for loading of frequency converter | |
US20100123425A1 (en) | Motor drive synchronization system and method | |
US8212514B2 (en) | Serial interface motor controller having user configurable communications speeds | |
US8080965B2 (en) | Motor controller with deterministic synchronous interrupt having multiple serial interface backplane | |
CN104617826A (en) | USS protocol based multi-motor synchronous and variable frequency type speed regulating control system | |
US11139768B2 (en) | Motor drive with independent physical backplane communication | |
CN113416560B (en) | Online hot standby system of frequency converter of coke dry quenching hoister, hot standby control method and device | |
JP2013190961A (en) | Selector, selection method, and information processor | |
CN102664578B (en) | Distributed control system of diesel generators | |
CN202502398U (en) | Synchronous control system for draw machines of chemical fiber industry | |
CN112327707B (en) | Timing control method, device and system of servo driver | |
CN105915133B (en) | Stepper motor driver and its any divided method | |
CN102164030B (en) | Single-port communication circuit and communication method thereof | |
CN104317287A (en) | Simulation method and system of motor signal | |
CN101566522A (en) | Gear-case performance testing platform and use method thereof | |
CN208087110U (en) | The double electric blocks of synchronous control | |
CN213915507U (en) | Wire drawing machine | |
US5919260A (en) | Electrical apparatus producing direct computer controlled variance in operation of an electrical end device | |
CN106407155A (en) | Dual-core controller for switched reluctance motor control based on DSP and FPGA, and method | |
CN201656880U (en) | Programmable double-motor inverter | |
CN105356820A (en) | Middle and high voltage frequency conversion speed regulation double CPU control system and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150513 |