
3.3.1 First problem: Secure Turn-On
“When machines operation may wound operators, a safety measure consists in
requiring that the machine only starts when two switches are pressed, to force the
operator to use both hands, improving his security conditions. A commonly used trick
used by irresponsible operators consists in using something to keep one the buttons
pressed (like a matchstick), and using only the other button, keeping the other hand
free. To prevent this, develop a program that only activates the cylinder when the two
buttons are pressed within a three seconds maximum delay.”
3.3.2 Second problem: E-commerce orders dispatching
“In an online store, after a client selects the product he wants to buy, he selects the
amount of the product to dispatch. That store has a dispatch warehouse which
receives that amount and immediately processes it through a packaging circuit that
packs the order to the client.”
To simulate this environments an electro-pneumatic setup was used in the laboratory.
It is composed by two pneumatic cylinders, each controlled by double-acted electrical
controlled pneumatic directional valve (5/2). To read each cylinder position there are
two toggle switches, normally open. The first cylinder simulates the filling of the
package with the selected amount of the product, while the second cylinder closes and
pushes the order out of the circuit to be shipped. It is pretended that the students
execute the cycle using the knowledge they acquire in lessons, like programming
routines to read inputs, set outputs and use counters and timers.
4 Developments
To develop the solution to the problem described above, it is necessary to create the
project using PG5, creating the source and Graftec files. Graftec is the name for the
SAIA implementation of IEC 61131-3 Sequential Function Charts which is much
closed to Grafcet). The necessary routines to control the PLC’s inputs and outputs are
developed in these files.
To make the button pressing simulation via web it’s necessary to add a Web-Server
project file, so that web pages can be added, after created.
Web pages are created using standard html editors and embedding PDP keys in them,
to access PLC data, as described previously. In this particular case, sample web pages
supplied with Web-Connect were used, with some minor modifications, to simulate
the pressing of the two buttons required in the problem. These web pages have to be
placed in the “html” subfolder of the created PG5 project so they can be added and
processed by the Web-Builder.
After the creation of the necessary files and their compilation, the project can be
downloaded to the PLC. This is done through the PG5, after configuring the IP
address of the PLC and password, if necessary.
30