The content of the invention
The technical problem to be solved is to provide a kind of electric machine control system based on CAN, control efficiency
Height, reliability is high, and mechanism is simple, practical.
To solve above-mentioned technical problem, the technical solution used in the present invention is:
A kind of electric machine control system based on CAN, including controller, the controller turns CAN converters by USB
Host computer is connected to, the controller is sequentially connected with precharge electrical equipment, double open-drain electric switches, rectifier, power supply;The preliminary filling
Circuit is connected to controller by main contactor;The controller is connected to the pedal potentiometer on manual control panel;Control
Device processed is also connected to automobile motor, and the automobile motor is connected to load.
According to such scheme, the pre-charge circuit be sequentially connected in series by pre-charge resistance, diode, precharge switch and
Into, it is connected with the 19 pin aviation plug by wire one end, one end is connected with described pair of open-drain electric switch.
According to such scheme, the controller is connected with built-in cooling fan.
According to such scheme, the controller is connected with external cooling fan, and the external cooling fan is by the company of switch
It is connected to fan power supply.
According to such scheme, the fan power supply is 12V, and 19 pin aviation plug inside conductors of controller are electric with 12V fans
Source connects.
According to such scheme, described pair of open-drain electric switch is also connected to battery case.
According to such scheme, the control system outside includes rack, automobile motor, controller, host computer, battery case;
The cabinet front is provided with host computer display screen, and two sides are respectively equipped with external cooling fan, and manual control panel is arranged on
The lower right of position machine display screen;Automobile motor trailing flank is provided with code-disc, leading flank be provided with big sprocket wheel and chain to be assemblied in motor defeated
On shaft;It is furnished with high-voltage conducting wires and 19 pin aviation plugs on controller, and is connected with automobile motor and code-disc respectively by wire;
Host computer is connected by CAN communication line and controller, and CAN communication line is provided with USB and turns CAN adapters, while host computer is built-in
There is motor control interface;Battery case is in series by two 48V lithium batteries, and is connected by wire and controller, on wire also
It is provided with double open-drain electric switches.
According to such scheme, also including underframe:Underframe bottom is provided with universal wheel, the automobile motor, speed changer, upper
Machine host and battery case are fixed on underframe.
According to such scheme, the 12V fan power supplies, USB turn CAN adapters, pre-charge circuit, main contactor all to be fixed
On the rectangle plank.
According to such scheme, the manual control panel is provided with startup, braking, advance, four buttons of retrogressing, and one pre-
Charge switch, pedal potentiometer and a serial ports.
Compared with prior art, the invention has the beneficial effects as follows:By automobile motor, controller, host computer and battery case and
Various parts organic coordinations, it is integrated, real-time control and monitoring are carried out to motor using CAN, effectively simulate electricity
The various states of electrical automobile normal driving process, substantially increase visualization and the facilitation degree of automobile motor control, more
Versatility, real-time and ease for operation.
Specific embodiment
Below in conjunction with the accompanying drawings the present invention will be further described in detail with specific embodiment.As shown in figure 1, one kind is based on
The electric machine control system of CAN, including rack 1, automobile motor 22, controller 4, host computer 39, battery case 28;The rack
1 front is provided with host computer display screen 2, and two sides are respectively equipped with external cooling fan 3, and manual control panel 14 is arranged on host computer
The lower right of display screen 2;The trailing flank of automobile motor 22 is provided with code-disc 29, and leading flank is provided with big sprocket wheel 18 and chain 19 is assemblied in electricity
On machine output shaft;Be furnished with high-voltage conducting wires and 19 pin aviation plugs 40 on controller, and by wire respectively with the He of automobile motor 22
Code-disc 29 connects;Host computer 39 is connected by CAN communication line and controller 4, and CAN communication line is provided with USB and turns CAN adapters 7,
Simultaneously host computer 39 is built with motor control interface;Battery case 28 is in series by two 48V lithium batteries, and by wire and control
Device processed 4 connects, and double open-drain electric switches 13 are additionally provided with wire.Rack 1 is that the semi-enclosed components and parts with dodge gate 9 are carried
Body, provides for various components and parts and is placed or by fixed place.As shown in Fig. 2 the front of rack 1 is provided with host computer display screen 2,
For to motor visualization control and monitoring, controller 4 and rectangle plank 8 are placed and be fixed with the inside of rack 1.
In order that structure arrangement coordinates reasonable, USB turns CAN converters 7,12V power supplys 11, pre-charge circuit 41, main contact
Device 12 is all disposed within rectangle plank 8.Rack 1 is provided with manual control panel 14, under the inactive state of host computer 39
The manual control of start and stop, rotating and acceleration and deceleration is carried out to automobile motor 22.
Using external cooling fan 3 as attached cooling device, two external cooling fans 3 are separately fixed at by bolt
The two sides of rack 1, air port just to the fin of controller 4, when system operation duration for a period of time after, controller 4 can generate heat, and open
External cooling fan 3 is switched, and can accelerate the heat for distributing controller 4.By hinge, the back side of rack 1 is also equipped with hollow out dodge gate
9, when system works, shut hollow out dodge gate 9 and play shielding protection effect, while heat dissipation ventilation effect is played in hollow out design.System
When not working, hollow out dodge gate 9 can be opened components and parts in rack 1 are checked or overhauled.
The right flank of rack 1 is additionally provided with double open-drain electric switches 13, double to open when principal current is above standard value or when having danger of hazardous electrical discharges
The automatic trip of leakage switch 13, the presence of double open-drain electric switches 13 can control system access the break-make of high-tension electricity, in turn ensure that
Equipment, personal safety.
The output shaft of automobile motor 22 is equipped with big sprocket wheel 18 and chain 19, chain other end assembling minor sprocket 20 and speed changer
17, automobile motor 22 and speed changer 17 are mechanically connected by chain and sprocket driving device, increase load, in simulation electric motor car driving conditions
Car resistance.The other end of automobile motor 22 carries code-disc 29, is connected by two string wires and controller 4, and a string of wires are car
Powered with motor 22, a string of wires receive the order from controller 4 as connection.Automobile motor 22 is also by the spiral shell of side
Pit is fixed with motor fixing frame 23.
Controller 4 connects respectively automobile motor 22, manual control panel as the central processing unit of whole control system
14 and host computer 39.After manual control panel 14 and host computer 39 send instruction, convey to after controller 4 is analyzed and processed
Automobile motor 22, it to receive and make corresponding action after instruction.Additionally, controller 4 can produce certain heat after work a period of time
Amount, its own fin for carrying and built-in fans have certain thermolysis.
Used as terminal control and mechanism for monitoring, its display screen is fixed on the front of rack 1 to host computer 39, and its main frame is fixed on bottom
On frame 21.Host computer 3 is connected by CAN communication line and controller 4, and instruction is sent to controller 4, and extracts the He of controller 4
The working status parameter of automobile motor 22 simultaneously shows on a display screen.CAN communication line is provided with USB and turns CAN adapters, for inciting somebody to action
CAN signal pattern of the usb signal patten transformation of host computer into controller.
Battery case 28 is the removable electric supply installation of whole system, by the way that the lithium battery of two 48V is connected and is mounted in iron
In case, it is integrally attached on underframe 21.The exportable 96V high pressure of battery case 28, to whole system long-time power supply is carried out, and guarantee is held
Continuous service ability and mobility.
Also include pre-charge circuit 41, pre-charge circuit 41 by pre-charge resistance 6, diode 10, precharge switch 31 according to
It is secondary to be in series, at the same connect main contactor 12, be connected with the 19 pin aviation plug 40 by wire one end, one end with it is described
Double open-drain electric switches 13 connect.Upon power-up of the system, pre-charge circuit 41 is first unidirectional accesses high-tension electricity, it is ensured that open after fault-free
Keyed ignition button 38, main contactor 12 is closed, and pre-charge circuit 41 is shorted, and system startup is completed.The energy of pre-charge circuit 41
Play a part of unidirectional powered when system starts and self-protection.
The control method of above-mentioned control system includes:
Traditional Terminal control pattern, specially:1) check that the braking on manual control panel, advance, back are
No to be closed, otherwise pre-charge circuit causes main contactor not work due to self-protection;2) key switch is opened, is connect
Logical 12V power supplys;3) precharge switch, pre-charge circuit closure are opened;4) start double open-drain electric switches, connect 96V high-tension electricities;Electricity
Short circuit, main contactor closure (precharge switch failure), motor enters readiness for operation;
5) advance, retrogressing, locking key are pressed respectively, can be appreciated that motor correspondence makes rotating forward, reversion, stopping action, its
In, when motor is in forward or reverse, clockwise with counter-clockwise turn pedal potentiometer, motor can respectively make acceleration and slow down
Action;6) key switch, double open-drain electric switches, precharge switch, finishing control are closed successively.
Based on the control model of CAN, specially:1) start host computer, open motor control interface;2) guarantee manually
Braking, advance on control panel, back are closed, and open key switch, precharge switch and air switch;
3) main contactor close commands are clicked on mouse, motor enters working condition;4) startup, rotating, braking and rotating speed are set
Numerical value, motor work;Motor control interface energy intuitively presents CAN infomational message structure very much, and can to motor and
The working condition of controller carries out visualizing control and real-time monitoring, and carries out system failure prompting;5) closing switch and upper
Position machine, finishing control.
All it is that central-processor organization is used as by controller in control process.Terminal control pattern is used as traditional controlling party
Method, complex operation, inefficiency, single function.And CAN control model, host computer combines associated control procedures, passes through
After USB turns CAN adapters by two kinds of signal types turn, then via electric machine controller, it is corresponding so as to realize that instruction is sent to motor
Action, at the same by controller read motor feedback information, be reflected in terminal interface, reach the terminal control to motor and
Purpose to working state of system monitoring.Circuit is simple, be easy to operation, and applicability, versatility and reliability are higher.