- •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 function ref - 34.14
34.1.5 Calculation and Conversion
ACS, ASN, ATN, COS, LN, LOG, NEG, SIN, SQR, TAN - ArcCosine, ArcSiNe, ArcTaNgent, COSine, Logarythm Natural, LOGarythm, NEGative, SINe, SQuare Root, TANgent
|
A |
|
ACS |
|
|
|
|
||
|
|
|
ARCCOSINE |
|
|
|
|
||
|
|
|
Source |
N7:0 |
|
|
|
||
|
|
|
Dest |
N7:1 |
|
|
|
|
|
Description: |
These are unary math functions that will load a value from the source, do |
|
|
|
the calculation indicated, and store the results in the destination. Func- |
|
|
tions possible include |
|
|
ACS - Arccosine (inverse cosine) in radians |
|
|
ASN - Arcsine (inverse sine) in radians |
|
|
ATN - Arctangent (inverse tangent) in radians |
|
|
COS - Cosine using radians |
|
|
LN - Natural Logarithm |
|
|
LOG - Base 10 logarithm |
|
|
NEG - Sign change from positive to negative, or reverse |
|
|
SIN - Sine using radians |
|
|
SQR - Square root |
|
|
TAN - Tangent using radians |
Status Bits: |
C |
Carry - set if a carry is generated |
|
V |
Overflow - only set if value exceeds maximum for number type |
|
Z |
Zero - sets if the result is zero. |
|
S |
Sign - set if result is negative |
Registers: none
Available on: Micrologix, PLC-5
plc function ref - 34.15
ADD, DIV, MUL, SUB, XPY - ADDition, DIVision, MULtiplication, SUBtraction, X to the Power of Y
Description:
Status Bits:
Registers:
A |
|
ADD |
|
|
|
ADD |
|
|
|
||
|
|
Source A |
N7:0 |
|
|
||
|
|
Source B |
N7:1 |
|
|
Dest |
N7:2 |
|
|
|
|
These are binary math functions that will load two values from sources A and B, do the calculation indicated, and store the results in the destination. Functions possible include
ADD - Add two numbers
DIV - Divide source A by source B MUL - Multiply A and B
SUB - Subtract B from A
XPY - Raise X to the power of Y
C |
Carry - sets if a carry is generated |
V |
Overflow - only set if value exceeds maximum for number type |
Z |
Zero - sets if the result is zero. |
S |
Sign - sets if the result is negative |
none |
|
Available on: Micrologix, PLC-5
plc function ref - 34.16
AVE, STD - AVErage, STandard Deviation |
|
|
|||
|
|
|
|
|
|
|
|
A |
AVE |
|
|
|
|
||||
|
|
|
|
AVERAGE FILE |
|
|
|
|
|
||
|
|
|
|
File |
#N7:0 |
|
|
|
|
||
|
|
|
|
Dest |
N7:10 |
|
|
|
|
Control |
R6:0 |
|
|
|
|
||
|
|
|
|
Length |
10 |
|
|
|
|
Postion |
0 |
|
|
|
|
|
|
Description: |
These functions do the basic statistical calculations, average (AVE) and |
|
|
standard deviation (STD). When the input goes from false to true the |
|
|
calculation is begun. The values to be used for the calculation are |
|
|
taken from the memory starting at the start of the file location, for the |
|
|
length indicated. The final result is stored in the Dest. The control file |
|
|
is used for the calculation to keep track of position, and indicate when |
|
|
the calculation is done (it may take more than one PLC scan). |
|
Status Bits: |
C |
Carry - always 0 |
|
V |
Overflow - only set if value exceeds maximum for number type |
|
Z |
Zero - sets if the result is zero. |
|
S |
Sign - sets if the result is negative |
|
EN |
Enable - on when the instruction input is on |
|
DN |
Done - set when the calculation is complete |
|
ER |
Error - set if an error was encountered during calculation |
Registers: none
Available on: Micrologix, PLC-5
plc function ref - 34.17
CLR - CLeaR |
|
|
|
||
|
|
|
|
|
|
|
|
A |
|
CLR |
|
|
|
||||
|
|
|
|
CLR |
|
|
|
|
|
||
|
|
|
|
Dest |
N7:0 |
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
Description: |
This value will clear a memory location by putting a zero in it when the |
|
input to the function is true. |
Status Bits: |
none |
Registers: |
none |
Available on: Micrologix, PLC-5
CPT - ComPuTe |
|
|
|
||
|
|
A |
|
CPT |
|
|
|
||||
|
|
|
|
COMPUTE |
|
|
|
|
|
||
|
|
|
|
Dest |
N7:0 |
|
|
|
|
||
|
|
|
|
Expression |
|
|
|
|
|
“N7:1 - N7:3” |
|
|
|
|
|
||
|
|
|
|
|
|
Description: |
This expression allows free-form entry of equations. A maximum of 80 |
|
characters is permitted. Operations allowed include +, -, | (divide), *, |
|
FRD, BCD, SQR, AND, OR, NOT, XOR, ** (x**y = x to power y), |
|
RAD, DEG, LOG, LN, SIN, COS, TAN, ASN, ACS, ATN |
Status Bits: |
none |
Registers: |
none |
Available on: PLC-5
plc function ref - 34.18
FRD, TOD, DEG, RAD - FRom bcD to integer, TO bcD from integer, DEGrees from radians, RADians from degrees
|
A |
|
FRD |
|
|
|
|
||
|
|
|
FROM BCD |
|
|
|
|
||
|
|
|
Source |
N7:0 |
|
|
|
||
|
|
|
Dest |
N7:1 |
Description: |
This function will convert the value in the source location and store the |
|
|
|
result in the Dest location. The functions possible include, |
|
FRD - From BCD to a 2s compliment integer number |
|
|
TOD - From 2s compliment integer number to BCD |
|
|
DEG - Convert from radians to degrees |
|
|
RAD - Convert from degrees to radians |
|
Status Bits: |
C |
Carry - always 0 |
|
V |
Overflow - sets if an overflow as generated during conversion |
|
Z |
Zero - sets if the result is zero. |
|
S |
Sign - sets if the MSB of the result is set |
Registers: none
Available on: Micrologix, PLC-5
SRT - SoRT
Description:
plc function ref - 34.19
A |
|
SRT |
|
|
|
SORT |
|
|
|
||
|
|
File |
#N7:0 |
|
|
||
|
|
Control |
R6:0 |
|
|
Length |
10 |
|
|
Position |
0 |
This functions sort the values in memory from lowest value in the first location to the highest value. When the input goes from false to true the calculation is begun. The values to be used for the calculation are sorted in the memory starting at the start of the file location, for the length indicated. The control file is used for the calculation to keep track of position, and indicate when the calculation is done (it may take more than one PLC scan).
Status Bits: |
EN |
Enable - on when the instruction input is on |
|
DN |
Done - set when the calculation is complete |
|
ER |
Error - set if an error was encountered during calculation |
Registers: |
none |
|
Available on: Micrologix, PLC-5