Professional Documents
Culture Documents
INTRODUCTION
Development of Computer Numerically Controlled
(CNC) machines is an outstanding contribution to the
manufacturing industries. It has made possible the automation
of the machining process with flexibility to handle small to
medium batch of quantities in part production.
Higher flexibility
Increased productivity
Consistent quality
Reduced scrap rate
Reliable operation
Reduced non productive time
Reduced manpower
Shorter cycle time
High accuracy
Reduced lead time
Just in time (JIT) manufacture
Automatic material handling
Lesser floor space
Increased operation safety
2
CNC SYSTEMS
INTRODUCTION
CNC system
Servo Drive Servo Motor Spindle Head
Encoder
PL
NC Command
C value
Lead
Screw
Tacho Work piece
Generator
Velocity
Table
Feedback
• Proximity switches
Inputs • Limit switches
Machine • Relay coils
Elements
• Pressure switches
Outputs • Float switches
This unit acts in unison with the CPU for the movement of the
machine axes. The CPU sends the control signals generated for
the movement of the axis to the servo control unit and the
servo control unit convert these signals into the suitable digital
or analog signal to be fed to the machine tool axis movement.
This also checks whether machine tool axis movement is at
the same speed as directed by the CPU. In case any safety
conditions related to the axis are overruled during movement
or otherwise they are reported to the CPU for corrective action.
Servo-Control Unit
9
Closed-loop System
SINUMERIK SIEMENS
SYSTEM 3
LSM-
Logic Sub
module
LSM2
LSM1
Emergency Stop X+
Z- Z+
Machine
X- Control
Panel
POWER ON
Cycle
Machine
Control
Panel
Expansion
PLC 2, external
Power
Supply NC PLC1
Logic Unit
POSITION FEEDBACK
A closed-loop system, regardless of the type of feedback
device, will constantly try to achieve and maintain a given
position by self-correcting. As the slide of the machine tool
moves, its movement is fed back to the CNC system for
determining the position of the slide to decide how much is yet
to be traveled and also to decide whether the movement is as
per the commanded rate. If the actual rate is not as per the
required rate, the system tries to correct it. In case this is not
possible, the system declares fault and initiates action for
disabling the drives and if necessary, switches off the machine.
Table
Command
Counter
Comparison
Subtraction Circuit
Circuit
Stop at
Position Zero
Amplifier
Control
Servo Motor
Lead Screw
Tape reader
Controller
Error
Signal Table
Transducer
Active Count
Buffer Comparator
Storage
Amplifier
Servo Motor
Lead Screw
Tape reader
VELOCITY FEEDBACK
In case no time constraint is put on the system to reach the
final programmed position, then the system may not produce
the required path or the surface finish accuracy. Hence,
velocity feedback must be present along with the position
feedback whenever CNC system are used for contouring, in
order to produce correct interpolation and also specified
acceleration and deceleration velocities. The tacho generator
used for velocity feedback is normally connected to the motor
and it rotates whenever the motor rotates, thus giving an
analog output proportional to the speed of motor. The analog
voltage is taken as speed feedback by the servo-controller and
swift action is taken by the controller to maintain the speed of
the motor within the required limits.
OPEN-LOOP SYSTEM
The open loop system lacks feedback. In this system, the CNC
system send out signals for movement but does not check
whether actual movement is taking place or not. Stepper
motors are used for actual movement and the electronics of
these stepper motors is run on digital pulses from the CNC
system. Since system controllers have no access to any real
time information about the system performance, they cannot
counteract disturbances appearing during the operation. They
can be utilized in point to point system, where loading torque
on the axial motor is low and almost constant.
SERVO-DRIVES
As shown in Fig.1 the servo-drive receives signals from the
CNC system and transforms it into actual movement on the
machine. The actual rate of movement and direction depend
upon the command signal from CNC system. There are various
14
SINUMERIK SIEMENS
SYSTEM 3
Reset changeover
Assignment of keys
Cancel word
Alter word
Enter word
Change to actual Change over to
value display customer display
Basic display Change of display Operator guidance
Tool compensation
Yes,No
Zero offset Leaf forwards
Emergency Stop Program in progress X+
Feed Delete input
Test hold Leaf backwards
Position not yet reached LED-indicator Start
Address
Part program
Fig.4 Operator control panel of
(Machine in motion) Z+ Hinumerik
Right-Left Cursor
For assignment
Z- Keys/Numerical
Control elements
POWER ON andCRT
indicators of the operator's
Alarm X- Of keyspanel keyboard
3100 system Cycle
16
KEYBOARD
A keyboard is provided for the following purposes:
Emergency Stop
X+
Z- Z+
Feed
X- Hold/Start
Cycle start
POWER ON
Cycle
Manual mode
Manual data input (MDI) mode
Automatic mode
Reference mode
Input mode
Output mode, etc.
MANUAL MODE
Continuous
Incremental
19
CONTINUOUS MODE
In this mode, the slide will move as long as the jog button
is pressed.
INCREMENTAL MODE
Hence the slide will move through a fixed distance, which
is selectable. Normally, system allows jogging of axes in 1, 10,
100, 1000, 10000, increments. Axis movement is at a prefixed
feed rate. It is initiated by pressing the proper jog+ or jog- key
and will be limited to the no of increments selected even if the
jog button is continuously pressed. For subsequent movement
the jog button has to be released and once again pressed.
TEACH-IN
PLAYBACK
20
REFERENCE MODE
Under this mode the machine can be referenced to its
home position so that all the compensations (e.g., pitch error
compensation) can be properly applied. Part programs are
generally prepared in absolute mode with respect to machine
zero. Many CNC systems make it compulsory to reference the
slides of the machine to their home positions before a program
is executed while others make it optional.
OTHER PERIPHERALS
These include sensor interface, provision for communication
equipment, programming units, printer, tape reader/puncher
interface, etc.
Inputs
Processor Logic Storage
Programmer memory memory Outputs Field
Devices
Power
Power Supply
Supply
MONITORING
•Read-in
•Format
•Measuring circuit cables
•Position encoders and drives
•Contour
•Spindle speed
•Enable signals
•Voltage
•Temperature
•Microprocessors
•Data transfer between operator control panel and logic
unit
•Transfer between NC and PLC
•Change of status of buffer battery
26
DIAGNOSTICS
The control will generally be provided with test assistance for
service purposes in order to display some status on the CRT
such as:
MACHINE DATA
Generally, a CNC system is designed as a general-purpose
control unit, which has to be matched with the particular
machine to which the system is interfaced. The CNC is
interfaced to the machine by means of data, which is machine
specific. The NC and PLC machine data can be entered and
changed by means of external equipment or manually by the
keyboard. These data are fixed and entered during
commissioning of the machine and generally left unaltered
during machine operations.
Machine data entered is usually relevant to the axis travel
limits, feed rates, rapid traverse speeds and spindle speeds,
position control multiplication factor, Kv factor, acceleration,
drift compensation, adjustment of reference point, backlash
27
Positive end
limit To negative
end limit
Reference
point
BACKLASH COMPENSATION
Whenever a slide is reversed, there is some lost motion due to
backlash between nut and the screw; a compensation is
provided by the CNC system for the motion lost due to
reversal, i.e. extra movement is added into the actual
movement whenever reversal takes place. This extra
movement is equal to backlash between the screw and the
nut. This has to be measured in advance and fed to the
system. This value keeps on varying due to wear of the ball
screws, hence the compensation value has to be updated
regularly from time to time
Positive backlash (the Negative backlash
usual case)
Table Table
Backlash
Backlash here
M
M
Encoder
Ballscrew
Encoder actual value precedes the Actual movement of the table precedes the
table movement encoder measurement
SAG COMPENSATION
Inaccuracy due to sag in the slide can be compensated by the
system. Compensations required along the length of the slide
have to be physically measured and fed to the system. The
system automatically adds up the compensation to the
movement of the slide.
(a), if the allowance is nit made, the edges of the tool tip
radius would be positioned at the programmed X and Z
coordinates, and the tool will follow the path AB and the taper
produced will be incorrect. In order to obtain correct taper, tool
position has to be adjusted.
It is essential that the radius at the tip of the tool is fed to the
system to make an automatic adjustment on the position and
movement of the tool to get the correct taper on the work. In
Fig.10 (b) the distance Xc is the adjustment necessary at the
start of the cut and distance Zc is the adjustment at the end of
the cut.
Z0
X0 Z0
X0
Tool
Datum
Minimum radius Datum Position
of taper Position
A Xc
Z -25,0 X 20,0
Z -15,0
Z0 Zc X 20,0
Z -15,0 B X 30,0
X 30,0
The diameter of the used tool may be different from the actual
value because of regrinding of the tool or due to non-
availability of the assumed tool. It is possible to adjust the
relative position of cutter size and this adjustment is known as
cutter diameter compensation.
30
Z0 ZR
ZR=Setting distance for
reference tool
X0
ZR
XR
Tool no.2
X offset for
tool no.2
Z offset for
tool no.2
TOOL OFFSET
PLC PROGRAMMING
The principle of operation of a PLC is determined essentially by
the PLC program memory, processor, inputs and outputs.
The program that determines PLC operation is stored in the
internal PLC program memory. The PLC operates cyclically, i.e.
when a complete program has been scanned, it starts again at
the beginning of the program. At the beginning of each cycle,
the processor examines the signal status at all inputs as well
as the external timers and counters and are stored in a
process image input (PII). During subsequent program
scanning, the processor the accesses this process image.
To execute the program, the processor fetches one statement
after another from the programming memory and executes it.
The results are constantly stored in the process image output
(PIO) during the cycle. At the end of a scanning cycle, i.e.
program completion, the processor transfers the contents of
the process image output to the output modules and to the
external timers and counters. The processor then begins a new
program scan.
STEP 5 programming language is used for writing user
programs for SIMATIC S5 programmable controllers. The
program can be written and entered into the programmable
controller as in:
I 2.3 Parameter
I 3.2
33
Operand identifier
STRUCTURED PROGRAMMING
The user program can be made more manageable and
straightforward if it is broken down into relative sections.
Various software block types are available for constructing the
user program.
PB1 FB2
OB1
PB2 FB3
Cycle execution
PB FB
OB
PB FB
38
39
INTERRUPT-DRIVEN EXECUTION
PB FB
OB
Example 1: Spindle ON
OB 1
……
A F 100.0
JC PB12
……
……
BE
FLOW CHART
PB12
START
Comments
NO
INDICATE AN I 2.4 Tool not clamped
TOOL CLAMP = Q 2.1 Display fault lamp
FAULT
YES
YES
YES
YES
NO
INDICATE AN I 4.6 Drive not ready
DRIVE READY = Q 0.4 Display fault lamp
FAULT
YES
YES
Exit STOP ANY FAULT ON I 2.4 Tool not clamped
SPINDLE ON I 3.2 Job not clamped
ON I 5.7 Door not closed
NO ON Q 1.0 Lubrication not on
ON I 4.6 Drive not ready
R Q 67.3 Reset spindle enable bit
BEC Block end conditionally
A I 2.4 Tool clamped
DO SPINDLE ON A I 3.2 Job clamped
A I 5.7 Door closed
A Q 1.0 Lubrication ON
A I 4.6 Drive ready
S Q 67.3 Set spindle enable bit
BE Block end
END
43
A PROJECT REPORT
ON
AT
BHEL, HARIDWAR
Submitted in partial fulfillment
of the requirement for the award of
B.Tech in
Electronics & Communication
Engineering.
Submitted By:
Abhishek Mittal
Roll No. 0403231005
44
45
A PROJECT REPORT
ON
AT
BHEL, HARIDWAR
Submitted in partial fulfillment
of the requirement for the award of
B.Tech in
Electronics & Communication
Engineering.
Submitted By:
Abhishek
46
STAMP OF AUTHENTICITY
Auth. Signature
MR. B.C.
SHARMA
Co- Coordinator Vocational Training
H.R.D.C.
BHEL, Haridwar
ACKNOWLEDGEMENT
PREFACE
CONTENTS
≈ ACKNOWLEDGEMENT.
≈ STAMP OF AUTHENTICITY.
≈ PREFACE.
≈ INTRODUCTION TO BHEL.
≈ CNC SYSTEM.
≈ BASIC BLOCKS OF CNC MACHINE.
≈ MODES OF OPERATION
≈ INTERFACING.
≈ MONITORING.
≈ DIAGNOSTICS.
≈ COMPENSATION.
≈ PLC PROGRAMMING
≈ STRUCTURED PROGRAMMING.
≈ TIME CONTROL PROGRAM EXECUTION.
52
BHEL, HARIDWAR
BHEL has