【正文】
he machine in Jog or Handle Mode 3. SYSTEM COMPONENT ManMachine Interface Visual Studio .NET is chosen as a development platform for ManMachine Interface (MMI) with programming in C and C++ in munication hardware and Gcode piler. The main functionality of the MMI software is to display and build the control mand. Industrial grade puter hardware with 500 MHz CPU speed and pact flash storage are selected for costeffectiveness and durability. Structure of the MMI software Main Form is the main user interface screen that contains all software functions. Other screens are Position Form, Edit Form, Simulation Form, Tool Setting Form and Work Coordinate Form are run upon request from Main Form. After task pletion, the screen is automatically switched back to Main Form. Data transfer within the software is sent via Share Data Memory Module that stores all important machine information such as current machine states, current Gcode state and graphical image of the tool’s trajectory. Gcode piler module in the software is used to convert Gcodes to NC mands with Tool Compensation Module to pensate the size of the milling tool. The munication between the MMI and motion control card is managed by Communication Module that consists of three working modes: (i) receive information from the card. (ii) sending the online mands and (iii) sending NC mands. Motion Control Card The system has been designed such that all fast realtime tasks are executed on the motion control card. The primary functions include the operation of PLC, NC and PID control. Hardware used is a 24bit DSP processor that can supports up to 8axis motion. FPGA is used for munication with external devices and motor encoder. Communication with puter is acplished through PCI channels and the data is transferred through dual port RAM. The overall software structure of the motion control card consists of the main program, which controls the operation of the card and municates with the user. NC module controls motors for 3axis motion, and PLC module controls external devices. 第 6 頁 共 7 頁 Machine information is sent to dual port RAM in Data 1 channel when the machine status has changed. The motion control card receives mands from MMI via Data 2 channel. All data in the motion control card is stored in the shared memory. Main program, NC and PLC module use this shared memory to