Академический Документы
Профессиональный Документы
Культура Документы
the basics of the core of CNC machine tool-CNC unit: functionsworking principleshardware configuration and software structure
to view the main features of CNC unit in more general terms: stressing why things are handled the way they are even more than the specific techniques used with any one particular CNC machine tool be able to easily zero in on any kind of CNC machine tool
4.1.1 NC system
The NC machine can be divided into three basic areas:
control unit + drive mechanisms + the machine
The most basic function of any NC machine is automaticprecise
conventional machine tools: motions are by manually turning cranks and hand-wheels NC machines: motions are actuated by servomotors under control of the NCand guided by the part program
the motion type (rapid, linearand circular) the axes to move the amount of motion and the motion rate (feed rate) are programmable
An NC command tells the drive motor to rotate a precise amount of angle The rotation of the drive motor in turn rotates the ball-screw The ball-screw drives the linear axis A feedback device at the opposite end of the ball-screw allows the control to confirm that the commanded number of rotations has taken place
numerical data :
for controlling the relative motion between cutting tool and piece part the component dimensions ( from engineering drawings--the geometric data), to define feed rates,
The combination of all this numerical information in a sequence is a part program the process of creating the data in a correctly structured format is programming
Numerical controls use standard microelectronic modules that have been developed for computer hardware (special modules needed in servocontrol circuits )
CNCs have expandable memories that can store large numbers of programsplus subroutines and correction data extensive memory capacity : sophisticated graphic displays and dynamic simulation
CNCs comprises:
CNC unit feed motion servo subsystem spindle servo subsystem and some auxiliary control cells.
Machine tool I/O circuits and devices Operation panel PLC Spindle servo cell Keyboard CNC Control Unit Feed motion servo cells Feed drivers Detect device Spindle driver Machine tool
I/O Devices
feed motion servo subsystem spindle servo subsystem and some auxiliary control cells.
CNC unit is the core of the whole CNC system It is composed of hardware and software Hardware: is made up of microprocessors electronic memory modules I/O interfaces, and position control modulesetc software controls all functions of the machine, manages all local programming, and graphic simulation of the cutting
Preparatory function
Interpolation function
Feedrate designation (machining centers only allow the feed rate to be specific in per-minute format: inches or millimeters per minute; Turning centerswhich have position encoders in their spindlesalso allow feed rate to be specified in per-revolution format: inches or
millimeters per revolution)
Feed Rate Override: multiple position switch on control panel allows the operator to change the programmed feed rate during cutting (The switch is usually segmented in 10 percent increments that range from 0 percent through 200 percent )
to command motion at the machines fastest possible rate Common uses for rapid motion: non-cutting motion | include : positioning the tool to and from cutting positions moving to clear clamps and other obstructions
Spindle function specify the spindle speed On operation panelthere is a button to turn the spindle on and offas well as a rheostat to control spindle speed
Compensation function allow the CNC user to allow for unpredictable conditions related to tooling
Tool length compensationcutter radius compensation and tool nose radius compensation
enable the CNC machine to adjust cutting tool to zero in the right position when wear occurs on cutter tool or changing of cutting tool
any unpredictable situations during programming a form of compensation to deal with the problem
Enhanced function graphic display function CRT or LCD displayer: show programsparametersvarious compensation datacoordinates fault information part graphs; monitor dynamic cutter tool paths while machining
Self-diagnosis function various diagnosis programs : prevent faults occurring or going worse to shorten the time of broken-down
Communication function RS-232-C communications (serial) port personal computers Some form of communications software allow transmissions
proportion between hardware and software is determined by cost-performance of the CNC unit
(In the earlier NC equipmentsall functions were implemented by hardware; computer was introduced into CNC system)
Speed control
Pretreatment
Interpolation
Servo motor
1 2 3 4
Program
Hardware
Position
Input
Hardware
Detector
Hardware
Hardware
Software
Hardware
Comprises: main boardposition control cardPLC carddisplayer card and power supply
Main board is a big printed circuit board other functional cards are small size each is installed in a card rack on the main board
Multi-functional modules architecture CNC unit is divided into several function modules: CNC control moduleposition control card PLC cardgraph display card and communication card, etc Hardware and software are designed with modularization method each function module is made
of printed circuit of same size
customers can establish their own CNC units by combining their selected function modules into the card racks of a motherboardconnected by industry
standard busIPC bus or STD bus
e.g.: a holonomic CNC lath system of this architecture modules can be connected together by industry standard bus: IPC (Industry PC) bus or STD bus
Single microprocessor architecture only one microprocessor (on duty of controlling and occupying the system bus )which processes various NC tasks by time-sharing in a centralized control way simple and can be implemented easily centralized controllingits performances and abilities are limited by the byte lengthdata widthaddress abilityand calculating speed of microprocessor.
Multi-microprocessors architecture three kinds of multi-microprocessor architectures: distributed system master-and-servant system
distributed system a communication network route between microprocessors Interactions within microprocessors and shared resources via network communication technology
Master-and-servant system
a master microprocessor: control the bus; access the resources attached with the bus; control and monitor servant microprocessors; coordinate the operations of servant microprocessors;
(others) servant microprocessors: do what the master microprocessor command; cannot do decision-making and scheduling;
CNC unit : base on industry computer (IPC) platform built by plugging in certain control cards and NC software IPC platform has made CNC unit cheaper and cheaper and easily be substituted when fault occurs
NC-plug-in-PC
IPC+ PMAC (Programmable Multi-Axis Control Card )
|
plugged in the card rack of IPC ( On PMAC cardhigh speed DSP is used as CPU high performances on motion control and PLC control )
User software: part program It is compiled into a program with various G-codes and M-codes according to the process sequence System software: an operating system It is specifically designed for the type of machine that it is destined to control. be sorted into two packages managing software and control software
To execute the part program: CNC unit compiles the codes into the format does preparatory and interpolation functions (control software) all functions of control software are implemented under the supervision and coordination of (managing software)
system software previously written in Assemble Language achieve higher executing speed take more time in the course of development; now written in advanced languagessuch as C or C++etc
does the following work by corresponding subroutines (1) Compiling the part codes inputted by users
part codes: in ISO or EIA format Compiler: translatetrim and store decode and do decimal-binary transitions calculate tools center path considering tool radius offset pre-calculate some constants used in interpolation and
speed control process
Objective of pre-process: save time for real-time interpolation calculations ( can be done before machining or in the idle intervals while machining)
(2) Interpolation calculations to assign electrical pulses for axes a strict real time program:
demands as less as possible number of instruction codes to shorten the time for performing interpolation calculations
time is determinative
combine rough interpolation and fine interpolation: software : rough interpolation that interpolates a tiny line each time Hardware: fine interpolation by turning the tiny line into a series of single pulses and outputting the pulses
implemented by:
software method (software timer method) hardware means (velocity code controlling an oscillator then by interrupts or queries to guarantee the feed velocity)
Further more:
(4) Position control position loop of servo system done by either software or hardware
in each sampling cycle control the motor using the difference adjust the magnification of the position loop circuit compensate the error of screw pitch
the non-return-to-zero when reverse the motion
4.4.3 Managing Software Managing software is composed of : part program I/O, display (part programtool position system parametersrunning status, alarm informationstatic and dynamic tool path) diagnosis codes (by which CNC unit can carry out self- diagnosis and spot the faults)
two groups depends on hardware: manages and drives peripheral equipment performs real time processes independent of hardware: manages timetasksmemory, synchronizes various procedures
the capability of parallel processing: many function procedures (e.g.: preparatory functions and interpolation process) need to be implemented in parallel
Encoding
Interpolation
Diagnosis
I/O
the capability of real time processing: tasks of higher priority will be implemented in time tasks with lower priority will wait in queue
improve the processing speed greatly methods to realize parallel process: time overlap: based on flow line technique staggers the processing time of procedures makes many procedures at the same time.
Real time process means: CNC system react in time to the requests and events of system
hardware fault interruption: memory errortimer error timeout during interpolation calculation hardware fauIt (sent out by hardware fauIt
detectors when fault occurs)
4.4.4 Architecture of CNC System Software organizing and managing mode of CNC system software
background application: a loop running program Realize: the input of part program some preparatory processes (encodingtool compensation calculationspeed calculation) manages tasks of procedures
work cooperatively
Executed by interrupting
Executed in loop
Foreground application
Fault process
Background application
Encoding Tool compensation
Position control
Interpolation calculation
. . .
Interruption architecture no distinction of background and foreground applications initializing procedure+ interruption service procedures with different priorities
Initialization
e.g. Tasks division and their priorities in HuaZhong I system software eight types of tasks with different priorities (from high down to low):
Position control (4 ms) Interpolation calculation (8 ms) Data collection (12 ms) PLC task (16 ms) Tool compensation task (condition (buffer) drivable) Program codes interpreting (condition (buffer) drivable) Dynamic display (96 ms) HMI: Human-Machine-Interface (menu managedloop continuously); Position control task has the highest priority: hence has the shortest invoking time interval 4 ms HMI task has the lowest priority: is an infinite loop procedure that starts only one time