Contents vii
Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
Routines . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
Creating Tags . . . . . . . . . . . . . . . . . . . . . . . . 325
Monitoring and Editing Tags . . . . . . . . . . . . 326
Array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
Review Questions . . . . . . . . . . . . . . . . . . . . . 328
Part 2 Bit-Level Programming . . . . . . . . . . . . . . . 329
Program Scan . . . . . . . . . . . . . . . . . . . . . . . . 329
Creating Ladder Logic . . . . . . . . . . . . . . . . . 330
Tag-Based Addressing . . . . . . . . . . . . . . . . . 331
Adding Ladder Logic to the Main Routine. . 332
Internal Relay Instructions . . . . . . . . . . . . . . 334
Latch and Unlatch Instructions. . . . . . . . . . . 334
One-Shot Instruction. . . . . . . . . . . . . . . . . . . 335
Review Questions . . . . . . . . . . . . . . . . . . . . . 336
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
Part 3 Programming Timers . . . . . . . . . . . . . . . . . 338
Timer Prede ned Structure . . . . . . . . . . . . . . 338
On-Delay Timer (TON) . . . . . . . . . . . . . . . . 339
Off-Delay Timer (TOF) . . . . . . . . . . . . . . . . 342
Retentive Timer On (RTO) . . . . . . . . . . . . . . 344
Review Questions . . . . . . . . . . . . . . . . . . . . . 346
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
Part 4 Programming Counters . . . . . . . . . . . . . . . 347
Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Count-Up (CTU) Counter. . . . . . . . . . . . . . . 348
Count-Down (CTD) Counter . . . . . . . . . . . . 350
Review Questions . . . . . . . . . . . . . . . . . . . . . 352
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352
Part 5 Math, Comparison, and Move
Instructions . . . . . . . . . . . . . . . . . . . . . . . . . 353
Math Instructions . . . . . . . . . . . . . . . . . . . . . 353
Comparison Instructions. . . . . . . . . . . . . . . . 355
Move Instructions . . . . . . . . . . . . . . . . . . . . . 357
Review Questions . . . . . . . . . . . . . . . . . . . . . 360
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360
Part 6 Function Block Programming . . . . . . . . . . 361
Function Block Diagram (FBD) . . . . . . . . . . 361
FBD Programming . . . . . . . . . . . . . . . . . . . . 365
Review Questions . . . . . . . . . . . . . . . . . . . . . 371
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385
Chapter 13 PLC Installation Practices,
Editing, and Troubleshooting 268
13.1 PLC Enclosures. . . . . . . . . . . . . . . . . . . . . . . 269
13.2 Electrical Noise. . . . . . . . . . . . . . . . . . . . . . . 271
13.3 Leaky Inputs and Outputs. . . . . . . . . . . . . . . 272
13.4 Grounding . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
13.5 Voltage Variations and Surges. . . . . . . . . . . . 274
13.6 Program Editing andCommissioning. . . . . . 275
13.7 Programming and Monitoring . . . . . . . . . . . 276
13.8 Preventive Maintenance . . . . . . . . . . . . . . . . 278
13.9 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . 279
Processor Module . . . . . . . . . . . . . . . . . . . . . 279
Input Malfunctions . . . . . . . . . . . . . . . . . . . . 279
Output Malfunctions . . . . . . . . . . . . . . . . . . . 281
Ladder Logic Program . . . . . . . . . . . . . . . . . 281
13.10 PLC Programming Software. . . . . . . . . . . . . 286
Review Questions. . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
Chapter 14 Process Control, Network
Systems, and SCADA 291
14.1 Types of Processes . . . . . . . . . . . . . . . . . . . . 292
14.2 Structure of Control Systems . . . . . . . . . . . . 294
14.3 On/Off Control . . . . . . . . . . . . . . . . . . . . . . . 296
14.4 PID Control. . . . . . . . . . . . . . . . . . . . . . . . . . 297
14.5 Motion Control . . . . . . . . . . . . . . . . . . . . . . . 301
14.6 Data Communications. . . . . . . . . . . . . . . . . . 303
Data Highway . . . . . . . . . . . . . . . . . . . . . . . . 308
Serial Communication . . . . . . . . . . . . . . . . . 308
DeviceNet . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
ControlNet. . . . . . . . . . . . . . . . . . . . . . . . . . . 310
EtherNet/IP . . . . . . . . . . . . . . . . . . . . . . . . . . 311
Modbus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
Fieldbus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
PROFIBUS-DP . . . . . . . . . . . . . . . . . . . . . . . 313
14.7 Supervisory Control
andData Acquisition (SCADA) . . . . . . . . . . 313
Review Questions. . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
Chapter 15 ControlLogix Controllers 317
Part 1 Memory and Project Organization . . . . . . 318
Memory Layout . . . . . . . . . . . . . . . . . . . . . . 318
Con guration . . . . . . . . . . . . . . . . . . . . . . . . 318
Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
pet10882_fm_i-xviii.indd viipet10882_fm_i-xviii.indd vii 7/30/10 5:56 PM7/30/10 5:56 PM