ix Brief Contents 1 Programmable Logic Controller (PLC) Overview . . . . . . . . . . .2 2 PLC Selection, Components, and Communication . . . . . . . . . .18 3 Number Systems and Codes . . . . . . . . . . . . . . . . . . . . . . . . . . .42 4 Input/Output Devices and Motor Controls . . . . . . . . . . . . . . . .58 5 Creating Relay Logic Diagrams . . . . . . . . . . . . . . . . . . . . . . . .80 6 PLC Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90 7 Programming Logic Gate Functions in PLCs . . . . . . . . . . . .126 8 PLC Timer Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .164 9 PLC Counter Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . .188 10 PLC Math Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .208 11 PLC Compare, Jump, and MCR Instructions . . . . . . . . . . . .224 12 PLC Subroutine Functions . . . . . . . . . . . . . . . . . . . . . . . . . . .240 13 PLC Logic and Bit Shift Instructions . . . . . . . . . . . . . . . . . . .254 14 Data Handling Instructions . . . . . . . . . . . . . . . . . . . . . . . . . .272 15 Sequencer Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .292 16 Troubleshooting and Servicing the PLC System . . . . . . . . . .318 17 PLC Networks in Manufacturing . . . . . . . . . . . . . . . . . . . . . .332 18 PLC Programming with RSLogix 5000 Software . . . . . . . . .362