PLC
PLC
PLC
Table Of Contents Experiment #1 Experiment #2 Experiment #3 Experiment #4 Experiment #5 Experiment #6 Operating a simple loads using relays, switches and pushbuttons PLC Input Output Wiring Methods Programming the PLC Via Ladder logic Position control for satellite dish DC motors Starting Three Phase induction Motors Via Star-Delta Starter Programming PLC Via SFC 3 6 14 26 30 36
Experiment #1 Operating a simple loads using relays, switches and pushbuttons OBJECTIVES After successfully completing this laboratory, you should be able to: Identify the basic components of the control board. Assemble and arrange a simple control board. Explain the operation of electromagnetically controlled circuits. Operate a simple loads using relays, switches and pushbuttons.
1. Equipments 3x10A mcb. 230V(coil), 50Hz, 10A Relay Green and red indicator lamp. NO and NC pushbuttons. ON-OFF switch. Toggle switch (1-0-2). Flexible wires. Single phase power source. (42x55)cm wooden board. Mounting rails. Wiring ducts (panel type) Terminals. 2. Procedure
Part 1 1. Using the wooden board, wiring ducts and mounting rails, assemble and arrange the control board as shown in figure 1.1.
3 3 32,4 3
14
14
1,8 16,2
42
Fig. 1.1 The power circuit diagram for a direct on line starter
55
Part 2 1. Assemble the components of the circuit shown in figure 1.2 on the control board and make the required wiring and connections.
L2
220V/50Hz COIL
L1
Fig. 1.2 Energizing and de-energizing relay using on-off switch 2. Once you are finished with the connections, call the instructor to check it for you and make sure that it is correct. 3. Connect the circuit to the power source and try to change the position of the switch SW1. What is your observation ? Part 3 1. Assemble the components of the circuit shown in figure 1.3 the control board and make the required wiring and connections.
mcb 1x10A L(220VAC) ON R R R
OFF
L2
220V/50Hz COIL
L1
Fig. 1.3 Energizing and de-energizing relay using on-pushbutton and off-pushbutton
2. Once you are finished with the connections, call the instructor to check it for you and make sure that it is correct.
3. Connect the circuit to the power source and try to operate the motor by pressing
ON-push button is pressed and also stop the motor by pressing the OFF-push button. What is your observation ? Part 4 1. Assemble the components of the circuit shown in figure 1.4 the control board and make the required wiring and connections.
mcb 1x10A L(220VAC) SW1
1 0 2
R2
R1
L2 R1 N
220V/50Hz COIL
L1
R2
Fig. 1.4 Energizing and de-energizing relays using toggle switch (1-0-2) 2. Once you are finished with the connections, call the instructor to check it for you and make sure that it is correct.
3. Connect the circuit to the power source and try to change the positions of the switch
SW1 (1-0-2). What is your observation ?
Experiment #2 PLC Input Output Wiring Methods OBJECTIVES After successfully completing this laboratory, you should be able to: Read and explain the nameplate of DELTAs PLC DVP Series Model . Make different types of PLC input wiring. Make different types of PLC output wiring.
1. Basic Information
1.1. DELTAs PLC DVP Series Model Explanation DELTAs PLC DVP Series has main processing units and extension units. The main processing units offer 14-60 points and the extension units offer 8-32 points. The maximum input/output can be extended up to 128 points. It also can be used on applications according to INPUT/OUTPUT points, power sources, output modules, digital/analog exchanges (A/D & D/A converter). In addition, DVP SS Series has the special modules (AD/DA/PT/TC/XA) used for extending its functions and the maximum special modules can be extended up to 8 units. Nameplate Explanation
Fig. 1.2 Delta programmable logic controller name plate Serial Number Explanation
Model Explanation
Fig. 2.2 Delta programmable logic controller name plate model explanation. 1.2. Features of the DVP PLC
Fig. 2.3 Features of the DVP PLC 1 2 3 4 5 6 7 8 DIN rail clip DIN rail (35mm) Direct mounting holes cover Programming port cover (RS-232) Extension port I/O terminals I/O terminals Input indicators 9 10 11 12 13 14 15 Output indicators Status indicators, POWER, RUN ERROR I/O terminal cover I/O terminal cover I/O terminal nameplate panel I/O terminal nameplate panel RS-485 Communication port
1.3.
Wiring Guidelines
Fig. 2.5 AC input type PLC wiring The +24V supply output is rated at 0.4 Amperes. DO NOT connect external power supply to this terminal. FUSE Protection: there are internal fuses on all DVP PLCs. However, the fuse does not guarantee the prevention of DVP PLC damage, but it will provide added protection. DC Input Type
For example, we simply connect the common terminal S/S to the supply source(+). By adding the switch, between the supply(-) and the input, we have completed the circuit. Below are two circuit diagrams showing both the sinking and sourcing inputs.
10
Fig. 2.9 Transistor output type PLC wiring Be careful with the connection of the common terminals when wiring output terminals. For example, when wiring DVP14ES00R, note that there are six normally-open SPST relays available. They are organized into 4 groups with individual commons. The figure below shows the relays and the internal wiring of the PLC. Note that each group is isolated from the other groups:
C0
Y0 C1
Y1 C2
Y2
C3
Y3
Y4
Y5
Fig. 2.10 relays groups and the internal wiring of the PLC.
11
12
1. 2. 3. 4.
DC supply. Emergency stop. Fuse. If Y0 is used as a pulse train output with PLSY, use a pull up resistor to ensure the output current is greater than 0.01A for correct operation. 5. If Y1 is used with PWM, use a pull up resistor to ensure the output current is greater than 0.01A for correct operation. 6. Mutually exclusive outputs: use external hardware interlocks, as well as those in the PLC program, for maximum safety. 7. Unused terminal: do not connect.
2. Equipments DVP14ES00R 1x10A mcb. 230V(coil), 50Hz, 10A Relay Green and red indicator lamp. NO and NC pushbuttons. ON-OFF switch. Flexible wires. Single phase power source. Control board. 3. Procedure
1. Assemble the components of the control circuit on the control board and make the required wiring and connections as shown in figure 2.13.
Pulser
SW1
SW2
X4 X5 X6 X7 X0 X1 X2 X3 N
DVP-14ES
+24V
Y0
24G
Y1 Y2 Y3 Y4 C0 C1 C2 C3 Y5
+24VDC L1 R1 24GND
220V/50Hz COIL
SW3
PB1
PB2
L2
220V/50Hz 220V/50Hz
R2
220V/50Hz COIL
Fig. 2.13 The power circuit diagram for a direct on line starter
13
2. Make the required wiring and connections for the power circuit as shown in figure 2.14. +24V
R1
R1
GND
3. Once you are finished with the connections, call the instructor to check it for you and make sure that it is correct.
14
Experiment #3 Programming the PLC Via Ladder logic OBJECTIVES After successfully completing this laboratory, you should be able to: to convert a simple electrical ladder diagram to a PLC program. Know the difference between physical components and program components. sketch the ladder programs using the tools available in WPLSoft. Download the program to the PLC.
operate the program, via placing the PLC in the RUN mode . 1. Basic Information
1.1. Introduction PLCs are special computers designed to operate in the industrial environment with wide ranges of ambient temperature and humidity. They have a number of different programming languages which include Ladder logic, Mnemonic instructions, and Sequential Function Charts. Ladder logic is the main programming method used for PLCs. It is a graphical language which has been developed to mimic relay logic. The decision to use the relay logic diagrams was a strategic one. By selecting ladder logic as the main programming method, the amount of retraining needed for engineers and tradespeople was greatly reduced. a software tool called Wpl runs on a personal computer allows users to sketch the ladder diagram and then transfers its compiled code serially to the PLC. Such a software tool is more convenient and it supports mnemonic and SFC programming languages as well. 1.2. WPLSoft Installation and setup Start-up your computer to Windows 95/98/2000/NT/ME/XP system. Insert WPLSoft CD into the CD-ROM disk or download installation program from http://www.delta.com.tw/product/em/plc/plc_main.asp (If the installation program is downloaded from the website, it needs to be saved in the designated directory after uncompressing, and then the installation can be started.) Click START, and then click on RUN
15
The program show the dialog box explaining the WPLSoft copyright. Please click "Next" to proceed with the installation.
Enter the user name and the organization then click Next> .
16
17
DELTAs PLC DVP Series has main processing units and extension units. The main processing units offer 14-60 points and the extension units offer 8-32 points. The maximum input/output can be extended up to 128 points. It also can be used on applications according to INPUT/OUTPUT points, power sources, output modules, digital/analog exchanges (A/D & D/A converter). In addition, DVP SS Series has the special modules (AD/DA/PT/TC/XA) used for extending its functions and the maximum special modules can be extended up to 8 units. 1.3. Delta PLC memory map In the previous section we introduced two types of memory variables in Delta PLCs; the input relays and the output relays. In Delta PLCs there are total of 8 memory location types as described below. Input Relays: Single bit variables and can be extended to 128 points. They are indicated with X sequence in Octal numbering mode. Output Relays: Single bit variables and can be extended to 128 points. They are indicated with Y sequence in Octal numbering mode. Internal Auxiliary Relays: Single bit variables. They are indicated with M sequence in Decimal numbering mode ranging from M0 to M1279. M1000 and above are used for system flags and special purpose auxiliary relays. Steps: Single bit variables indicated by S sequence in Decimal numbering mode ranging from S0 to S127. Timers: Indicated by T sequence in Decimal numbering mode ranging from T0 to T127. Each timer has a 16-bit holding register for its preset value as well as a single bit variable representing its contact. Counters: Indicated by C sequence in Decimal numbering system. Similar to Timers, each counter has a holding register and a single bit contact. There are 128 16-bit counters ranging from C0 to C127 and there are 13 32-bit counters indicated as C235 to C238, C241, C242, C244, C246, C247, C249, C251, C252, and C254. These later counters are referred as high speed counters. Data Registers: 16-bit variables indicated by D sequence in Decimal numbering
18
mode ranging from D0 to D599 and from D1000 to D1143. D1000 and above are special purpose registers. Index Registers: Two pointers indicated by E and F. They are D1028 and D1029 respectively.
These memory locations are reached easily using their names. However one may reach them by means of the PLC device addresses specified by Delta. This method is useful when these memory locations are monitored or preset at run time by an external devise such as a personal computer. The device addresses table of Delta PLCs is illustrated in Table 2.1. It is not a traditional memory map where each location is byte width. However, the location size depends on the variable type.
1.4.
Ladder logic and mnemonic programming The instructions from a ladder diagram, mnemonic, or SFC are translated to machine code that can be stored in the PLC memory. Each horizontal rung on the ladder in a ladder program represents a line in the program and the entire ladder gives complete program in ladder language. There are three basic symbols used in ladder logic. The first one is NO - NC contacts : NO contact is an instruction that tells the processor to look at a specific bit in its RAM memory. If the bit is 1, the instruction is true. and if it is 0, the instruction is false. The determining factor in choosing which bits in its memory to look at is the address. It could be some auxiliary bit (M), a timer contact (T), a counter contact (C), a state bit (S), or it might be connected to an external input (X).
X0 Normally Open Contact
NC contact plays the same role as the previous one, except that if the bit addressed is 1, the instruction is false and if it is 0, the instruction is true.
X0 Normally Closed Contact