Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

1

Lift program and simulation.


Amado Alejandro Macosay Marín
correo: al1709082@upy.edu.mx
Universidad Politécnica de Yucatán
Ingeniería en Robótica Computacional
PLC, Ángel Peña
Robótica 5A, 07 de agosto 2019

I. INTRODUCTION
With the GX works program, you will have to program and Fig. 2. Lift block function structure part 2
simulate a lift with function block, and therefore explain
each part of it. The following block structure diagram was the one
implemented as the solution for the proposed problem
by the teacher during classes. Then, as it might be obvious,
II. DEVELOPMENT the following content of this document will be dedicated to
the explanation of its functionality, however, it is necessary to
I. BLOCK STRUCTURE EXPLANATION mention that each block will have its specific function
explanation and the general explanation of the function blocks
is about occur in this same introduction.
Then, as a brief explanation, it is necessary to say that the
logic indicated that in a basic survey process there were at
least 3 main subroutines that were replicated in each scenario,
regardless of whether the survey was called and selected to
continue, then the first block is, as the name implies, the one
in charge of indicating on which floor the elevator car is
located, it is activated on any floor by three main buttons that
are "X000", "X001", "X002", which represent "Floor 1 ","
Floor 2 "and" Floor 3 "respectively, they function with a
rising pulse since they are supposed to be a kind of pulse
button that open and close switching between ON/OFF state
quickly, it is also possible to appreciate that their memories
”M0”, ”M1” and ”M2”(respectively) are coils that action the
”if” system of the third block(Destinated floor selection
block) this block is triggered by pushing the buttons inside the
cabin of the lift, their switches are denominated as
Fig. 1. Lift block function structure part 1 ”X003”,”X004” and ”X005”, which represent ”Floor 1”,
”Floor 2” and ”Floor 3”, then, is necessary that the reason of
having three open contacts down them that are the memories
of the first block is because thanks to them is possible to block
the sub-routine of the second block if the cabin is already in
the selected floor, this as prevention of action the whole
movement process if the person is already there, also
necessary to mention that the memories of this block go
directly as ”enclavamientos” in the first block as a way to
already show were the cabin is arriving and later staying until
being call again. Then the second block, important to mention

Agosto 9 2019 §
c Universidad Politécnica de Yucatán
2

that even if it is in the middle it subroutine is activated is activated which activates the Motor process and last 40
by any of the other switches (first and third block), this is seconds then if the TIMER2 is closed then the MEMORY2 is
because it main function is to realize the whole movement activated terminating the motor process and starting to open
process, from turning on the motor to opening and closing the the doors in 30 seconds this then if the TIMER3 is OFF
cabin door. With that all say is time for the individual activates the MEMORY3 that activates a TIMER3 and end
explanations. whit the door opening process and begging a delay of 25
seconds before starting with the following process that consist
in ”if the TIMER4 is close then activates MEMORY4 which
II. FLOOR UBICATION BLOCK EXPLANATION finish with the delay process and then simply close the door
in a period of 30 seconds” after this the block finish it sub-
This specific block has a very easy way to function, is routine and waits for orders, repeating in each necessary case.
basically based completely in conditional, using three Then the following lines are for the process of the pen in the
INPUTS part of the entrance and exit of the cars. For this, according to
, simply denominated as ”INPUT1”,”INPUT2” and our analysis, the team reached an agreement to use again the
”INPUT3” indicate that if one is on ”ON” state and the other signal of the button X004 and X005 to make the function, this
two don’t then they are ”enclavados” in that stage until one of because we believe that it is easier to press a single button that
the other INPUTS begin their ”ON” state ending the previous is responsible for letting in or leaving cars and add and
process and initiating a new one with another floor ubication subtract the value of the counter. The instruction tells us that
signal, and that’s all for this, pretty simple indeed. the red indicator of the pen should always be lit when the pen
is down, which is why it was decided to leave the continuous
flow of energy in the line until X004 is pressed, which
activates a counter and a Memory set in M1 causes it to
enclave and let the energy flow in the line of the green
indicator of the pen. This process is repeated for the part of
the output.

Fig. 3. Floor ubication block configuration diagram

III. ELEVATOR MOVEMENT BLOCK


EXPLANATION

This is another one that could be considered as simple, the


basic functionality is based on memories and timers, using the
timers as a ways to terminate certain memories process in
order to begin a new one, and since the process is always the
same(only with time variation but an average was used for the
whole) I decided that it was going to be activated by only one Fig. 4. Elevator movement diagram
Input(where all the switch signals are received one at time),
the the process is the following: After the Input receives a
”ON” signal if the first Timer is close then the MEMORY1

Agosto 9 2019 §
c Universidad Politécnica de Yucatán
3

IV. DESTINATED FLOOR BLOCK EXPLANATION

Then last but not least is the Third block, it could look like the
harder of the three, but actually not, it is just based on
conditionals, with 6 Inputs, three for memories of block 1 and
three for the switch signals ”X003” , ”X004”, ”X005”, as it is
easy to infer, it is needed that the first block was previously
used at least once, then the fun begins, when one memory is
already sending a signal then it is just necessary to press one
”CHOOSE” button, each one with a number that defines the
floor where they go, but the fun is that if for example you are
on the first floor then you need to choose between floor two
or three because it is requirement for each floor to have the
INPUT of one of the other floor memories but, each floor
never have the INPUT of it respective memory, leaving only
the option of the other 2 floors (no mattering in which the lift
user is), and that is basically its whole process, it also include
various TIMERS connected previously to the ”GOINGF”
coils that activate this block memories after the time of the
second block sub-routine have passed, but basically their
function is to activated some memory coils that connect with
the First block INPUTS which allow to show in which floor
the lift is now located, and that will be all the necessary
information to know about it functionality.

Fig. 5. Destinated floor diagram

Agosto 9 2019 §
c Universidad Politécnica de Yucatán

You might also like