- •24.3 HYDRAULICS
- •24.4 OTHER SYSTEMS
- •24.5 SUMMARY
- •24.6 PRACTICE PROBLEMS
- •24.7 PRACTICE PROBLEM SOLUTIONS
- •24.8 ASSIGNMENT PROBLEMS
- •25. CONTINUOUS CONTROL
- •25.1 INTRODUCTION
- •25.2 CONTROL OF LOGICAL ACTUATOR SYSTEMS
- •25.3 CONTROL OF CONTINUOUS ACTUATOR SYSTEMS
- •25.3.1 Block Diagrams
- •25.3.2 Feedback Control Systems
- •25.3.3 Proportional Controllers
- •25.3.4 PID Control Systems
- •25.4 DESIGN CASES
- •25.4.1 Oven Temperature Control
- •25.4.2 Water Tank Level Control
- •25.5 SUMMARY
- •25.6 PRACTICE PROBLEMS
- •25.7 PRACTICE PROBLEM SOLUTIONS
- •25.8 ASSIGNMENT PROBLEMS
- •26. FUZZY LOGIC
- •26.1 INTRODUCTION
- •26.2 COMMERCIAL CONTROLLERS
- •26.3 REFERENCES
- •26.4 SUMMARY
- •26.5 PRACTICE PROBLEMS
- •26.6 PRACTICE PROBLEM SOLUTIONS
- •26.7 ASSIGNMENT PROBLEMS
- •27. SERIAL COMMUNICATION
- •27.1 INTRODUCTION
- •27.2 SERIAL COMMUNICATIONS
- •27.2.1.1 - ASCII Functions
- •27.3 PARALLEL COMMUNICATIONS
- •27.4 DESIGN CASES
- •27.4.1 PLC Interface To a Robot
- •27.5 SUMMARY
- •27.6 PRACTICE PROBLEMS
- •27.7 PRACTICE PROBLEM SOLUTIONS
- •27.8 ASSIGNMENT PROBLEMS
- •28. NETWORKING
- •28.1 INTRODUCTION
- •28.1.1 Topology
- •28.1.2 OSI Network Model
- •28.1.3 Networking Hardware
- •28.1.4 Control Network Issues
- •28.2 NETWORK STANDARDS
- •28.2.1 Devicenet
- •28.2.2 CANbus
- •28.2.3 Controlnet
- •28.2.4 Ethernet
- •28.2.5 Profibus
- •28.2.6 Sercos
- •28.3 PROPRIETARY NETWORKS
- •28.3.1 Data Highway
- •28.4 NETWORK COMPARISONS
- •28.5 DESIGN CASES
- •28.5.1 Devicenet
- •28.6 SUMMARY
- •28.7 PRACTICE PROBLEMS
- •28.8 PRACTICE PROBLEM SOLUTIONS
- •28.9 ASSIGNMENT PROBLEMS
- •29. INTERNET
- •29.1 INTRODUCTION
- •29.1.1 Computer Addresses
- •29.1.2 Phone Lines
- •29.1.3 Mail Transfer Protocols
- •29.1.4 FTP - File Transfer Protocol
- •29.1.5 HTTP - Hypertext Transfer Protocol
- •29.1.6 Novell
- •29.1.7 Security
- •29.1.7.1 - Firewall
- •29.1.7.2 - IP Masquerading
- •29.1.8 HTML - Hyper Text Markup Language
- •29.1.9 URLs
- •29.1.10 Encryption
- •29.1.11 Compression
- •29.1.12 Clients and Servers
- •29.1.13 Java
- •29.1.14 Javascript
- •29.1.16 ActiveX
- •29.1.17 Graphics
- •29.2 DESIGN CASES
- •29.2.1 Remote Monitoring System
- •29.3 SUMMARY
- •29.4 PRACTICE PROBLEMS
- •29.5 PRACTICE PROBLEM SOLUTIONS
- •29.6 ASSIGNMENT PROBLEMS
- •30. HUMAN MACHINE INTERFACES (HMI)
- •30.1 INTRODUCTION
- •30.2 HMI/MMI DESIGN
- •30.3 DESIGN CASES
- •30.4 SUMMARY
- •30.5 PRACTICE PROBLEMS
- •30.6 PRACTICE PROBLEM SOLUTIONS
- •30.7 ASSIGNMENT PROBLEMS
- •31. ELECTRICAL DESIGN AND CONSTRUCTION
- •31.1 INTRODUCTION
- •31.2 ELECTRICAL WIRING DIAGRAMS
- •31.2.1 Selecting Voltages
- •31.2.2 Grounding
- •31.2.3 Wiring
- •31.2.4 Suppressors
- •31.2.5 PLC Enclosures
- •31.2.6 Wire and Cable Grouping
- •31.3 FAIL-SAFE DESIGN
- •31.4 SAFETY RULES SUMMARY
- •31.5 REFERENCES
- •31.6 SUMMARY
- •31.7 PRACTICE PROBLEMS
- •31.8 PRACTICE PROBLEM SOLUTIONS
- •31.9 ASSIGNMENT PROBLEMS
- •32. SOFTWARE ENGINEERING
- •32.1 INTRODUCTION
- •32.1.1 Fail Safe Design
- •32.2 DEBUGGING
- •32.2.1 Troubleshooting
- •32.2.2 Forcing
- •32.3 PROCESS MODELLING
- •32.4 PROGRAMMING FOR LARGE SYSTEMS
- •32.4.1 Developing a Program Structure
- •32.4.2 Program Verification and Simulation
- •32.5 DOCUMENTATION
- •32.6 COMMISIONING
- •32.7 REFERENCES
- •32.8 SUMMARY
- •32.9 PRACTICE PROBLEMS
- •32.10 PRACTICE PROBLEM SOLUTIONS
- •32.11 ASSIGNMENT PROBLEMS
- •33. SELECTING A PLC
- •33.1 INTRODUCTION
- •33.2 SPECIAL I/O MODULES
- •33.3 SUMMARY
- •33.4 PRACTICE PROBLEMS
- •33.5 PRACTICE PROBLEM SOLUTIONS
- •33.6 ASSIGNMENT PROBLEMS
- •34. FUNCTION REFERENCE
- •34.1 FUNCTION DESCRIPTIONS
- •34.1.1 General Functions
- •34.1.2 Program Control
- •34.1.3 Timers and Counters
- •34.1.4 Compare
- •34.1.5 Calculation and Conversion
- •34.1.6 Logical
- •34.1.7 Move
- •34.1.8 File
- •34.1.10 Program Control
- •34.1.11 Advanced Input/Output
- •34.1.12 String
- •34.2 DATA TYPES
plc electrical - 31.8
31.2.1 Selecting Voltages
When selecting voltage ranges and types for inputs and outputs of a PLC some care can save time, money and effort. Figure 31.6 that shows three different voltage levels being used, therefore requiring three different input cards. If the initial design had selected a standard supply voltage for the system, then only one power supply, and PLC input card would have been required.
PLC Input Cards
+
48Vdc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I0 |
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
com |
+ |
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
|
I0 |
|
|
|
|
|
|
|
|
|
|
|
|
||
24Vdc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
com |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I0 |
+ |
|
|
|
|||||||||
|
|
|
|
|
|
|
|
|
|
|
com |
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
||
5Vdc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PLC Input Card
+ |
I0 |
24Vdc |
I1 |
|
|
|
I2 |
|
I3 |
- |
com |
|
Figure 31.6 Standardized Voltages
plc electrical - 31.9
31.2.2 Grounding
The terms ground and common are often interchanged (I do this often), but they do mean different things. The term, ground, comes from the fact that most electrical systems find a local voltage level by placing some metal in the earth (ground). This is then connected to all of the electrical outlets in the building. If there is an electrical fault, the current will be drawn off to the ground. The term, common, refers to a reference voltage that components of a system will use as common zero voltage. Therefore the function of the ground is for safety, and the common is for voltage reference. Sometimes the common and ground are connected.
The most important reason for grounding is human safety. Electrical current running through the human body can have devastating effects, especially near the heart. Figure 31.7 shows some of the different current levels, and the probable physiological effects. The current is dependant upon the resistance of the body, and the contacts. A typical scenario is, a hand touches a high voltage source, and current travels through the body and out a foot to ground. If the person is wearing rubber gloves and boots, the resistance is high and very little current will flow. But, if the person has a sweaty hand (salty water is a good conductor), and is standing barefoot in a pool of water their resistance will be much lower. The voltages in the table are suggested as reasonable for a healthy adult in normal circumstances. But, during design, you should assume that no voltage is safe.
|
current in body (mA) |
|
effect |
||
|
|
||||
|
|
|
|
|
|
0-1 |
|
|
negligible (normal circumstances, 5VDC) |
||
1-5 |
|
|
uncomfortable (normal circumstances, 24VDC) |
||
10-20 |
|
|
possibility for harm (normal circumstances, 120VAC) |
||
20-50 |
|
|
muscles contract (normal circumstances, 220VAC) |
||
50-100 |
|
|
pain, fainting, physical injuries |
||
100-300 |
|
|
heart fibrillates |
||
300+ |
|
|
burns, breathing stops, etc. |
||
Figure 31.7 |
Current Levels |
plc electrical - 31.10
Aside: Step potential is another problem. Electron waves from a fault travel out in a radial direction through the ground. If a worker has two feet on the ground at different radial distances, there will be a potential difference between the feet that will cause a current to flow through the legs. The gist of this is - if there is a fault, don’t run/walk away/ towards.
Figure 31.8 shows a grounded system with a metal enclosures. The left-hand enclosure contains a transformer, and the enclosure is connected directly to ground. The wires enter and exit the enclosure through insulated strain reliefs so that they don’t contact the enclosure. The second enclosure contains a load, and is connected in a similar manner to the first enclosure. In the event of a major fault, one of the "live" electrical conductors may come loose and touch the metal enclosure. If the enclosure were not grounded, anybody touching the enclosure would receive an electrical shock. When the enclosure is grounded, the path of resistance between the case and the ground would be very small (about 1 ohm). But, the resistance of the path through the body would be much higher (thousands of ohms or more). So if there were a fault, the current flow through the ground might "blow" a fuse. If a worker were touching the case their resistance would be so low that they might not even notice the fault.
wire break off |
and touches case |
Current can flow two ways, but most will follow the path of least resistance, good grounding will keep the worker relatively safe in the case of faults.
Figure 31.8 Grounding for Safety
plc electrical - 31.11
Note: Always ground systems first before applying power. The first time a system is activated it will have a higher chance of failure.
When improperly grounded a system can behave erratically or be destroyed. Ground loops are caused when too many separate connections to ground are made creating loops of wire. Figure 31.9 shows ground wires as darker lines. A ground loop caused because an extra ground was connected between device A and ground. The last connection creates a loop. If a current is induced, the loop may have different voltages at different points. The connection on the right is preferred, using a tree configuration. The grounds for devices A and B are connected back to the power supply, and then to the ground.
extra ground |
Preferred |
|
creates a loop |
|
|
|
|
|
|
|
device A |
device A |
||
|
|
||
|
device B |
|
device B |
|
ground loop |
+V gnd |
-V |
+V |
-V |
||
|
gnd |
|
|
power |
power |
|
|
supply |
supply |
|
Figure 31.9 Eliminating Ground Loops
Problems often occur in large facilities because they may have multiple ground points at different end of large buildings, or in different buildings. This can cause current to flow through the ground wires. As the current flows it will create different voltages at different points along the wire. This problem can be eliminated by using electrical isolation systems, such as optocouplers.