The construction of the 3D model of the virtual CNC milling machine is based on the FANUC CNC milling machine system, and the 3D solid model of the CNC machine tool is constructed. Although the real CNC milling machine has a complicated structure and cannot be completely copied, the virtual model built must also reflect the structural characteristics and main components of the CNC milling machine, including the bed, milling cutter, workpiece, spindle and moving along the longitudinal and lateral directions. Workbench, etc. To this end, using OpenGL to provide points, lines, polygons, images and bitmaps and library functions, and based on the basic geometry, material, motion constraints and other conditions of the various parts of the CNC milling machine, based on the extraction of their commonality, Create a base class (CDraw3D) that defines the commonality of 3D models, such as lighting, color, reflection, cache type, and more. Then, based on the class, new classes corresponding to different geometric figures, such as a disk (CDisk), a CCylinder, a ball (CBall), a primitive (Cprimitive), and the like are derived. Firstly, the modules such as the bed, milling cutter, workpiece, spindle and table are drawn separately, and these modules are integrated according to the logical relationship of the milling machine structure, thus constructing the 3D solid model of the CNC milling machine, as shown in the CNC milling machine. Images and virtual 3D models. The main program framework for constructing the above three-dimensional virtual CNC milling machine model is as follows: VoidCDrawmachineView::DrawMConstruction{//Drawing gate glPushMatric://pressing the current matrix stack glTranslated(2000,f-135.0,f-1745.0f);//current matrix multiplication The previous translation matrix glRotated(8.4, f0.0, f1.0, f0.0f); / / the current matrix is ​​multiplied by a rotation matrix glScaled (1.5, f1.55, f1.5f); / / current matrix multiplied by one Magnification matrix MILLDoor; / / draw protective gate glPopMatrix; / / pop up the current matrix stack / / establish the coordinate axis glPushMatric; glTranslated (-50.0, f950.0, f0.0f); glRotated (180.0, f0.0, f0.0, F1.0f);MILLCoordinate;//Draw coordinate axis glPopMatrix;//Draw CNC milling machine model glPushMatric; glTranslated(-50.0,f0.0,f800.0f);glRotated(80.0,f1.0,f0.0,f0. 0f);MILLMachinebody;//Draw CNC milling machine glPopMatrix;} CNC milling machine physical and virtual models can be seen, through glPushMatrix and glPopMatrix pair matrix stack operation function and appropriate geometric transformation can realize bed, milling cutter, workpiece and work At the same time, it needs to be processed by lighting, material, texture and anti-aliasing to make the CNC milling machine in the virtual scene more realistic. Realization of Virtual CNC Milling Machine Process 21 Interface Design of Virtual CNC Milling Machine Processing System The virtual CNC milling machine processing simulation system has a good human-computer interaction interface, as shown in the virtual CNC milling machine operation panel. The interface is mainly composed of NC code editing area (MDI), virtual operation panel and analog display. The system can read the NC code file from the outside, modify the read file through the virtual keyboard or directly re-enter the NC code, then save and run. The virtual operator panel has buttons, knobs, switches, indicators and other control components similar to real machine tools that the user can operate with the mouse. After selecting the NC code program, the machining object, the tool and the running mode of the virtual CNC milling machine operation panel, the machining can be started. The display screen simulates the actual machining process in real time. The tool moves along the required trajectory, and the blank body is continuously cut. The workpiece body is machined into qualified parts until the end of the machining process. The realization of the virtual CNC milling machine processing process The virtual simulation of the CNC milling machine processing process essentially completes the relative movement between the tool and the workpiece according to the requirements of the NC code program. This requires decoding and diagnosis of the read NC machining program. Data used to control the coordinated motion of the various components of the milling machine and stored. Then using these data to change the relative position between the tool and the workpiece model, the simulation of the cutting process is realized, and the demonstration diagram of the virtual CNC milling machine processing process is shown. On the left is the NC code edit display area, on the right is the virtual machining display area, and the workpiece outline shown on the right corresponds to the NC machining program in the left area. The NC machining program code corresponding to the workpiece contour is as follows: O2011N10G54M03S500; N20G90T0101G42; virtual CNC milling machine processing process demonstration diagram N25Z0; N30G0X-10G0; N40G1X40; N50G3X80Y40I0J40; N60G1Y85; N70G3X75Y90I-5J0; N80G1X25; N90T0101; N100X0Y60; N105Y-10; N110G0Z0; N120M05; N130M02; The %NC code program determines the cutting process of the CNC machine in the virtual machining display area, that is, the relative position of the tool tip and the workpiece in the machine coordinate system. In the absolute coordinate system of the machine, the variable of the relative position of the tool tip and the workpiece is g_vtTipWrk, which is determined by the relative position of the tool nose and the relative position of the tool tip. Conclusion Through the powerful 3D display effect of OpenGL, based on the Visual C development environment, the 3D modeling of the CNC milling machine and the rendering effect of the virtual machining process of the part are realized. The simulation process of the NC code program to the virtual part can be completed and clearly The cutting state of the tool was observed. Further follow-up work is based on the above-mentioned virtual machining simulation system to achieve communication control with the real machine tool, and download the verified CNC machining program to control the CNC machine tool to produce qualified parts. At the same time, it is also possible to calibrate and comprehensively evaluate the accuracy of the CNC machine tool and the wear of the tool, and verify the processing time of the parts to facilitate the workshop scheduling and management of the manufacturing enterprise. After continuous improvement and improvement, it plans to commercialize it and bring it to market. (Finish)
Product categories of Fish Feed Machine, The puffing degree can be adjusted to produce floating or sinking feed type.
We are specialized manufacturers with 15 years of extruder experience, we have the perfect after-sales service and technical support. Look forward to your cooperation!
Fish Feed Making Machine,Floating Fish Feed Machine,Fish Feed Pellet Machine,Fish Food Making Machine Jinan Chenyang Technology Co., Ltd. , https://www.cybabyfoodprocessingline.com
A virtual CNC lathe based on multiple types of controls and its operation research