Application of MPC08 Motion Control Card in CNC System of Open Drilling Machine

4) Movement and tool change control Movement and tool change control is the core part of the drilling machine movement, complete the drilling of the drilling machine (including starting, positioning, drilling, lifting), returning to zero, returning to the parking space and changing the knife. The code for this module is executed inside the specially created motion control thread PubWorkThreadHandler(LPVOID pParam).

a, hole processing When the user is ready to process, press the button to start processing, the thread starts to automatically read the data that has been decoded in the processing list gWorkList, through the known data information program according to the speed set by the processing parameter management module Send motion command to the MPC08 motion controller. The controller emits a pulse to make the machine move quickly and locate the hole coordinates. Then the hole is machined at a given drilling speed and drilling depth, and then raised at a given speed. At the same time, it quickly locates the coordinate position of the next machining hole.

b. Accurate zero return plays an important role in the positioning and processing of the machine tool. The zero return mode of the system design is based on the Z pulse of the servo motor. When the zero return button is pressed, the motion control thread of the program is pressed. The corresponding step sends a zero return command to the controller to make the machine accurately return to zero. The zero return step of the design is as follows: each axis moves rapidly toward the origin direction. à slow down after hitting the origin switch à reverse slow motion after slow stop à stop when receiving the Z pulse signal of the servo motor. The machine tool uses the stopped coordinate position as the origin of the machine. A macro is defined in the program for each step to distinguish the processing into that step.

c. Returning to the parking space When the button of the parking space is pressed back, the instruction to return to the parking space is issued, so that the XY axis of the machine tool is respectively moved to the parking space coordinate set to the processing parameter management module before processing.

d. Tool change When drilling a PCB, the hole of different diameters needs to be machined. This requires that the tool be changed after machining a hole of a diameter in the machining process, and another tool of diameter is taken for processing. The tool change mode of this system includes manual tool change and automatic tool change. Manual tool change is to return to the parking space after machining a hole of a diameter or after the tool life is reached. The processor manually removes the original tool and replaces it with a new tool and resumes machining. Compared with the manual tool change efficiency, the current machine tools generally adopt automatic tool change. The tool change process of this design is as follows:

Z-axis return to zero - the presser foot is raised - the X-axis moves to the position of the original magazine - the Y-axis moves to the position of the original magazine - the Z-axis moves to the position of the tool change - the chuck clamps the knife - Delay - Z-axis return to zero - XY axis returns to the standstill position - Check that the tool is placed back - Z returns to zero - Return to the standstill position - X axis moves to the position of the target tool - Y axis moves to The position of the target tool - the Z axis moves to the tool change position - the chuck chucks - the delay - the Z axis returns to zero - back to the standstill position - check the tool is taken - the Z axis returns to zero - The XY axis returns to the standstill position - the presser foot is lowered

The software implementation of the tool change is also done step by step in the motion control thread according to the above steps. Each step defines a macro to distinguish it like the zero return step. When the entire tool change process is completed, the machine continues to machine the remaining holes.

5) Self-diagnosis detection The self-diagnosis module plays an important role in the debugging, detection and condition monitoring of the machine tool. Through this module, the user can detect the signal status of the machine tool at any time, including the signal input from the machine tool to the controller and the control signal output by the user to the machine tool through the controller. In the program, the status register of the MPC08 controller is continuously queried through another auxiliary thread PubMonitorThreadHandler, and the following dialog box is displayed.

3 applications

The system utilizes the powerful functions of the MPC08 motion controller and performs software programming under the guidance of modular thinking. Finally, it is effectively applied to the control system of the PCB drilling machine, and the operation effect is good, and the high precision and speed in the PCB numerical control machine tool are passed. The machining test uses a tool diameter of 0.1-0.3 mm and a hole pitch of 0.5 mm. The maximum speed of each axis and the number of drill holes per minute have reached the expected requirements.

Previous page 1 2 3 Next page

Marble Acp

Marble Acp,Aluminum Composite Panel,Sandwich Panel,Curtain Wall

Fireproof ACP,High Gloss ACP Co., Lt d. , http://www.nbcompositepanel.com