Professional Documents
Culture Documents
INDEX
7 PRACTICES MANUAL . .......................................................................................................... 2
7.1 EQUIPMENT DESCRIPTION...................................................................................................... 2
7.1.1 Introduction. ....................................................................................................................................................2
7.1.2 Description . .....................................................................................................................................................3
7.2 PRACTICES ................................................................................................................................... 7
7.2.1 Practice 1: Getting started with FPWIN.........................................................................................................7
7.2.2 Practice 2 : Temporization.............................................................................................................................15
7.2.3 Practice 3 : Counting . ....................................................................................................................................18
7.2.4 Practice 4 : Sequential Control. .....................................................................................................................22
7.3 REAL APPLICATION . ............................................................................................................... 30
7.3.1 Introduction....................................................................................................................................................30
7.3.2 Necessary elements........................................................................................................................................30
7.3.3 Application carrying-out. ..............................................................................................................................30
PRACTICAL EXERCISES MANUAL
7 PRACTICES MANUAL
7.1.1 Introduction
The PLCE is the PLC training module designed by EDIBON. The PLCE is a
modularized PLC that depending on the requirements it can include digital and
analog inputs and outputs, switches, push buttons, potentiometers, etc. The PLCE can
also be used to work with some training modules together. These modules have been
specially developed to study the PLCE working in real applications.
7.1.2 Description
The PLCE – CONV is a training module to work with PLCE. The system is
provided with switches, push buttons and leds to simulate the commonly elements
in conveyor control system. These elements simulate conditions such as motor left,
motor right, conveyors, etc. These conditions are evaluated by the PLCE in order to
perform the required action.
INPUT ELEMENT
X0 START
X1 STOP
X2 CRYSTAL_SENSOR
X3 PLASTIC_SENSOR
X4 METALIC_SENSOR
X5 PRESENCE_SENSOR1
X6 PRESENCE_SENSOR2
X7 PRESENCE_SENSOR3
X8 PRESENCE_SENSOR4
X9 DOWN_SENSOR
XA UP_SENSOR
XB
XC
XD
XE
XF
The training module also contains other elements such as leds, motors and
other more elements that are controlled by the PLCE to perform the required
functionality of the parking of vehicles. These elements are directly connected to the
PLCE outputs.
OUTPUT ELEMENT
Y0 MOTOR1
Y1 MOTOR2
Y2 MOTOR3
Y3 MOTOR4_LEFT
Y4 MOTOR4_RIGHT
Y5 MOTOR5_ LEFT
Y6 MOTOR5_ RIGHT
Y7 MOTOR6
Y8 FULL
Y9
YA
YB
YC
YD
YE
YF
- MOTOR1: output to activate the motor 1 in order to take the metal piece to the
shelf.
- MOTOR2: output to activate the motor 2 in order to take pieces into the
process.
PRACTICAL EXERCISES MANUAL
- MOTOR5_LEFT: output to move the motor in order to open the shelf to allow
the pieces to fall down into the tank.
- MOTOR6: output to activate the motor 1 in order to take the crystal piece to
the shelf.
7.2 PRACTICES
In this first practice we will see step by step how to create an application for
the PLCE. We also learn how to assign physical inputs or outputs to global variables.
• PLCE
6. Interconnect the components with the Draw Line tool and assign the X0 and Y0
addresses on the display, shown after clicking on the question mark of each
component (X and Y should be written in capitals).
PRACTICAL EXERCISES MANUAL
7. Configure RS232 Serial Port for FPWIN PRO. Select Communication Parameters
inside of Online menu.
And then, in Communication Setting window, set parameters like show the picture
bellow. (C-NET(RS232); COM1 (if it is available); 19200 bps; 8bits data; 1 bit stop;
odd parity). And press OK
8. In System Registers/Tool Com Port set the COM port 1 baud rate register a 19200
baudios.
10. We may load the program next. When commuting to the online mode in step 2, a
pop-up window with a warning message such as “the project is not logic” may be
displayed. Click on No button of the pop-up. If there is a communication error, go
to the online menu in Communication Parameters of the tool bar, the default
configuration will be 19.200bps, 8 bits for data size, 1 bit for the stop bit, and odd
parity.
PRACTICAL EXERCISES MANUAL
12. Assign identifiers to the input and output of the global variables.
13. Rename the input and output. The program should look like the following picture.
7.2.2.1 Objective
The objective of this practice is to get familiar with timers. A timer is a very
useful element featured in industrial PLCs. To do this, a PLC program will be
developed to control the time during a simple process.
In this practice we will control the opening and closing of the plastic shelf. The
objective to open the shelf when the sensor detects a plastic piece in order to leave it
to fall down into tank.
• PLCE
• PLCE-CONV
2. Declare global variables as we did in practice 1. Note that there are variables
(VAR1, VAR2, etc. ) that are not connected externally to any input or output.
There are used for internal control.
PRACTICAL EXERCISES MANUAL
3. Add the TM_1s_FB timers and the others necessary elements to connect the
inputs and outputs as it is shown in the following picture.
PRACTICAL EXERCISES MANUAL
7.2.3.1 Objective
The objective of this practice is to get familiar with counters. To do this, a PLC
program will be developed.
The program should control the number of plastic pieces falling into the tank.
The full indicator will advise the system if there are 6 plastic pieces in the tank.
• PLCE
• PLCE-CONV
2. Declare global variables as we did in practice 1. Note that there are variables
(VAR1, VAR2, etc. ) that are not connected externally to any input or output.
There are used for internal control.
PRACTICAL EXERCISES MANUAL
3. Add the CTU_FB counters. Add the FB timers and the others necessary elements
to connect the inputs and outputs as it is shown in the following picture.
PRACTICAL EXERCISES MANUAL
4. Select the Hold On/Off System Register. Change the value for the Counter start
address to 0 and 500 for the Timer/Counter hold area start address.
PRACTICAL EXERCISES MANUAL
7.2.4.1 Objective
1. The system starts the process when the start button is pressed.
3. The motor 2 and motor 4 start and the piece will be detected like metal, plastic or
crystal sensor. When one sensor is activated, the motors will stop.
(METALLIC_SENSOR, PLASTIC_SENSOR, CRYSTAL_SENSOR, MOTOR2, MOTOR4_LEFT).
• The motor 3 rotates until the down position sensor is activated (MOTOR3,
DOWN_SENSOR).
• Finally, the motor 6 and the motor 4 will rotate at the same time until the
presence sensor 3 is activated. Then, the motor 4 and the motor 6 will stop.
(MOTOR4_RIGHT, MOTOR_6, PRESENCE_SENSOR3).
PRACTICAL EXERCISES MANUAL
• Finally, the motor 1 and the motor 4 will rotate at the same time until the
presence sensor 2 is activated. Then, the motor 4 and the motor 1 will stop.
(MOTOR4_RIGHT, MOTOR_1, PRESENCE_SENSOR2).
• The motor 4 will rotate in left direction until the presence sensor 1 is activated.
Then, the motor 4 will stop. (MOTOR4_LEFT, PRESENCE_SENSOR1) .
• PLCE
• PLCE-CONV
1. Create a project and select Sequential Function Chart (SFC) as the language of
the program.
The basic flow charts appears on the screen. There is only one step called
Initial and one transition which has the value of TRUE.
3. Modify the chart to get the following flow chart by adding more steps. To do that,
press the step and transition button to add a step. Modify the names of each step
and transition.
PRACTICAL EXERCISES MANUAL
4. Create actions for each step to active the outputs to perform the required
functionality for the program. Select Ladder Diagram(LD) as the language for the
action. To do that, create the action as follows.
PRACTICAL EXERCISES MANUAL
5. Modify each action to perform the required functionality for each step. The
programs for the Action1, Action2, Action3, Action4 and Action5 should look
like the following pictures.
Note: Since we would like the outputs of each step to be only activated when the
step is activated, we need to use the step variable (name_step.X). This step
variable is activated during the time that the step is on .
PRACTICAL EXERCISES MANUAL
7.3.1 Introduction
With the practices carried out before the students have learnt the basics about
PLC programming. This chapter is designed for advanced users who have the
necessary knowledge to develop very complex programs. The development of this
application is beyond the scope of this manual. We really recommend to advanced
users to try to develop a program that controls a real application.
• PLCE
• PLCE-CONV
• PLCE connection
3. The motor 2 and motor 4 start and the piece will be detected like metal, plastic or
crystal sensor. When one sensor is activated, the motors will stop.
(METALLIC_SENSOR, PLASTIC_SENSOR, CRYSTAL_SENSOR, MOTOR2, MOTOR4_LEFT).
PRACTICAL EXERCISES MANUAL
• The motor 3 rotates until the down position sensor is activated (MOTOR3,
DOWN_SENSOR).
• Finally, the motor 6 and the motor 4 will rotate at the same time until the
presence sensor 3 is activated. Then, the motor 4 and the motor 6 will stop.
(MOTOR4_RIGHT, MOTOR_6, PRESENCE_SENSOR3).
• Finally, the motor 1 and the motor 4 will rotate at the same time until the
presence sensor 2 is activated. Then, the motor 4 and the motor 1 will stop.
(MOTOR4_RIGHT, MOTOR_1, PRESENCE_SENSOR2).
• The motor 4 will rotate in left direction until the presence sensor 1 is activated.
Then, the motor 4 will stop. (MOTOR4_LEFT, PRESENCE_SENSOR1) .
• The system has to count the number of pieces that there are in the tank.
• When the tank is full, the system should activate the full output and move the
motor 5 in right and left direction during some time for emptying the tank.
(MOTOR5_RIGHT, MOTOR5_LEFT, FULL).