A kind of fault of numerical control machine tool analogue means
Technical field
The invention belongs to the numerical control device testing apparatus, be specifically related to a kind of fault of numerical control machine tool analogue means.
Background technology
In the links such as testing and training of numerical control device, numerical control device need and be controlled electric cabinet and use with lathe, and this mode not only cost is high, and very inconvenient.This fault simulation device mainly solves the fault detection capability and the ability of high-grade numerical control device, can simulate fault of numerical control machine tool, Programmable Logic Controller fault, servo-driver and servomotor fault, spindle driver and spindle motor fault.Utilize the fault of this device simulation numerically-controlled machine can be used for detecting numerical control device to the response of fault of numerical control machine tool, protection, ability such as reparation automatically.
The manufacturer of some numerical control devices is according to self product characteristic at present, and the fault simulation device of exploitation has very strong specificity.Because the configuration of the different model numerically-controlled machine that different manufacturers is produced is all inequality, its fault that need simulate is also different, so these special-purpose fault simulation devices can not be simulated the various faults of various lathes easily.Do not have the comprehensive of versatility and fault simulation.
Summary of the invention
The invention provides a kind of fault of numerical control machine tool analogue means; This device adopts fieldbus to link to each other with numerical control device; The inner upper and lower computer structure that adopts; Slave computer mainly is responsible for the PLC logical model of operation numerically-controlled machine for adopting the industrial computer of Linux real time operating system, and carries out exchanges data through fieldbus and numerical control device; Host computer then adopts the PC of operation WINDOWS operating system, links to each other with slave computer through general Ethernet, mainly solves man-machine interaction work such as the setting of numerically-controlled machine parameter, fault setting, fault alarm.
This fault simulation device mainly by numerically-controlled machine module is set, fault is provided with module, logical operation module, servo computing module, he lathe operation display module, communication module is formed.
Lathe is provided with module, is used for the user different machine tool type (like lathe, milling machine, machining center etc.) is set, and selects the corresponding number of axle and structure, imports corresponding fault database according to machine tool type; Show corresponding lathe IO state, dispose corresponding lathe PLC logical model and servo drive system model; At last all settings are saved as a specific lathe model.The man-machine interface that lathe is arranged on the PC is carried out, and the lathe model sends slave computer to through network.
Fault is provided with module, is used for the fault that the user is provided with the needs simulation, as importing phase shortage, brownout etc. in the electric loop.All selection is provided with fault after the user is provided with machine tool type, is written into the fault database file automatically, and the user sets fault and preserves with fault data, and send slave computer to through network after the selected fault that is provided with.
Logical operation module; According to lathe the set different lathe models of module are set; Logical operation module is accepted the I/O information that numerical control device sends, and with these information as input, according to the PLC logical relation of numerically-controlled machine; Calculate the I/O information that feeds back to numerical control device, the postrun state of simulated machine tool control circuit.
Servo computing module, the lathe servo-drive and the transmission link of consideration perfect condition call the module library of modeling and simulating instrument three ring (position ring, speed ring, electric current loop) PID controls and the lathe gear train of servo-drive system are set up the transport function realistic model.The ideal model that passes through to be built is realized the dynamic simulation of servo drive system and lathe gear train, and through bus the data that servo module three encircles is fed back to numerical control device.
Lathe running status display module is used to simulate the state of display machines bed operating, like positional information, and tool-information, switch board I/O dot information, failure message.Wherein positional information shows with position data, and tool-information shows cutter number and subsidiary function, and control circuit I/O dot information shows that with Dynamic Button failure message can show fault picture and Word message.
Communication module, communication module comprise that slave computer is connected and data communication the TCP/IP server end between slave computer and the host computer, the TCP/IP client of host computer with bus between the numerical control device.
What the fault simulation device was identical with actual lathe is; This system has the physical interface that can receive the numerical control device instruction and feed back the numerical control device desired data; This data exchange interface can be a node of digital control system on-the-spot bus, also can be signals collecting interface open in the whole digital control system control loop.Different with actual lathe is, this system is the realistic model of the data and the logic of an actual lathe, according to machine tool type through bug list being set and machine tool type and I/O point, the various faults of coming simulated machine tool being set.
Description of drawings
Fig. 1 is a functional module graph of a relation of the present invention;
Fig. 2 is a hardware configuration graph of a relation of the present invention;
Fig. 3 is a software configuration graph of a relation of the present invention;
Fig. 4 is embodiment figure of the present invention;
Fig. 5 is fault simulation running software of the present invention interface;
Fig. 6 is a lathe modeling software runnable interface of the present invention.
Embodiment
Structural relation synoptic diagram between each functional module of inside of a kind of fault of numerical control machine tool analogue means that designs for the present invention shown in Figure 1.Comprise that lathe is provided with module, fault is provided with module, logical operation module, servo computing module, lathe operation display module, communication module.
The task division of each intermodule is following:
Lathe is provided with module, is used for the user different machine tool type (like lathe, milling machine, machining center etc.) is set, and selects the corresponding number of axle and structure, imports corresponding fault database according to machine tool type; Show corresponding lathe IO state, dispose corresponding lathe PLC logical model and servo drive system model; At last all settings are saved as a specific lathe model.The man-machine interface that lathe is arranged on the PC is carried out.
, the user selects corresponding lathe setting in being provided with; In fault setting option being set in the hurdle changes accordingly; As lathe all have electric loop, axis system, feed system, cooling system, guard system etc., then also have tool magazine and tool changing device etc. for machining center.
In the user is provided with, select corresponding lathe setting, conversion is shown the state that different systems and I/O are ordered at lathe running status display panel.
In case lathe set to be accomplished, will form the model of a specific lathe at last, comprise lathe type, structure, logical model, fault, show state can be set.The lathe model sends slave computer to through network.
Fault is provided with module, is used for the fault that the user is provided with the needs simulation, as importing phase shortage, brownout etc. in the electric loop.All selection is provided with fault after the user is provided with machine tool type, is written into the fault database file automatically, and fault database comprises can be provided with fault, phenomenon of the failure and fault possible cause.The user sets fault and preserves with fault data, and send slave computer to through network after the selected fault that is provided with.
After fault is provided with, will triggers refreshing of status panel according to the I/O state of slave computer computing at lathe running status display panel, and can show the simulation picture of fault.
The hardware configuration graph of a relation of a kind of fault of numerical control machine tool analogue means that designs for the present invention shown in Figure 2.The fault simulation device is made up of host computer and slave computer.Host computer adopts PC and general Ethernet, operation Windows operating system.Slave computer adopts the industrial computer with general Ethernet, links to each other the operation (SuSE) Linux OS with fieldbus slave station card through parallel bus.Slave computer docks with numerical control device through fieldbus main website card, and is interconnected through Ethernet and host computer.
The software configuration graph of a relation of a kind of fault of numerical control machine tool analogue means that designs for the present invention shown in Figure 3.Host computer is written into and work such as test result output with demonstration, configuration, the model of operation man-machine interface.Therefore host computer moves 2 process modules, FaultSim, Plcad.
FaultSim fault simulation module is used for the test of numerical control device in the fault function aspects, and this module is responsible for that the lathe logical model is written into, the demonstration of the setting of fault project and test result, and is as shown in Figure 4.The Plcad module mainly is used for the logical model of lathe is carried out modeling, and modeling can be adopted ladder diagram and C language, and is as shown in Figure 5.
Slave computer carries out the collection, computing of data, feedback and communicating by letter with host computer in real time.Main operation logic simulation process RunPLC of slave computer and communication module process.Logic simulation process RunPLC moves the logical model * .plg that Plcad generates above that, and the corresponding different logical model of different lathes can be created corresponding lathe logical model according to the Machine Tools Electric schematic diagram of test.The logic simulation process is according to the I/O data of bus input, through the feedback data of lathe PLC logical model computing I/O.Its part feedback sends it back numerical control device through bus, and another part sends to host computer and shows.
The communication module process comprises two parts, and a part is from fieldbus slave station card buffer reading of data and inserts feedback data that this part real-time is higher; Another part is for sending data and accept configuration and steering order to host computer through Socket (ICP/IP protocol), and this part real-time requires lower, is mainly used in demonstration, emulation, mutual with the operator.
It should be noted last that; Above embodiment is only unrestricted in order to technical scheme of the present invention to be described; Although with reference to preferred embodiment the present invention is specified, those of ordinary skill in the art should be appreciated that and can make amendment or be equal to replacement technical scheme of the present invention; And not breaking away from the spirit and the scope of technical scheme of the present invention, it all should be encompassed in the middle of the claim scope of the present invention.