Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Avanceon
Regional Office Lahore 19 KM Multan Road Lahore Prepared By: Muhammad Rafi
1
Overview
The overall objective of the curriculum is to increase awareness of the PLCs and develop an understanding of applications and increase the troubleshooting / problem solving skills when dealing with PLCs and the integrated systems. Each module includes a lab assignment to maximize understanding using the hands on approach.
Course Description
Ladder Logic programs often contain a combination of contracts, coils timers, and counters with additional instructions manipulating data in the program at the word level. The basic course further explores the File Manipulation, and Block Transfer instructions. Programs using these instructions include data gathering, calculations, date and time stamping, reports, data concentration, totalizes etc. The basic course continues the development of the skills necessary to trace the flow of word information into, through, and out of logic programs using the Word and File Manipulation instructions. This additional programming knowledge provides the ability to comprehend and troubleshoot detailed control circuits. In addition, the system status and diagnostic data is reviewed and used to help diagnose and solve in-plant control problems quickly.
3
Course Objectives
Refresh knowledge of the major functional components of the Allen-Bradley PLC-5 programmable control system. Refresh knowledge of all communication options present on the PLC-5 platforms and the uses and applications for these communication options. Reexamine how to take advantage of program files as subroutines and in the Enhanced controller as active program files. Refresh knowledge of the relay, compare, math, and data conversion instructions. Apply all studied instructions to create and test your own programs in extensive hands-on lab sessions designed to stimulate and develop a logical approach to problem solving.
4
Course Objectives
Create methods to test programs, develop traps, and follow the flow of information through a series of instructions including Relay, Word, and File level instructions. Develop advanced troubleshooting skills, learn to gather clues to help eliminate non-problem spots, and draw attention to possible problem areas.
Conventions
The table below describes the naming conventions of PLC-5
10
11
12
13
14
Always Off
2 If an EEPROM module is not installed, the processor's PROC LED indicator blinks, and the processor sets S:11/9, in the major fault status word. 3 A processor fault occurs if processor memory is not valid. 4 You cannot clear processor memory when this switch is ON.
1 Regardless of this switch setting, outputs are reset when either of the following occurs: 1.1: Processor detects a runtime error l .2: An I/O chassis backplane fault occurs l .3: You select program or test mode l .4: You set a status file bit to reset a local rack
15
Always Off
Always Off
1- The 1771-AS adapter does not support 1-slot or 1/2-slot addressing. When you use this adapter, set switches 5 and 6 to the OFF position. 2- The 1771-ASB series A adapter does not support 1/2-slot addressing. is ON.
16
17
18
19
20
21
22
23
You can mix 8-, 16- and 32-pt I/O modules in any order in the I/O chassis because 32 input bits and 32 output bits are available in the image table for each I/O slot. When you use 8- and 16-pt I/O modules with 1/2-slot addressing, however, you use fewer total I/O bits in our image table.
25
26
27
1slot
One I/O module slot = 1 group Each physical slot in the chassis corresponds to one word (16 bits) in the input image table and one word (16 bits) in the output image table. When you use 32point I/O modules, you must install as a pair an input module and an output module in an even/odd pair of adjacent I/O group; if you use an input module in slot 0, you must use an output module in slot 1 (or it must be empty). This Configuration gives the maximum usage of I/O. Use any mix of 8 and 16point I/O modules, block transfer or intelligent modules in a single I/O chassis. Using 8point modules results in fewer total I/O.
Two I/O module slots = 1 group Each physical 2slot I/O group corresponds to one word (16 bits) in the input image table and one word (16 bits) in the output image table. When you use 16point I/O modules, you must install as a pair an input module and an output module in. An I/O group; if you use an input module in slot 0, you must use an output module in slot 1 (or it must be empty). This configuration gives you the maximum usage of I/O. You cannot use a block transfer module and a 16point module in the same I/O group because. Block transfer modules use 8 bits in both the input and output table. Therefore, 8 bits of the 16point module would conflict with the block transfer module. you cannot use 32point I/O modules. 29
2slot
30
31
RSLogix 5
32
Hardware requirements
an Intel Pentium II or greater microprocessor 128 MB of RAM for Windows 2000, or Windows XP installations 70 MB of available hard disk space 256-color SVGA graphics adapter with 800x600 resolution A CD-ROM drive Chapter 1 Installing and activating
33
Software requirements
The operating system must be one of the following: Microsoft Windows 2000 Windows XP (with or without Service Pack 2) Windows Server 2003 (with or without Service Pack 1) Windows Server 2003 R2 RSLogix 5 relies on RSLinx Classic communication software, version 2.51.00 or later. One copy of the RSLinx Classic Lite software is included with the RSLogix 5 software. Note: RSLogix 5 will not run on earlier versions of Windows, nor will it run on Windows Vista.
34
Overview of RSLogix 5
RSLogix 5 software is a 32-bit Windows ladder logic programming package for the Allen-Bradley PLC-5 family of programmable logic controllers. RSLogix 5 is compatible with programs created with any of Rockwell Softwares PLC-5 programming packages.
35
36
37
38
42
Click Add New to add the driver to the Configured Drivers list
43
44
Rslogix 5 Go Online
From the Comms menu, click System Comms. This displays the Communications window. (If RSLinx Classic is not running, it will start.) The Communications window is very much like the RSWho window you encountered while configuring your communications driver. In the Communications window tree, open the driver you configured. The processor you want to program should be visible. Click the processor, then click OK.
45
Program Scan
Input Data
User Program
Output Data
Getting results
46
47
48
49
50
52
54
57
58
59
60
61
RSLogix 5 supports a file-based editor. This means that you can: create and/or edit multiple rungs at a time, enter addresses before you actually create data table files for your I/O, enter symbols before you have assigned addresses for them in the database, enter instructions without having to provide addresses until just before file validation occurs
62
Rung Branch
Insert New Rung
64
65
On-Delay Timer
66
OFF-Delay Timer
67
68
Counters
69
UP-Counters (CTU)
The accumulated value of Counter is Retentive the counter will retain its value until reset.
70
UP-Counters (CTU)
The accumulated value of Counter is Retentive the counter will retain its value until reset.
71
Limite Instruction
Limit instruction use for parameters should be with in user defined range. In this instruction the run will only true if the test parameter should be in limits . If the Test value (N7:15) is >= the Low Limit (N7:10) and <= the High Limit (N7:20), this instruction is true.
72
Compare Instruction
If the expression is true, this input instruction is true. The CMP instruction can perform these operations: equal (=), less than (<), less than or equal (<=), greater than (>), greater than or equal (>=), not equal (<>), and complex expressions (up to 80 characters).
73
Compare Instruction
74
Compute Instructions
Compute instruction will perform multiple mathematical commands in single Command. Examples are as under. If the input conditions go true, evaluate the Expression N7:4 - (N7:6 * N7:10) and store the result in the Destination (N7:3). The CPT instruction can perform these operations: add (+), subtract (-), multiply (*), divide (|), convert from BCD (FRD), convert to BCD (TOD), square root (SQR), logical and (AND), logical or (OR), logical not (NOT), exclusive or (XOR), negate (-) clear (0), and move, X to the power of Y (**), radians (RAD), degrees (DEG), log (LOG), natural log (LN), sine (SIN), cosine (COS), tangent (TAN), inverse sine (ASN), inverse cosine (ACS) inverse tangent (ATN), and complex expressions (up to 80 characters)
75
79
80
81
82
83
84
85
86
Questions?
87