Chapter 11_Numerical Control System
Chapter 11_Numerical Control System
1
11.1. Components of a CNC machine tool
11.1.1. Classification
From the hardware and software points of view, the conceptual
architecture of CNC machine tools include:
1. CNC Machine tools
2. Part program and Machine control unit (MCU)
2
11.1.2. Machine control unit (MCU)
The MCU is the heart of the CNC system. There are two sub-units in
the machine control unit: the Data Processing Unit (DPU) and the
Control Loop Unit (CLU).
1. Data Processing Unit (DPU)
On receiving a part program, the DPU firstly interprets and encodes
the part program into internal machine codes. The interpolator of the
DPU then calculates the intermediate positions of the motion in terms of
BLU which is the smallest unit length that can be handled by the
controller. The calculated data are passed to CLU for further action.
4
11.1.2. Machine control unit (MCU)
1. Man Machine Interface (MMI)
The MMI unit offers the interface between NC and the user, executes
the machine operation command, displays machine status, and offers
functions for editing the part program and communication.
MMI (HiTrol-M100)
(a) Operation functions
(b) Parameter setting Functions
(c) Drilling editing functions
(d) Geometric shape calculator
6
1. Man Machine Interface (MMI)
Functions of the user interface are generally classified into five groups:
Operation functions
These functions are used very
frequently and support operation of the
machine and the display that shows the
machine status. Figure a depicts the
status of the machine while it is running.
7
1. Man Machine Interface (MMI)
Functions of the user interface are generally classified into five groups:
Parameter-setting functions
In the CNC system, there are various parameters for internal use and these
are categorized into three kinds:
+ Machine parameters that are used
for setting machine regulation,
servo/spindle driving system, tool offset,
work coordinate, and safety boundary.
+ Program parameters that should be
set during editing of the part program.
+ Customization parameters that are
used to adapt the machine to user
requirements.
These functions provide the interface for setting, storing, and searching
parameters. Figure b shows the display for searching for internal parameters
and modifying them.
8
1. Man Machine Interface (MMI)
Functions of the user interface are generally classified into five groups:
Program-editing functions
These functions are able to edit and modify the part program, which is G-
code based on the EIA/ISO standard.
Practically, it is necessary for the user
to know G/M-codes and carry out
mathematical calculations in order to
generate the G-code part program.
Because mathematical calculation
makes it difficult to edit part programs,
CNC has recently begun to employ
conversational programming systems
Service/utility functions
Besides the other four essential functions, many useful functions are
provided to assist users. The DNC function for transmitting the part
program,which is edited externally, to the CNC, the file service for copying
internal parameters to the outside, and the communication function for
communicating with computers belong to these functions.
10
11.1.2. Machine control unit (MCU)
2. Numerical Control Kernel (NCK)
The NCK (Numerical Control Kernel) unit, being the core of the CNC
system, interprets the part program and executes interpolation, position
control, and error compensation based on the interpreted part program.
12
2. Numerical Control Kernel (NCK)
The main functions of the NCK:.
Interpreter
Interpolator
Acceleration/deceleration controller
Position controller
Interpreter
An interpreter plays the role of reading a part program, interpreting
the ASCII blocks in the part program, and storing interpreted data in
internal memory for the interpolator.
Acceleration/deceleration controller
Position controller
A position controller will carry out the transmitted data (from an
acceleration/deceleration controller) in a constant time interval.
A position control typically means a PID (Proportional Integral
Derivative) controller and issues velocity commands to the motor driving
system in order to minimize the position difference between the
commanded position and the actual position found from the encoder.
17
11.1.2. Machine control unit (MCU)
3. Programmable Logic Controller (PLC)
The PLC sequentially controls tool change, spindle speed, workpiece
change, and in/out signal processing and plays the role of controlling the
machine‟s behavior with the exception of servo control.
Mitsubishi PLC
Mitsubishi PLC
19
3. Programmable Logic Controller (PLC)
The advantages of PLC systems are as follows:
Flexibility: The control logic can be changed by changing only a
program.
Scaleability: The expansion of a system is possible by adding
module changing programs.
Economic efficiency: Reduction of cost is possible due to the
decrease in design time, high reliability, and easy maintenance.
Miniaturization: The installation dimension is smaller compared to a
relay control box.
Reliability: The probability of failure occurrence due to bad contact
decreases because of using a semiconductor.
Performance: Advanced functions such as arithmetic operations and
data editing are possible.
20
11.1.2. Machine control unit (MCU)
4. Real-time Control System
In an NC system, the NCK unit, the PLC unit, and the MMI unit
should be executed in constant time intervals. Because of this property,
the NC system is a complex real-time system.
23
11.1.3.1. Driving motor
1. Stepper motor
A stepper motor is a device that converts electrical pulses into discrete
mechanical rotational motions of a motor shaft. It is a brushless DC electric
motor that divides a full rotation into a number of equal steps.
This is the simplest device that can be applied to CNC machine since it can
convert digital data into actual mechanical displacement. It is not necessary to
have any analog-to-didital converter nor feedback device for the control system.
They are ideally suited to open loop control system.
However, stepper motors are not commonly used in CNC machine tools due
to the following drawbacks:
Low speed
Low torque
Low resolution
Easy to slip in case of overload
24
1. Stepper motor
A stepper motor is built with a fixed wire housing (the stator) arranged around
a series of „toothed‟ electromagnets spinning at the centre.
The stepper motor converts a pulsing electrical current, controlled by
a stepper motor driver, into precise one-step movements of this gear-like
toothed component around a central shaft.
Each of these stepper motor pulses moves the rotor through one precise and
fixed increment of a full turn. 25
1. Stepper motor
As the current switches between the wire coils arranged in sequence around
the outside of the motor, the rotary part can complete full or partial turns as
required. The main benefit of this stepper motor is less manufacturing cost.
Types of stepper motor are:
Permanent magnet stepper motor
Variable reluctance stepper motor
Hybrid stepper motor
26
a. Permanent stepper motor (PM)
Permanent magnet motors use a permanent magnet (PM) in the rotor and
operate on the attraction or repulsion between the rotor PM and the stator
electromagnets.
This is the most common type of stepper motor as compared with different
types of stepper motors available in the market. This motor includes permanent
magnets in the construction of the motor.
27
a. Permanent stepper motor (PM)
Advantages
Detent torque is defined as the maximum static torque that can be applied to
the shaft of an unexcited motor without causing continuous rotation.
The motor has full torque at standstill (if the windings are energized).
Excellent response to starting/stopping/reversing.
Disadvantages
Low torque to Inertia ratio.
Acceleration is slow.
Very slow dynamic response.
28
1. Stepper motor
The current supplied from the drive creates a magnetic field that is used to rotate the
shaft of the motor. Below is the a basic representation of how this process works.
1. The upper electromagnet is activated and the teeth of the central cog line up
accordingly.
2. The upper electromagnet is deactivated and the right one turned on. The closest cog
teeth then jump to line up with this. This causes a step (e.g. 1.8° turn)..
3. The right electromagnet is deactivated and the lower one is turned on. The cog teeth
then jump to line up with the bottom electromagnet. This causes another step.
4. The bottom electromagnet is deactivated and the left-most one turned on. The cog
teeth then jump to line up with this. This causes another step. On a motor which has
a step angle of 1.8°, 200 steps are required for a full rotation 29
b. Variable Reluctance Stepper Motor (VR)
Variable reluctance (VR) motors have a plain iron rotor and operate based on
the principle that minimum reluctance occurs with minimum gap, hence the
rotor points are attracted toward the stator magnet poles.
As the name suggests, the rotor‟s angular position mainly depends on the
magnetic circuit‟s reluctance that can be formed among the teeth of the stator
as well as a rotor.
The number rotor poles should not be equal
to the number of stator poles to have self
starting capability and bidirectional rotation.
Advantages
Excellent response to starting/ stopping/reversing.
Very reliable since there are no contact brushes in the motor. Therefore the
life of the motor is simply dependent on the life of the bearing.
An energized stepper motor maintains full torque at standstill position.
A wide range of rotational speeds can be
utilized since the speed of a step motor is
proportional to the frequency of the input pulses
from your controller.
It is possible to achieve very low speed
synchronous rotation with a load that is
directly coupled to the shaft.
Disadvantages
Not easy to operate at high speed.
31
c. Hybrid Stepper motor
Most industrial stepper motors are hybrid stepper motors that consist of a
permanent magnet rotor and a wound electromagnetic stator.
Hybrid stepper motors allow for yet more precision, through techniques such
as half-stepping and microstepping.
. Hybrid stepper motors usually have poles or teeth that are offset on two
different cups around the outside of the magnet rotor.
This also means steps and rotations can be more precisely controlled, as
well as offering quieter operation, higher torque-to-size ratios and greater
output speeds than standard stepper motors.
Permanent Rotor
Rotor magnet (steel core)
(steel core)
Rear
endcap
Front
endcap
Stator
Shaft
Winding
Ball
bearing 32
c. Hybrid Stepper motor
The stator of a hybrid stepper motor consists of poles with teeth, and each
pole has a winding. Phases are made up of poles connected by their windings.
When current is applied to a phase, each pole in that phase will be energized
and magnetized. Poles 180 degrees opposite each other are magnetized with
the same polarity.
The rotor of a hybrid stepper motor is made up of two “cups,” which typically
have 50 teeth each. The two cups are offset by 1/2 tooth pitch, and the teeth on
one cup are polarized north, while the teeth on the other cup are polarized
south, for a total of 100 poles, or 50 pole pairs. 33
c. Hybrid Stepper motor
Hybrid stepper motors are often classified by the number of phases in the
stator, with the majority of hybrid steppers having either 2 phases or 5 phases.
A 2-phase stepper motor typically has eight poles, or four poles (two pole
pairs) per phase. When the stator phases are energized, the rotor moves one-
quarter of a tooth pitch to align with the energized stator poles.
The number of steps per revolution S is
S = 2 x NS x NR
In which NS is number of stator phases
NR is number of rotor pole pairs
If 2-phase stepper motor has eight poles
or four poles (two pole pairs) per phase
and rotor cup has 50 teeth, the number of
steps per revolution S of the motor is:
S = 2 x 2 x 50 = 200 steps/rev
3600 3600
Step angle β is: β = = = 1,80
S 200 34
c. Hybrid Stepper motor
Advantages
Excitation required to achieve given torque is less compared to other stepper
motors.
Presents of detent torque.
Disadvantages
Construction is complex compared to other stepper motors.
Due to the presents of permanent magnet, rotor has greater inertia.
Resonances can occur if not properly controlled. 35
1. Stepper motor
Parameters of Stepper Motor
a. Step Angle β (degree): The step angle of the stepper motor can be defined
as the angle at which the motor‟s rotor turns once a single pulse is given to the
stator‟s input
Steps per Step Angle β
The number of steps per revolution S ranges revolution (S) (degree)
from 4 to 400. Commonly available step counts 400 0.90
are 24, 48 and 200. 360 200 1.80
β=
S 100 3.60
96 3.750
By using microstepping technology, we can
48 7.50
actually get more steps per rev. The maximum
24 150
number of steps/rev really depends on the drive.
Note that more steps per revolution for stepper motors will cause those
motors to rotate at a lower speed and provide lower torque than a similarly
sized motor with fewer steps per revolution.
Therefore, when looking for a high-precision stepper motor, the required
speed and torque output for your application are essential to consider. 36
1. Stepper motor
Parameters of Stepper Motor
c. Revolution per minute n (rpm): The revolution number of the motor per
minute can be calculated by the formula:
f x 60 β x f x 60
n= =
S 360
in which f is stepping frequency (pulses per second, pps or Hz)
37
1. Stepper motor
How to control stepper motors
Currently, there are 4 methods to control stepper motors that are commonly used:
Waveform stepper motor control: This is a control method that provides pulses
to the controller, operating in turn in a certain order for each phase winding.
In this drive method only a single phase is activated at a time. It has the
same number of steps as the full-step drive, but the motor will have significantly
less torque than rated. It is rarely used.
Different drive modes showing coil current on a 4-phase unipolar stepper motor
Full step motor control: This is a method of controlling pulse supply at the
same time, and both phase windings are arranged in succession.
This is the usual method for full-step driving the
motor. Two phases are always on so the motor will
provide its maximum rated torque. As soon as one
phase is turned off, another one is turned on.
39
1. Stepper motor
Half step motor control: It is a control method that combines both waveform
motor control and full stepper motor control.
When controlling the motor by this method, the
value of the step angle is less than 2 times and the
number of steps of the stepper motor will also
increase 2 times compared with the control method
with a sufficient stepper motor.
However, this control method has an extremely
complicated control pulse generator.
40
1. Stepper motor
Microstep motor control (Microstep): This is a new method, applied only
during stepper motor control.
Microstep control divides each full step into smaller steps to help smooth out
the motor‟s rotation, especially at slow speeds. Normal microstepping levels are
2, 4, 8, 10, 16, 32, 64, etc. up to 256.
The obvious advantage of this method is that the motor can operate
efficiently with small step angles and very high accuracy.
Because the motor's pulse has a waveform, the machine will operate more
smoothly and quietly, thereby greatly reducing resonance in any parts the motor
may be connected to, as well as the motor itself.
43
11.1.3.1. Driving motor
2. Servo motor
The fundamental characteristics required for servo motors of machine tools
are the following:
To be able to get adequate output of power according to work load.
To be able to respond quickly to an instruction.
To have good acceleration and deceleration properties.
To have a broad velocity range.
To be able to control velocity safely in all velocity ranges.
To be able to be continuously operated for a long time.
To be able to provide frequent acceleration and deceleration.
To have high resolution in order to generate adequate torque.
To be easy to rotate and have high rotation accuracy.
To have high reliability and long length of life.
To be easy to maintain.
44
11.1.3.1. Driving motor
2. Servo motor
Servo motors are part of a closed-loop system and are comprised of several
parts namely a control circuit, servo motor, shaft, potentiometer, drive gears,
amplifier and either an encoder or resolver.
46
2. Servo motor
b. Synchronous-type AC Servo motor
The stator consists of a cylindrical frame and a stator core. The stator core is
located in the frame and an armature coil is wound around the stator core. The
end of the coil is connected with a lead wire and current is provided from the
lead wire.
The rotor consists of a shaft and a permanent magnet and the permanent
magnet is attached to the outside of the shaft. In a synchronous-type AC servo
motor, the magnet is attached to a rotor and an armature coil is wound around
the stator unlike the DC servo motor. Stator
Therefore, the supply of current is possible (armature coil) Detector
from the outside without a stator. A synchronous
AC servo motor is called a “brushless servo
motor” because of this structural characteristic.
Rotor
Like a DC servo motor, this type of AC servo (permanent
motor uses an optical encoder or a resolver as a magnet)
In this type of AC servo motor, the stator consists of a frame, a stator core,
an armature coil, and lead wire. The rotor consists of a shaft and the rotor core
that is built with a conductor.
Stator
An induction-type AC servo motor has a (armature coil)
simple structure and does not need the detector
of relative position between the rotor and stator.
However, because the field current should flow
Rotor (a
continuously during stopping, a loss of heating conductor)
occurs and dynamic braking is impossible. Short
circuit
48
2. Servo motor
The strengths, weaknesses and characteristics of the servo motors
mentioned above are summarized in the following table.
Synchronous -type AC Induction-type AC Servo
DC Servo Motor
Servo Motor Motor
Low price
Brushless Simple structure
Strengths Broad velocity range
Easy stop No detector needed
Easy control
Heat, Brush wear, Noise Complex structure
Dynamic braking impossible
Weaknesses Position-detection Torque ripple, Vibration
Loss of heating
needed Position-detection needed
Life length Depends on brush life Depends on bearing life Depends on bearing life
Slits A and B are arranged for a phase difference of 90 degrees and the
electric signal of the output is generated as a square wave whose phase
difference is 90 degrees. The Z slit generates a square wave, indicating one
revolution of the encoder.
Incremental Encoder
52
3. Encoder
a. Incremental-type optical Encoder
If the power is off then this type of encoder cannot indicate a position.
Because this type of encoder only generates pulses, the number of output
pulses should be transformed into an analog signal that is proportional to the
pulse frequency in an F/V converter in order to detect rotation velocity.
An incremental-type encoder has a simple structure and is cheap. It is also
easy to transmit a signal because the number of wires needed for sending
output signals is small.
53
3. Encoder
b. Absolute-type optical Encoder
The structure and the signal generation method of an absolute-type encoder
are identical with those of an incremental-type encoder. However, the disk slit of
an absolute-type encoder and the arrangement of photodetectors are different
from those of an incremental-type encoder as shown in the figure.
In this encoder, the slit on a disk slot provides a binary bit; so that, the
outermost part of a disk is set to the lowest bit and as many slits and photo-
detectors exist as the number of bits.
The slits are arranged along
concentric circles towards the interior of
the disk. Based on these components,
the rotation position data is output in
binary or decimal form. In this way, the
method where absolute position data is
used is a graycode method.
Absolute rotary encoder 54
3. Encoder
b. Absolute-type optical Encoder
Because an absolute-type encoder can detect the absolute position, the
noise generated during sending the signal is not accumulated and the current
position can be detected after the electric current has been cut off and then
supplied again.
However, because as many output signal wires are needed as the number of
bits, it is difficult to minimize size and decrease price.
Linear encoder
55
3. Encoder
The Difference between Absolute and Incremental Encoder depending
on the outputs
56
4. Resolver
A resolver is a detector of rotation angle and position and is used as the
sensor of a motor. Unlike an encoder that generates an output signal in digital
format, a resolver generates an output in analog format.
A resolver consists of a stator, a rotor, and a rotation transformer. The coils of
the stator and rotor are arranged to make the distribution of magnetic flux a sine
wave with respect to the angle. A resolver has a similar structure to a motor and
is insensitive to vibration and mechanical shock.
In addition, because the output is an analog signal, the long-distance
transmission of signals and the miniaturization of the device are possible.
However, the signalprocessing circuit is complex and the device is more
expensive than a rotary encoder
Resolver structure 57
11.1.3.2. Linear Movement Guide
1. Ball screw
A ball screw is a mechanical linear actuator that translates rotational motion
to linear motion with little friction.
A threaded shaft provides a helical raceway for ball bearings which act as a
precision screw. As well as being able to apply or withstand high thrust loads,
they can do so with minimum internal friction.
They are made to close tolerances and are therefore suitable for use in
situations in which high precision is necessary.
Return tube
The ball assembly acts as the nut Screw
while the threaded shaft is the screw. shaft
59
11.1.3.2. Linear Movement Guide
2. Linear Movement guide
The linear guides consist of a mechanism in which steel balls are circulated
infinitely to enable an infinite stroke of ball slides theoretically.
A LM guide is used to increase the accuracy and smoothness of the linear
movement. 60
11.2. Classification of numerical controlling systems
11.2.1. Based on the control loops:
1. Open Loop Control Systems
2. Closed loop Control Systems
a. Semi-Closed loop Control Systems
b. Closed loop Control Systems
c. Hybrid loop Control Systems
63
11.2.1 Based on the control loops
2. Closed loop Control System
The closed loop control system has a feedback subsystem to
monitor the actual output and correct any discrepancy from the
programmed input.
In the hybrid loop, there are two kinds of control loop; semi-closed
loop, where the position is detected from the shaft of a motor, and
closed loop, which is based on a linear scale.
In the semi-closed loop, it is possible to control with high gain
because the machine is not included in the control system. The closed
loop increases accuracy by compensating the error that the semi-closed
loop cannot control. 67
11.2.2. Based on the motion-control type
1. Finite positioning control system
Point-to-point control system
1. Feed rates need not to be programmed
2. In these machine tools, each axis is driven separately.
y
D E B( X2,Y2)
B
F
C
A( X1,Y1)
x
Point-to-point control systems 68
11.2.2. Based on the motion-control type
1. Finite positioning control system
Point-to-point control systems
1. It is used in some CNC machines such as drilling, boring
and tapping machines…etc.
2. The control equipment for use with them are known as
point-to-point control equipment.
y
D E B( X2,Y2)
B
F
C
A( X1,Y1)
x 69
1. Finite positioning control system
Straight-line control system
Straight cut control systems are capable of moving the cutting tool
parallel to one of the major axes at a controlled rate suitable for
machining.
y
B( X1,Y2)
Y2
Y1 C( X2,Y1)
A( X1,Y1)
X1 X2 x
Straight-line control systems 70
Straight-line control system
B( X1,Y2)
Y2
Y1 C( X2,Y1)
A( X1,Y1)
X1 X2 x
Straight-line control systems 71
Data of part Input data Machining data
Programming
Computer
Coding
Part program
Reading units
Code interpreter
Comparison Comparison
Y
Position
Position Amplifier
Amplifier measuring
measuring
These operations include milling along any lines at any angle, milling
arcs and lathe turning.
Besides the plane XY, the machine can interpolate in the other
XZ or YZ planes
75
2. Continuous or contouring control systems
Control 4D and 5D:
On the basis of 3D control, if we design additionally for the tool-
carrying axis or the table or the fixture bearing the detail, one or two
movements around a certain axis that can be combined with 3
movements of the 3 axes other in order to create a 4D control or a 5D
control.
76
Data of part Input data Machining data
Programming
Computer
Coding
Part program
Reading units
Code interpreter
78
11.3. Components of Numerical Control system
11.3.1. Part program
11.3.2. CNC input and storage media
79
11.3. Components of Numerical Control system
11.3.1. Part program
Programming Example (Cylindrical Part)
O0013
N0005 G53
N0010 T0303
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
N0040 G00 Z2.0
N0050 X50.0 Z50.0
N0060 T0404
N0070 G57 G00 X22.50 Z2.0 S500
N0080 G01 Z-30.0 F100
N0090 G00 X23.0 Z2.0 S500
N0100 G84 X17.5 Z-20.0 D0=200 D2=200 D3=650
N0110 G00 Z2.0
N0120 X50.0 Z50.0
N0130 M30 80
11.3.1. Part Program
The transfer of an engineering blueprint of a product to a part program can
be performed manually using a calculator or with the assistance of a computer
language.
81
11.3.1. Part Program
Important things to know:
• Coordinate System
• Units, incremental or absolute positioning
• Coordinates: X, Y, Z
• Feed rate and spindle speed
• Coolant Control: On/Off, Flood, Mist
• Tool Control: Tool and tool parameters
Part programming contains geometric data about the part and motion
information to move the cutting tool with respect to the workpiece.
Part programming contains geometric data about the part and motion
information to move the cutting tool with respect to the work piece.
Each line of the program, referred to as a block, contains the required
data for transfer from one point to the next. 83
11.3.1. Part Program
Past input media included 1 in. wide punched tape made of paper, paper-Mylar,
or aluminum-Mylar laminates. The program was punched into the tape in a hole
pattern.
87
11.3.2. NC input and storage media
Components of modern CNC systems
Most of today's optical disks are available in three formats: compact disks
(CDs), digital versatile disks (DVDs), also referred to as digital video disks,
and Blu-ray disks, which provide the highest capacities and data transfer rates
of the three
92
11.3.2. NC input and storage media
Optical disc: is a storage media that holds content in digital format and is read
using a laser assembly.
93
11.3.2. NC input and storage media
USB flash drive: is a small portable flash memory card that plugs into a
computer‟s USB port and functions as a portable hard drive.
95
11.3.2. NC input and storage media
Hard disk: is an electro-mechanical data storage device that stores and
retrieves digital data using magnetic storage and one or more rigid rapidly
rotating platters coated with magnetic material.
The platters are paired with magnetic heads, usually arranged on a
moving actuator arm, which read and write data to the platter surfaces. Data is
accessed in a random-access manner, meaning that individual blocks of data
can be stored and retrieved in any order.
96
11.3.3. How to record and read a CNC part program
1. Punching mechanism for punched tape
97
11.3.3. How to record and read a CNC part program
2. Reading punched tape
Here are eight basic techniques now in use to read the digital
information from punched paper or plastic tapes.
Three different mediums are used to sense a hole in the tape: air,
mechanical fingers, and light
98
a. Reading punched tape mechanically
This is a conventional method of reading stepped tape. The tape is supported by a
block with a hole for each channel. While the tape is in motion, bail holds contact levels
up. When tape stops, fingers rest on tape. Where there is a hole, finger enters it, making
electrical contact.
This design has many variations, such as offset fingers for more contact room, double-
contact blades for isolated channels, etc. Contact blade spring period can be critical.
Tape about 1 inch wide, 8 channels plus spocket on 1/10th inch centers; other sizes
can be used.
Cost moderate.
99
a. Reading punched tape mechanically
Tape can travel one direction only. Reversal will damage contacts. A wide
variety of contacts readily are available from stock.
Maximum speeds with stepped tape motion are about 40 steps per second;
with continuous tape motion, as high as 60 inches per second. Contact life is
several million cycles.
As many as 50 channels can be placed on a 3-inch wide tape, each channel
controlling one circuit. Sprocket pitch is about 1/10 inch.
100
b. Reading punched tape pneumatically
An old method of reading punched tape pneumatically is used widely. Tapes are
wide, of coarse pitch. The technique is simple, rugged, not very fast.
When a hole in the tape opens the port in the metal bar, atmospheric pressure
allows the spring to expand the bellows to give a direct mechanical push.
101
b. Reading punched tape pneumatically
The hot wire anemometer technique is the newest way being used to read
punched tape. A small wire, about 0.0005 inch diameter by about 1/16th inch
long, is supported in a duct and heated by current.
When hole in tape opens, air flow changes wire temperature, hence resistance,
providing a low-level electrical signal. Capable of very high reading rates.
102
c. Reading punched tape by light sensing
The basic technique for reading punched tape photoelectrically. Fast, reliable,
quiet, with no moving parts.
May be used with stepped or continuously moving tape. Uses one
photoelectric cell or photomultiplier tube for each channel. Prisms, mirrors, light
pipes, lenses, etc., used to spread light beams from channels to obtain room for
photocells.
Cost intermediate
103
c. Reading punched tape by light sensing
104
c. Reading punched tape by light sensing
An optional method for high-speed reading of 6, 7 or 8 channels (plus
sprocket) using small phototransistors (about 0.080 inch diameter by 9/16 inch
long) mounted in phenolic block directly over the center of the 1/10th inch
spaced information channels.
105
c. Reading punched tape by light sensing
A silvered prism behind the punched tape reflects light from the exciter lamp
back out through the same hole, to fall normally on the phototransistors.
This same arrangement will also read opaque tape with printed dots by
reflected light (the prism being inoperative).
106
11.3.3. How to record and read a CNC part program
Inductive read/write head mechanism for magnetic tape
107
11.3.3. How to record and read a CNC part program
Inductive write head mechanism for magnetic disk
108
11.3.3. How to record and read a CNC part program
Inductive write head mechanism for magnetic disk
109
11.3.3. How to record and read a CNC part program
Read head mechanism for optical disc
110
11.3.3. How to record and read a CNC part program
Read head mechanism for optical disc
111
11.3.4. Code interpreter.
The decoder does the opposite of the encoder, that is, it converts the encoder
signals into corresponding control signals in the control system.
The structure of the decoder depends on the encoding and the type of code
used to encode the signal.
112
11.3.4. Code interpreter.
The structure of the relay decoder mechanism includes photoresistors (1) to
sense the signals from the punched tape to switch on/off the relays (2).
In this figure, use 4 relays A, B, C, D with their respective normally open and
closed contacts to decode the decimal numbers 0 to 9.
113
11.3.5. Digital-to-analog converter (DAC)
A digital-to-analog converter is a system that converts a digital signal into
an analog signal.
In particular, DACs are often used to convert finite-precision time series data to
a continually varying physical signal.
D0
D1
VREF
DAC block diagram
114
11.3.5. Digital-to-analog converter
The simplest DAC structure using the thermometer DAC. For an n-bit DAC,
there exists 2n equal resistors in series and 2n CMOS switches (shown as
simple switches).
115
11.3.5. Analog-to-digital converter (ADC)
An analog-to-digital converter is a system that converts an analog signal,
such as a sound picked up by a microphone or light entering a digital camera,
into a digital signal.
An ADC may also provide an isolated measurement such as an electronic
device that converts an analog input voltage or current to a digital number
representing the magnitude of the voltage or current
VREF
D0
D1
V0
ADC Digital output
Analog input
VREF: Reference Voltage
Dn-1
It is formed of a series of
comparators, each one
comparing the input signal to a
unique reference voltage.
117