Hardware
Hardware
Overview: This note set is part of a larger collection of materials available at [Link]
[Link]. You are welcome to use the material under the license provided at [Link]
[Link]/eod/global/[Link]. As always any feedback you can provide
will be welcomed.
email: jackh@[Link]
phone: (616) 771-6755
fax: (616) 336-7215
1. TABLE OF CONTENTS
TABLE OF CONTENTS.......................................................................................................... 1
COMPUTER HARDWARE..................................................................................................... 3
A BRIEF OVERVIEW OF COMPUTER HARDWARE ........................................................ 4
BASIC COMPONENTS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4
AN EXAMPLE OF A COMPUTER IN MANUFACTURING - - - - - - - - - - - - - - - 6
COMMERCIAL COMPUTERS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 6
ARCHITECTURE AND BUSES - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8
SOFTWARE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 10
COMPUTER INTERFACING ............................................................................................... 12
DIGITAL SIGNALS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 12
ANALOG SIGNALS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 14
TIMING - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 21
DISPLAYS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 23
COMPUTER INTERFACE BOARDS .................................................................................. 23
OVERVIEW - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 23
REGISTER LEVEL PROGRAMMING - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 23
EXAMPLES - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 23
COMPUTER CONTROL OF PROCESSES.......................................................................... 23
TEMPERTURE CONTROL - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 26
BATCH PROCESSING - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 26
COMPUTER PROCESS MONITORING - - - - - - - - - - - - - - - - - - - - - - - - - - - - 28
IMPLEMENTING A COMPUTER CONTROL SYSTEM - - - - - - - - - - - - - - - - 29
PRACTICE PROBLEMS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 29
COMPUTER COMMUNICATIONS..................................................................................... 30
COMPUTER COMMUNICATIONS CATEGORIES - - - - - - - - - - - - - - - - - - - - 30
THE HISTORY - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 31
SERIAL COMMUNICATIONS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 31
RS-422 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 34
RS-485 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 34
GPIB/IEEE-488 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 35
PARALLEL COMMUNICATIONS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 35
INTERFACING COMPUTERS FOR DATA TRANSFER .................................................. 36
SERIAL DATA TRANSFER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 36
PARALLEL DATA TRANSFER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 37
COMPUTER NETWORKING............................................................................................... 39
OSI NETWORK MODEL - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 43
OPEN SYSTEMS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 48
NETWORKING HARDWARE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 49
MANUFACTURING AUTOMATION PROTOCOL (MAP)............................................... 52
OVERVIEW - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 52
DETAILS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 52
DETAILS FOR TOP - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 56
MAP & TOP - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 56
MAP AND OTHER STANDARDS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 58
page 2
2. COMPUTER HARDWARE
This section focuses on elements of computer hardware that are important to a designer/engineer.
page 4
• Memory,
- Random Access Memory (RAM) - memory used for temporary storage of programs and
data while the computer is on.
- Read Only Memory (ROM) - permanent software and data is stored in ROM, so that the
CPU may always access this. A common use for this is a ‘start-up’ routine, which
allows a computer to load the operating system off of a disk.
- ROM (traditional) - a chip which is made to store the program, this may not be changed.
- PROM - a chip which the program may be ‘burned’ into once.
- EPROM - memory is ‘burned’ in, but may be erased using ultraviolet light, and rewrit-
ten.
- EEPROM - similar to EPROM, but may be electrically erased.
• Input/Output (I/O),
- Main functions
• Load and Store programs and data,
- optical and magnetic disk drives
- magnetic tapes
- etc.
- mouse
- printer
• Teleprinters or Teletypes
- this technology is becoming obsolete very fast, but may be useful when permanent
records of sessions
- inexpensive but slow
- can be operated at a distance by telephone
- allows user input by keyboard, and output on printed paper
• Printers
- Very popular method of permanent output
- Inexpensive and fast
- Can produce varying qualities of print
- color printers available
- letter size paper output most common
• keyboard
- the time honored standard for input
- now very inexpensive, used by almost all computers
- can be used by all people, and is universally understood
3.3.1 Mainframes
- Uses a large, and custom designed CPU, in big cabinets
page 7
3.3.3 Workstations
- Computers based on leading edge of microprocessor technology, using Enhanced graph-
ical display capabilities.
- These have displaced minicomputers, and created a market for users who have small
budgets but need reasonable computer power.
- Run faster than PC’s, had better price/performance ratio
- suited to networking, shared disks, and virtual memory
- Perform multiprocessing, thus suited to multiple users.
- Approximate cost $10,000 to $500,000
- Example are SUN, HP, and Silicon Graphics Workstations
- Can often find software intended for mainframes, and for Personal Computers which has
been modified to run on Workstations.
- Has the widest collection of public domain software available.
• Address Bus,
- carries locations from the CPU, so that the proper RAM, ROM, and I/O locations
may be addressed
- This is often 16 bits, but newer computers have moved to 32 an 64 bits.
- The size of this bus limits immediately available memory.
• Data Bus,
- Carries data to and from the CPU and RAM, ROM, and I/O devices.
- The size of this bus makes the difference when specifying whether the CPU is 8
bit, 16 bit, 32 bit, or 64 bit.
- A wider data bus allows the CPU to run faster, but the hardware is more complex
page 9
• Control Bus,
- Runs between all devices, and is used to direct reads, writes, data ready, address
ready, interrupts, and a number of other signals.
RAM ROM
Control Bus
RS-232
Serial
Data I/O
• Clock speed determined how often the CPU will process instructions
• Each instruction will use a variable number of clock cycles. For example a get from memory
will take longer than a binary or operation.
• Different CPU’s may use anywhere from 5 to a fraction of a clock cycle to process an instruction
• Each instruction for the CPU is made up of a variable number of bytes. These are loaded from
memory during execution. In an 8 bit bus these are loaded 1 at a time. To speed this up wider
buses are used. For example a 64 bit bus could probably load up to 8 instructions at one. This
allows instructions to be stored and processed faster, and overcome the bus speed limitations
of computers.
• Other Computers use a trick called caching to speed the computer. This uses a shorter bus to
local memory which may be run at higher speeds, thus reducing the slower access to distant
memory.
3.5 SOFTWARE
• Interpreted,
- Program is stored as text (or equivalent), and each instruction is read, and inter-
preted as the program is running.
- Can be very slow
- Easier to write operating systems
- Suited to simple programming languages
- BASIC is a popular interpreted language.
• Compiled,
- Programs are converted, and stored in machine language before execution.
- Runs very fast
- Can allow very advanced debugging tools
- Programming can be complex
- Easier to protect copyrights
- FORTRAN and C are good examples of compiled languages.
• Operating Systems
- Software which provides fundamental services for the computer, such as running
printers, user accounting, etc.
- Can be very large
- Required for any computer to operate
- Acts as a go between for the programs and the hardware
- Popular Operating systems are UNIX, MS-DOS, VMS, NOS.
page 11
• Micro-code
- This is a program which the engineers write to control the CPU when it is ini-
tially designed.
- This is not seen by a user.
- Tells CPU how to deal with instructions
• Machine Language
- Written in the lowest level of language available to the user
- These programs are very fast and efficient.
- These programs are difficult to write.
• etc.
page 12
4. COMPUTER INTERFACING
• Interfacing for Acquisition of Signals from Sensors and Generation of Signals for Actuators
• Computers are designed to handle both input and output (I/O) data
Voltage
analog
digital
• Examples of Inputs
- contact switches
- proximity switches
- pulse counters
- pulse generators
- optical sensors
• Examples of Outputs,
- indicator lights
- solid state relays (e.g. for power to motor)
page 13
• The electrical connections for these signals quite often require some additional circuitry. This
includes,
latches - used to capture fast changing values (74163?)
schmitt triggers - pull a signal that may not be 0 or 5V to a reasonable logic level. It also
uses a dead zone to reduce random switching. (7414?)
flip flops - we can toggle these (7421?)
inverters - gives the signal strength an buffers (7404?)
opto-isolators - eliminates electrical connections for circuit safety. These are basically an
LED and phototransistor in one package.
triacs - allows DC signals to switch AC
relays - allows electrical switching that is electrically isolated with mechanical devices.
line drivers - converts low current signals to higher current (7485?)
op-amps - allow high impedance buffering between inputs and outputs. (741)
RC network - a resistor capacitor pair can be used to pass only high/low frequency signals,
and filter out noise/DC.
pull-up resistors - can keep inputs/outputs from floating.
Design some circuitry for a fuel injection computer control unit that is to read pulses
from a tachometer mounted on an engine, and then control fuel injection, and spark
timing. The setpoint is determined by the gas pedal.
• The computer uses approximation techniques to estimate the analog value during the sampling
window.
Analog
to Digital Amp
Converter
CPU Water
Running Supply
Control
Program
Analog
to Digital Amp
Converter Water Tank
pressure
transducer
• Multiplexers are used when a number of signals are to be input to a single A/D converter. This
allows each of a number of channels to be sampled, one at a time
• Signal conditioners are often to amplify, or filter signals coming from transducers, before they
are read by the A/D converter.
• Output drivers and amplifiers are often required to drive output devices when using D/A
• Sampling problems occur with A/D conversion. Because readings are taken periodically (not
continually), the Nyquist criterion specifies that sampling frequencies should be twice the fre-
quency of the signal being measured, otherwise aliasing will occur.
• Since the sampling window for a signal is short, noise will have added effect on the signal read.
For example, a momentary voltage spike might result in a higher than normal reading.
• When an analog value is converted to or from digital values, a quantization error is involved.
The digital numbering scheme means that for an 8 bit A/D converter, there is a resolution of
256 values between maximum and minimum. This means that there is a round off error of
approximately 0.4%.
page 16
voltage
time
• When there are analog values outside a computer, and we plan to read these to digital values,
there are a variety of factors to consider,
- when the sample is requested, a short period of time passes before the final sample value
is obtained.
- the sample value is ‘frozen’ after a sample interval.
- after the sample is taken, the system may change
- sample values can be very sensitive to noise
- the continuous values of the signal loose some accuracy when conversion to a digital
number
V(t)
V max
V2
V1
V min
t
τ
t1 t2
where,
V ( t ) = the actual voltage over time
τ = sample interval for A/D converter
t = time
t 1, t 2 = time at start,end of sample
V 1, V2 = voltage at start, end of sample
V min, V max = input voltage range of A/D converter
N = number of bits in the A/D converter
• Once this signal is processes through a typical A/D converter we get the following relations
(these may vary slightly for different types of A/D converters).
page 18
N
R = 2
V 2 – V min
V D = INT ----------------------------
- R – 0.5
V –V
max min
V max – V min
V ERROR = ----------------------------
-
2R
where,
R = resolution of A/D converter
V D = the integer value of the voltage
V ERROR = the maximum quantization error
• In most applications a sample is taken at regular intervals, with a period of ‘T’ seconds.
• In practice the sample interval is kept as small as possible. (i.e., tau << T)
• If we are sampling a periodic signal that changes near or faster that the sampling rate, there is a
chance that we will get a signal that appears chaotic, or seems to be a lower frequency. This
phenomenon is known as aliasing.
• Quite often an A/D converter will multiplex between various inputs. As it switches the voltage
will be sampled by a ‘sample and hold circuit’. This will then be converted to a digital value.
The sample and hold circuits can be used before the multiplexer to collect data values at the
same instant in time.
Vref
Vin
R/2
Decimal to binary
R converter
binary out
R
R/2
• These converters are very fast, but they are hard to build for high resolutions.
• The conversion rates for these devices are limited by inherent capacitance, and transistor switch-
ing times.
• After we have used a controller equation to estimate a value to put into our process, we must
convert this from a digital value in the computers memory, to a physical voltage.
• This voltage is typically limited to 20mA in most computer board, and drawing near this current
page 20
5KΩ
10KΩ V– V ss
MSB bit 3 -
V +
20KΩ + +
bit 2
0
Computer Vo
40KΩ
bit 1
-
80KΩ
LSB bit 0
Next, sum the currents into the inverting input as a function of the output voltage and the
input voltages from the computer,
Vb3 V b2 Vb1 V b0 Vo
--------------
- + --------------
- + --------------
- + --------------
- = -----------
-
10KΩ 20KΩ 40KΩ 80KΩ 5KΩ
∴V o = 0.5V b3 + 0.25V b2 + 0.125V b1 + 0.0625Vb 0
Consider an example where the binary output is 1110, with 5V for on,
∴V o = 0.5 ( 5V ) + 0.25 ( 5V ) + 0.125 ( 5V ) + 0.625 ( 0V ) = 4.375V
• The calculations for the A/D converter resolution and accuracy still apply.
We need to select a digital to analog converter for an application. The output will vary
from -5V to 10V DC, and we need to be able to specify the voltage to within 50mV.
What resolution will be required? How many bits will this D/A converter need?
What will the accuracy be?
4.3 TIMING
• trigger and scan - a special input board can be set to read one or more values
when timing or triggering conditions met
• Values are simply read from/written to locations in memory for both analog and digital values.
When the process takes more than a single CPU cycle there will be a flag set to indicate when
the operation is done. One example is reading analog values. This process may take hundreds
of CPU cycles. We have three options,
1. continually check the ‘done’ flag/bit in memory
2. have the A/D converter trigger an interrupt when done
3. have the program perform other tasks for a period of time longer than the longest scan
time.
4.3.1 Interrupts
4.3.4 Polling
4.3.5 DMA
4.4 DISPLAYS
5.1 OVERVIEW
5.1.1 Types
5.3 EXAMPLES
- Control the scanning and processing of all the inputs and outputs between the process
and the computer.
- Provide conversions of signal levels, compensation for sensor range, and linearization of
signals.
- Provide signal and sensor validity checks.
- Provide signal pre-processing and filtering.
- Provide measurements to the various other programming packages which have been con-
verted to engineering units or interpreted in other ways.
- Provide alarm limit checks input-by-input.
• Some features found in computer control systems,
- timer initiated events - such as clock based sampling periods for a control loop
- Process initiated interrupts - Prioritized interrupt signals can be used to alert computers
to standard notifications, or to initiate an emergency sequence when a critical fail-
ure has occurred.
- Control software - directs the operating points for the control system
- System and program initiated events - these are for system house keeping, and for com-
munication to other computer systems in a network.
- Operator initiated events - requests for reports, changing of operating parameters, check-
ing quality, etc.
• Interrupts
• Each computer has the ability to process interrupts.
• These interrupts can stop the microprocessor, and make it execute other subroutines.
• If no interrupts are received, the computer will always run the same program
• When interrupts are received, they are processed as urgent, or non-urgent.
• When an interrupt is processed, a small subroutine is run, and then execution returns to
the original point in the interrupted program.
• If interrupts are not used, then the computer must continuously scan all of its inputs to
see if any are critical. But this is not practical for real time processing.
Control Computer
Amp
& A/D
Analog-to-
digital
converter
Contact
input
interface
Pulse
counter Manufacturing
Digital
Computer process
and
Digital-to- equipment
analog
converter
Contact
output
interface
Pulse
generator
Data
processing
peripherals
- Batch processes entail movement of discrete product from processing area to processing
area
- Batch processes have recipes (or processing instructions) associated with each load of
raw material to be processed into product.
- Batch processes have more complex logic associated with processing than is found in
continuous processes
- Batch processes often include normal steps that can fail, and thus also include special
steps to be taken in the event of a failure.
Yes
Yes
Fault Detected
or Operator Abort
Fault Exit to
pre-defined step
- There must be an I/O interface between the processes and the control. The I/O interface
passes all the information moving between the two parts of the total system.
- The control system must provide continuous control functions to regulate appropriate
portions of the process.
- The control system must provide sequential control functions. A properly designed batch
control system should make it easy to describe the sequence of operations and the
checks that must take place.
- The control system must provide displays and interfaces which the operator can use to
monitor and direct process activity.
• Process Data,
• can ensure dangerous situations are avoided
• variables such as temperature, pressures, forces, concentrations of chemicals, etc.
• Can help track process progress, and allow corrections
• Equipment Data,
• Data related to equipment
• Can avoid dangerous and costly operating conditions
• Product Data,
• Allows on line monitoring of process output,
• variables can be, quality, yield, production rate, etc.
page 29
• The steps below are typically essential for replacing an existing/new control system with a com-
puter control system:
1. do an analysis of the existing/similar system.
2. clearly list control objectives
3. list outputs required to meet objectives
4. list inputs required to meet objectives
5. determine logical relationships between the inputs and outputs
6. write programs for relationships found in last step
7. document all aspects of the system
6.4.1 SCADA
• SCADA (System Control And Data Acquisition) systems are based around a central computer.
• The central computer communicates with remote computers/PLCs/sensors to issue control com-
mands and collect data.
1. A video voltage signal is to be digitized by an A/D converter. The maximum voltage range is
15V. The A/D converter has a 6-bit capacity. Determine the number of quantizing levels the
quantization level spacing, and the quantization error.
page 30
7. COMPUTER COMMUNICATIONS
• Basic Categories
• Interface to Sensors and Actuators
- Uses readings from sensors to control devices in the environment
- very simple protocols, but often requires specialized hardware and software.
• Interface to computers
- uses machine to machine connection for direct communication
- can appear to be like a local area network
- low speeds (eg. 300 baud, 1.2, 2.4 9.2 Kbaud)
• Local Area Computer Networks
- measured in distances from meters to kilometers
- speed measured in Megabits/sec
- medium includes, wire, fibre-optics, radio frequency
- commonly available in all forms
- inexpensive
• Wide Area Computer Networks
- from city wide, to global
- speed measured in Kilobytes/second
- medium includes, wire, fibre optics, satellite, microwave
- access is costly (some mix of initial and variable costs), and geared to large cor-
porations, or special applications.
Table 1:
Table 1:
• Late 50’s
- Bell introduces data communication networks
- Texaco uses remote monitoring and control for automating polymerization plant.
• Early 60’s
- World wide use of data phone system to link airports for maintenance
- Many uses of terminals for inputting and displaying data.
• Mid 60’s
- Uses of computer for large scale test monitoring
- NC part programming being done remotely on time sharing mainframes.
• 70’s
- Advent of Mini computers made it possible for companies to have multiple com-
puters which had to communicate.
• 80’s
- Microprocessor drops cost of computers dramatically, and automated machines
become very common
- Personal computers, and automated machinery start a trend to network small
computers networked with large computers
-
• These techniques are often slower, but are essential when transmitting using radio waves, tele-
phone lines, or similar media.
• Serial lines have become one of the most common methods for transmitting data to instruments,
page 32
• A typical data byte looks like the one below. The voltage/current on the line is turned on/off. The
width of the bits determines the possible bits per second (bps). The value shown before is used
to transmit a single byte.
on
off
7.3.1 RS-232
• This standard is based on a high being +3 to +15V, and an off being -3 to -15V (+/-12V is com-
monly used).
• The typical connection scheme is shown below. notice that the lines are crossed between con-
nectors. Also note that in some cases the dsr/dtr lines are not used.
page 33
Computer Computer
A com com B
txd txd
rxd rxd
dsr dsr
dtr dtr
• A simpler wire is also used for some devices (in low noise situations) called a null modem cable.
In this cable only the data and common lines are used.
Computer Computer
A com com B
txd txd
rxd rxd
dsr dsr
dtr dtr
• There are typically two connectors used for these devices. (Note: the connector have very fine
numbers on them)
page 34
1 2 3 4 5 6 7 8 9 10 11 12 13
DB-25
14 15 16 17 18 19 20 21 22 23 24 25
1 2 3 4 5
6 7 8 9 DB-9
7.4 RS-422
7.5 RS-485
page 35
7.6 GPIB/IEEE-488
• In parallel data schemes, all of the data bits are sent at the same time.
• This generally allows a higher rate of data transfer, but only shorter distances, and with a higher
number of conductors in the cable.
page 36
• A single communication line links two computers, and allows communications one bit at a time.
• Typically strings are passed to and from a terminal, modem, mouse, etc.
• Each byte is sent one bit at a time with the various framing options,
- 1 or 2 stop bits
- Even, Odd, or No parity bit
- 7 or 8 data bits
- 1 start bit
data bits
(7 or 8 bits high or low) stop bits
(1 or 2)
parity bit
(a simple check
start bit (low) for data bits)
voltage
(on data line)
tim
• Advantages,
- Very inexpensive
- Easy to hook up
- A popular communication port found on almost all computer hardware, regardless of
age.
page 37
• Disadvantages,
- Very slow
• Characteristics,
• Speeds of 110, 150, 300, 600, 1200, 2400, 4800, 9600, 12000, 19200 baud (bits per sec-
ond)
• Can use as few as three wires for connection, or more as advanced handshaking lines are
required.
• Specialized chips, and modems are commercially available for using this interface
• Instead of sending the bits in a byte one at a time, parallel buses send the bits in parallel, so that
the entire byte arrives at once.
• Basic parallel interfaces connect only two computers (see next section for other case)
• Advantages,
- Can be very fast, and reliable
- Easy to create computer hardware to support
- Chips exist for easy implementation of this scheme
- The parallel port may be used for alternate form of digital I/O
• Disadvantages,
- Cabling can be more expensive
- Standards are not as wide spread as serial communications
- parallel ports are not universally available on computers and peripherals
• A Parallel bus that has been enhanced to support a number of computers connected by the same
cable.
• A Brief History,
• In the early 70’s there was a movement towards standard serial interfaces, but no clear
development of a parallel interface standard. As a result Hewlett Packard (HP) set
out to develop the GPIB (General Purpose Interface Bus).
• The HP standard was accepted by both the IEEE and ANSI as standards in 1975.
• By the early 80’s the standard was available in small personal computers (e.g. Commo-
dore Pet Computers).
• Today many products, and chips are available for development and use of the standard.
• Advantages,
- Low costs
- Widely available for test instruments
- Maximum speeds between 500 Khz and 1 MHz
- Can replace up to 16 individual serial interfaces with a single interface on the main com-
puter
• Disadvantages,
- Not necessarily real time,
- Can be difficult for beginners to learn the bus architecture, but users are often isolated
from this.
- This is often used as a high performance interface on specialized equipment, but is not
available on commercial applications anymore.
• Some details,
- Each device on a GPIB bus has its own address number.
-A talker-listener protocol is used to resolve bus usage
- The devices on the bus can be instructed to identify themselves.
page 39
9. COMPUTER NETWORKING
• A Network is a way of connecting different computers to allow data and message passing, and
resource sharing.
• Early communication techniques included telegraphs (with morris code), telephones and tele-
types.
• Advantages
- allows shared computers and peripherals
- provides communication and cooperation tools for people and computers
- increases reliability by having alternate computers available
- decreases isolation of many computers
• Applications,
- allows remote access to databases and libraries
- electronic mail
- distributed computational facilities
- remote control of applications
...
- Shared Media
- Distributed Control
- No media sharing
- Central Control
page 40
• When all computers are connected to the same network cable, there are a number of structures
which may be used. The bus topology below is simpler, and the tree topology is more flexible
page 41
and versatile. This approach uses a single cable which is easy to add to
...
Bus Topology
...
Tree Topology
R Repeater
• The ring topology below shows a closed loop of cable which can be simple to implement, but
page 42
limited in capabilities
- Distributed control
Characteristics
HOST
N o. 3 H O ST
- Control token passed from
N o. 2
node to node
• The figure below shows two ring networks, with a few possible devices hooked to them.
BRIDGE
File
Server
Wiring
Concentrators
Gateway
Terminal
Controller
Wide-Area
Links
• Advantages
- Computers not necessarily from the same manufacturer
- Allow computers to communicate information.
- Sharing of equipment such as printers, disks, etc.
- Programs can run on multiple machines improving performance
- Access to machines with better/different resources.
page 44
Layer Protocol
1 Physical Bit Physical
Interconnecting Medium
A Layer Interface
• Physical layer is concerned with transmission of raw bits over a physical circuit.
• Responsible for bit synchronization and the identification of a signal element as either a 0 or a 1.
• Data link layer breaks input data into “data frames” and processes acknowledgments.
• Responsible for the reliable delivery of information over a point-to-point or multipoint link.
• Network layer determines the interface between the computer and the intermediate system, how
packets are routed.
• Chooses a route from the available data links that form the network.
• Object is to take messages, convert them to packets and send them towards the destination.
• Transport layer takes data from the session layer, splits it up if necessary, and passes this to the
network layer.
• Isolates the user from any concern for the actual movement of the information.
• Includes specification of the remote machine, authorization, options for the communication, and
recovering from errors in broken transport connections.
• Protocols: ISO 8327, CCITT X.225, T.62, ECMA 75, NFS, RPC.
• Ensures compatible syntax among the communicating processes by adjusting data structures,
formats, and codes.
• Presentation layer is generally represented by library routines which the user accesses to per-
form network operations.
• This layer can also perform transformations such as compression and encryption.
• Application layer is written by the user, or is a program that performs some function for the user.
• Provides a window by which the user gains access to the communication services provided by
the architecture.
Control
Services Primitives
(N+1) th Layer
N th Layer
System/Vendor X System/Vendor Y
Functional Peer Protocol Functional
Entity Entity
(N-1) th Layer
Control Services
Primitives
IMP-IMP
Data Link Data link control Data link control
• The Media,
page 50
• Transceiver
- A device which is sometimes included between the network media, and the network
interface hardware.
- Allows easy changes to media type.
- Not used for thin cable computer interfaces.
- Approximate costs $100 to $200
• Hub/Concentrator
- Connects separate wires and will route local traffic to local wires and remote through
external connections.
- approximate cost $50/wire
- messaging systems
- etc
- Examples of this are NFS (Network File Server), SNMP (Simple Network Management
Protocol)
- Approximate costs >$1,000, unless provided with system
Network
Tap
RAM
IO-system PROM
80586 CPU
LAN
Token Bus Handler
Cable
(Dual Gate Array)
page 52
10.1 OVERVIEW
• 1980 GM decides to begin development of a networking protocol for the high data rates
expected, while improving noise immunity. This scheme was expected to provide a common
standard for all equipment to simplify integration.
• Problems,
• Difficulties have arisen getting Countries andVendors to agree on specific standards
• Standards are so broad that they have become very complex and hard to develop hard-
ware and software for, thus driving up the costs
• Versions 2.1 and 2.2 left the application layer under-defined, but a new effort in version
3.0 to define the application layer. This has lead to even higher levels of disagree-
ment.
• The MAP Protocol is not clearly defined in a single document
• In 1985 GM realized that it couldn’t meet its needs for CIM. Only 15% of the 40,000 program-
mable devices could communicate.
• No single vendor could meet all the needs, and multiple vendors caused communication incom-
patibilities.
10.2 DETAILS
• Networks,
• Broadband
- many simultaneous communications on same wire at same time, using varied fre-
quencies for transmit channels and receive channels.
- uses a head end remodulator to retransmit the signal
- each station needs MAP hardware
- for very large factories
- uses a 1 inch (2.5 cm) thick cable
- maximum 10 Megabits/sec. per channel
page 53
• Carrierband
- less expensive
- uses smaller cables
- rate of 5 to 10 Megabits second (single channel)
• Other Equipment,
• Bridge
- allows connections between different network types (such as a connection
between Broadband and Carrierband)
• Token passing allows a ‘token’ to be passed between computers, whichever computer has the
token is given control of the network.
• If a token passing ring is broken, the computers will wait, and eventually each half of the broken
ring will have tokens being passed.
• Extensive algorithms have been developed for control of token passing, and resolution of con-
flicts.
• Preferred Standards.
• Some specifics,
- FTAM (File Transfer Access Method) for file transfer
- MMS (Manufacturing Message System) for content of messages bound for robotic
equipment
- ACSE (association Control for Service Elements) for program to program communica-
tion.
- Set of protocols should make communication between heterogeneous devices, not only
page 54
in moving data around, but also in communication the meaning of that data.
- MAP has been delayed because of changes to the standard between 2.1 (1985) and 3.0
(1988)
- A version of MAP, EPA (Enhanced Performance Architecture) has been developed, and
is supported by the process control industry, and CNMA (Communication Net-
works for Manufacturing Applications)
- CNMA has lobbied for the inclusion of Ethernet (IEE 802.3) as an alternative for the
standard.
ISO/OSI
Reference
MAP Version 3.0
Model
Directory Services
Application Network Management
MMS FTAM ACSE
Presentation Presentation
Session Session
CLNS
Network
ES-IS
IEEE 802.2
Data Link
IEEE 802.4 10M-byte
Broadband
or
Physical
5M-byte Carrier Band
Notes:
ACSE Association control service element
CLNS Connectionless network service
ES End system
FTAM File transfer and access method
IS Intermediate system
MMS Manufacturing message specification
page 56
• TOP (Technical and Office Protocols) is designed for the office environment.
• Preferred LAN is IEEE 802.3 Ethernet, But allows for Token Bus (IEEE 802.4) and Token Ring
(IEEE 802.5). Fibre optical media will be added when they are defined.
• uses same ISO standards for network, transport, session and presentation layers that MAP uses
• ACSE and FTAM are the same as MAP, MMS is not included
• (MHS) CCITT X.400 message handling service provides electronic mail transfers of all types of
documents
• ISO Virtual terminal protocol to allow a terminal on any machine to log onto any other machine.
• ODA/ODIF (ISO Office Document Architecture and Office Document Interchange Format) To
permit formatted documents to be transmitted independently of the package used to create
them. (Text, and Raster or Line graphics)
• CGM (ISO Computer Graphics Metafile) to permit the exchange of geometrical graphics
• IGES (ANSI Initial Graphics Exchange Standard) to exchange product design information
among CAD/CAM workstations.
• Suggested that the two protocols MAP for CAM, and TOP for CAD be separated at the database
level.
• STEP (Standard for the Exchange of Product Data) based on PDES, is an international standard
to facilitate the transfer of data in CAD/CAM.
• GOSIP (Government Open Systems Interconnection Profile) has been developed by the U.S.
Government (NIST) to provide an open systems standard fro their computers. GOSIP is almost
a subset of TOP 3.0
page 57
Directory Services
Application RTS Network Management
FTAM VT ACSE
Session Session
CLNS
Network
ES, IS, and X.25 PLP
LAPB
IEEE IEEE
802.5 802.4 X.21 bis
Physical
and X.21
Notes:
ACSE Association control service element
CLNS Connectionless network service
ES End system
FTAM File transfer and access method
IS Intermediate system
LAPB Link access protocol-balanced
MHS Message-Handling System
PLP Physical layer protocol
RTS Reliable transfer system
VT Virtual Terminal
ISO/OSI
Reference
Model
Application
Presentation
Session
10.5 MAP AND OTHER STANDARDS
Network
Data Link
Bitbus Ethernet
Physical
• ISO/OSI Reference Model Compared with Factory Communication Standards
Application Application
Presentation
Session
Transport
Network
Computer Room
TMS CMS
page 60
AGV
Wire Guided Vehicle Material Transport System
• All seven MAP layers reside and run on each board set of this board-level MPA interface
AGV
page 61
Table 2:
Legend
10.7 ETHERNET
10.7.1 Internet
10.7.2 SLIP/PPP
10.10 DEVICENET
• Speeds often measured in bps (bits per second) but we are more interested in the bytes per sec-
ond. There is approximately an 11:1 ratio.
T1 is 1.544 Mbps
T3 is 44.54 Mbps
• Network transmission,
baseband - single frequency- only one station may transmit at any time (Ethernet, ARC-
page 63
• Token based networks rotate talk permissions between machines by passing a “token”
• FDDI - fiber based token passing rings that rotate in opposite directions
•Query operations:
- Select - picking records
- Project - picking fields
- Join - merging of tables
• Important factors
page 65
• Approach
- Optimizing specific query based upon specific statistical conditions
- The query site will either “estimate” or request the related sites to report the related time
and cost of moving the data before deciding on an actual query sequence
• Maximize the amount of parallel activity while maintaining the semantic integrity of the data
• Approach
- A transaction: a set of reads, followed by some processing, and then a set of writes
- A log is the time ordered sequence of reads and writes performed on the database
- A log is serial if each read is immediately followed by an appropriate write
- There is no known algorithm that allows serial logs, all serializable logs, and all other
logs that leave the database consistent
- Most algorithms achieve serializable logs by allowing transaction to lock part of the
database
- The lock could be applied on the full database, or some tables, records, fields, and phys-
ical sectors
- Deadlock occurs when two queries want to lock certain resources that have already been
locked by each other