SlideShare une entreprise Scribd logo
1  sur  31
Télécharger pour lire hors ligne
COLEGIO DE ESTUDIOS   SISTEMA DE
         CIENTÍFICOS Y         GESTIÓN DE
         TECNOLÓGICOS DEL      LA CALIDAD
         ESTADO                ISO 9001:2000
         DE QUERÉTARO

    Cuadernillo de Practicas


CUADERNILLO DE PRÁCTICAS
COLEGIO DE ESTUDIOS                                    SISTEMA DE
                                                        CIENTÍFICOS Y                                          GESTIÓN DE
                                                        TECNOLÓGICOS DEL                                       LA CALIDAD
                                                        ESTADO                                                 ISO 9001:2000
                                                        DE QUERÉTARO

                                                  Cuadernillo de Practicas


                                           CUADERNILLO DE PRÁCTICAS




                                                    INDICE
INDICE ....................................................................................................................... 2
Práctica 1: LogixPro ................................................................................................. 3
Práctica 2: LogixPro ................................................................................................. 8
Práctica 3: LogixPro ............................................................................................... 10
Práctica 4: LogixPro ............................................................................................... 11
Práctica 5: LogixPro ............................................................................................... 13
Práctica 6: LogixPro ............................................................................................... 14
Práctica 7: LogixPro ............................................................................................... 15
Práctica 8: LogixPro ............................................................................................... 16
Práctica 9: LogixPro ............................................................................................... 17
Práctica 10: LogixPro ............................................................................................. 18
Anexo 1. Temporizadores. ..................................................................................... 19
Anexo 2. Uso de Word Comparison (Ejercicio 1. Adicional). ............................. 25
Anexo 3. Uso de Modulos Word Comparison (Ejercicio 2. Multi Floor Elevator
Student Exercise). .................................................................................................. 27
COLEGIO DE ESTUDIOS                    SISTEMA DE
                                             CIENTÍFICOS Y                          GESTIÓN DE
                                             TECNOLÓGICOS DEL                       LA CALIDAD
                                             ESTADO                                 ISO 9001:2000
                                             DE QUERÉTARO

                                        Cuadernillo de Practicas


                                  CUADERNILLO DE PRÁCTICAS


Práctica 1: LogixPro
Nombre: ________________________________________________________

Grupo: _____________                                          Fecha: ____________________


Laboratorio Introductorio a Lógica de Relé.
Instrucciones Lógicas de Relé RSLogix.

Este ejercicio se diseñó para familiarizarlo con la operación de LogixPro y conducirlo paso a
paso en el proceso de creación, edición y prueba de programas sencillos de PLC utilizando las
instrucciones lógicas de relé soportadas por RSLogix.




Del menú Simulations presente en la parte superior de la pantalla, seleccione el I/O Simulation y
asegúrese que la barra de instrucciones del usuario, similar a la mostrada arriba, esté visible.




La ventana de edición del programa debe mostrar un solo escalón (rung), similar al de arriba.
Este es el escalón Fin de Programa ( End of Program) y es el último escalón en cualquier
programa. Si este es el único escalón visible entonces su programa está vacío.

Si su programa no está vacío, entonces haga click en la entrada File del menú en la parte
superior de la pantalla y seleccione "New" de la lista presente. Una caja de diálogo aparecerá
conminándole a seleccionar un tipo de procesador (Select Processor Type). Haga clic en "OK"
para aceptar la opción TLP LogixPro por descarte.




Ahora Maximize la ventana ProSim-II Simulation
COLEGIO DE ESTUDIOS                     SISTEMA DE
                                              CIENTÍFICOS Y                           GESTIÓN DE
                                              TECNOLÓGICOS DEL                        LA CALIDAD
                                              ESTADO                                  ISO 9001:2000
                                              DE QUERÉTARO

                                         Cuadernillo de Practicas


                                   CUADERNILLO DE PRÁCTICAS




El Simulador de Entrada/Salida (I/O Simulator)

La pantalla del simulador, similar a la mostrada arriba, debe estar a la vista. Para este ejercicio
usaremos la sección de simulación de Entrada/Salida, la cual consiste de 32 interruptores y
luces. Se muestran dos grupos de 16 interruptores conmutadores conectados a 2 tarjetas de
entrada de nuestro PLC simulado. Similarmente dos grupos de 16 luces se conectan a dos
tarjetas de salida de nuestro PLC. Las dos tarjetas de entrada tienen direcciones "I:1" e "I:3",
mientras las tarjetas de salida están direccionadas como "O:2" y "O:4".

Con el ratón (mouse) haga click en varios interruptores y note que el estatus del terminal al cual
el interruptor está conectado cambia de color. Mueva despacio el ratón sobre un interruptor y
observe que el cursor del ratón cambia a una mano, lo que indica que el estado de un interruptor
puede ser alterado al hacer click en esta localidad. Cuando se pasa el ratón aparece una
ventana tipo texto con una “ayuda” (“tip”) informándole “Right Click to Toggle Switch Type"
(haga click con el botón derecho del ratón para cambiar el tipo de interruptor conmutador).
Proceda a hacer click con el botón derecho del ratón sobre un interruptor, y note como el tipo de
interruptor cambia.

Creación de Programas con RSLogix

Reduzca el tamaño de la pantalla del simulador I/O a su tamaño normal al hacer clic de nuevo en
el botón del medio que usted usó anteriormente para engrandecer la pantalla de simulación. Al
hacer esto las dos ventanas de programación y la de simulación deben verse de nuevo en la
pantalla. Si usted lo desea puede ajustar el tamaño relativo de estas ventanas moviendo con el
ratón la barra que divide a ambas.

Ahora introduzca el siguiente programa de un solo escalón (rung), el cual consiste de una sola
instrucción de entrada XIC (XIC - Examine Entrada Cerrada) y una sola instrucción de salida
OTE (OTE – energizar la salida). Hay mas de una forma de hacer ésto, pero por ahora se
mostrará la forma que considero la mas comúnmente usada.
COLEGIO DE ESTUDIOS                     SISTEMA DE
                                             CIENTÍFICOS Y                           GESTIÓN DE
                                             TECNOLÓGICOS DEL                        LA CALIDAD
                                             ESTADO                                  ISO 9001:2000
                                             DE QUERÉTARO

                                        Cuadernillo de Practicas


                                   CUADERNILLO DE PRÁCTICAS




    Primero haga click en el botón "New Rung" presente en la barra de instrucciones del
usuario. Este corresponde al primer botón en el lado izquierdo de la barra. Si usted mantiene el
apuntador del ratón fijo sobre cualquiera de estos botones por uno o dos segundos, aparecerá
una ayuda pequeña que describe la función o nombre de la instrucción que el botón representa.




Ahora deberá ver un nuevo escalón agregado a su programa como se muestra arriba, y el
número del escalón al lado izquierdo deberá estar resaltado. Es de notar que el nuevo escalón
se agregó sobre el ya existente escalón Fin de Programa (END). De una manera alternativa
usted puede marcar el símbolo del escalón con el botón izquierdo del ratón y arrastrarlo a uno
cualquiera de los cuadrados pequeños que aparecen en el programa, lo que generará un nuevo
escalón en ese punto.


     Ahora haga clic en la instrucción XIC con el botón izquierdo del ratón y ella será agregada a
la derecha de la selección resaltada. Nótese que la nueva instrucción XIC agregada ahora está
resaltada. De nuevo, alternativamente usted pudo arrastrar la instrucción desde la barra de
instrucciones al escalón deseado del programa.

Si usted accidentalmente agrega una instrucción y desea removerla, haga click con el
botón izquierdo del ratón en la instrucción a remover y luego presione la tecla "Del" ó
“Sup” en su teclado no numérico. Alternativamente, usted puede hacer click con el botón
derecho del ratón en la instrucción y luego seleccionar "Cut" del menú que se despliega.


    Haga clic con el botón izquierdo del ratón en la instrucción de salida OTE y esta será
agregada a la derecha de su actual selección.




Haga rápidamente dos veces click con el botón izquierdo del ratón en el signo de interrogación
“?” presente en la parte superior de la instrucción XIC . Una caja de texto que comienza con “?”
aparecerá en la cual usted deberá introducir la dirección (I:1/0) del conmutador que deseamos
monitorear. Use la tecla Backspace para eliminar la “?" presente en el cuadro de texto. Una vez
que introduzca la dirección, haga click en cualquier parte de la instrucción, exceptuando el
cuadro de texto, o presione la tecla enter y el cuadro se cerrará.

Haga click con el botón derecho del ratón en la instrucción XIC y seleccione "Edit Symbol" del
menú que se muestra. Aparece otro cuadro de diálogo donde usted puede escribir un nombre
(por ejemplo Suiche 0 ) para asociarlo con esta dirección. Un clic fuera del cuadro lo cerrará.
COLEGIO DE ESTUDIOS                      SISTEMA DE
                                              CIENTÍFICOS Y                            GESTIÓN DE
                                              TECNOLÓGICOS DEL                         LA CALIDAD
                                              ESTADO                                   ISO 9001:2000
                                              DE QUERÉTARO

                                         Cuadernillo de Practicas


                                    CUADERNILLO DE PRÁCTICAS




Introduzca la dirección y el símbolo para la instrucción OTE y su primer programa RSLogix
estará completo. Antes de continuar, verifique que las direcciones de las instrucciones sean
correctas.




Verificación del Programa

Debemos bajar el programa al PLC ("Download"). Haga clic en el botón "Toggle" en la esquina
superior izquierda del panel de edición, como se muestra en la gráfica que sigue, para traer el
panel del PLC a la vista.




Haga click en el botón "DownLoad" para comenzar la bajada del programa al PLC. Una vez
completada, haga click dentro del círculo con la opción “RUN” para comenzar con la corrida del
programa por el PLC.

Engrandezca la ventana de Simulación, de forma que pueda observar los interruptores y las
lámparas, arrastrando hacia la derecha con el ratón la barra que separa las ventanas de
Simulación y del Programa. Ahora haga click en el Interruptor I:1/00 en el simulador y si todo
está correcto, la lámpara debe iluminarse.

Conmuta el interruptor entre On (Encendido) y Off (Apagado) varias veces y observe el cambio
de valor indicado por los cuadros de status del PLC los cuales están constantemente
actualizado a medida que el PLC barre las instrucciones del programa. Trate de colocar el PLC
de regreso en el modo “PGM" y luego conmute el interruptor del simulador varias veces y note el
resultado. Coloque el PLC de nuevo en el modo “RUN” y la barrida (scan) del programa se
reasume.

Nosotros pensamos de la instrucción XIC como un contacto eléctrico que permite el flujo de
corriente cuando se cierra un interruptor externo. Esperamos que la salida OTE se energiza si se
permite que el flujo de corriente llegue a élla. En la práctica la instrucción XIC es una instrucción
condicional que verifica si el bit direccionado está en 1 (Verdadero). Si es verdadero, la corriente
fluye hacia OTE en nuestro caso.

Edición del Programa.

Haga click en el botón "Toggle" en el panel del PLC, lo que pondrá al PLC en el modo “PGM” y
permitirá ver el pánel de edición.

Ahora agregue un segundo escalón al programa como se muestra abajo. Ahora en vez de
introducir las direcciones como hicimos anteriormente, trate arrastrando la dirección apropiada
que se muestra en la simulación I/O, llevándola hacia la instrucción.
COLEGIO DE ESTUDIOS                    SISTEMA DE
                                             CIENTÍFICOS Y                          GESTIÓN DE
                                             TECNOLÓGICOS DEL                       LA CALIDAD
                                             ESTADO                                 ISO 9001:2000
                                             DE QUERÉTARO

                                        Cuadernillo de Practicas


                                  CUADERNILLO DE PRÁCTICAS

Note que la instrucción XIC que prueba por la condición 0 ó Falso tiene su dirección resaltada
en amarillo. Esto indica que la instrucción está evaluada como Verdadera, que en el caso de una
XIC significa que el bit direccionado es actualmente cero ó Falso.




Este es un buen momento para practicar sus habilidades de arrastrar y dejar caer (dragNdrop).
Trate de mover instrucciones de escalón a escalón al hacer click con el botón izquierdo del ratón
sobre una instrucción y manteniendo el botón presionado arrastre la instrucción a una nueva
localidad. Trate de hacer lo mismo con eslabones completos al arrastrar el cuadro al lado
izquierdo del escalón y dejarlo caer en una nueva localidad.

Una vez que se sienta cómodo con el arrastre y dejar caer, asegúrese que el programa luzca
como el mostrado arriba. Ahora baje su programa al PLC y coloque al PLC en el modo Run.
Conmute ambos interruptores 0 y 1 entre las posiciones On y Off varias veces y observe el
efecto que tiene sobre las lámparas. Asegure que está conforme con el comportamiento de su
programa antes de proceder.
COLEGIO DE ESTUDIOS                     SISTEMA DE
                                              CIENTÍFICOS Y                           GESTIÓN DE
                                              TECNOLÓGICOS DEL                        LA CALIDAD
                                              ESTADO                                  ISO 9001:2000
                                              DE QUERÉTARO

                                         Cuadernillo de Practicas


                                   CUADERNILLO DE PRÁCTICAS


Práctica 2: LogixPro
Nombre: ________________________________________________________

Grupo: _____________                                           Fecha: ____________________

Parada/Arranque (Stop/Start) usando OTL y OTUP.

Para este ejercicio necesitamos dos interruptores Normalmente Abierto. Usando el botón
derecho del ratón haga click en los interruptores "I:1/2" y "I:1/3", lo que los cambia a pulsadores
normalmente abiertos ( N.O. push buttons). Ahora agregue los dos siguientes escalones a su
programa. Una vez que introduzca los escalones correctamente, bájelo y corra su programa
modificado.




Active los interruptores Start y Stop y asegure que las instrucciones de salida OTL y OTU
responden como se estipula en su texto. Una vez que tengas la lámpara encendida, ¿puede
usted apagarlo si la potencia se pierde en el circuito del interruptor Stop?.

Ahora modifique su programa de forma que opere correctamente cuando usted sustituya el
interruptor normalmente abierto (I:1/03) con un interruptor normalmente cerrado. Si ahora
perdemos potencia en el circuito del interruptor normalmente cerrado, ¿que pasaría con el
estado de la lámpara (O:2/02)?




Emulación del Control Standard Parada/Arranque (Stop/Start).

Borre su programa al seleccionar "New" desde el menú "File" en la parte superior de la pantalla.
Cuando el cuadro de diálogo aparece haga click en “OK” para seleccionar el tipo PLC por
descarte (default PLC type). Ahora introduzca el siguiente programa. Para introducir una
bifurcación, solo arrastre el botón de bifurcación en el escalón y luego inserte o arrastre
instrucciones en la ramificación.
COLEGIO DE ESTUDIOS                      SISTEMA DE
                                              CIENTÍFICOS Y                            GESTIÓN DE
                                              TECNOLÓGICOS DEL                         LA CALIDAD
                                              ESTADO                                   ISO 9001:2000
                                              DE QUERÉTARO

                                         Cuadernillo de Practicas


                                   CUADERNILLO DE PRÁCTICAS

Antes que baje y corra este programa, echemos un cuidadoso vistazo al uso de la instrucción
XIO para verificar el estado de un interruptores normalmente cerrado de parada. Cuando alguien
presiona el interruptor de parada (Stop Switch), ¿irá el bit I:1/04 a Verdadero o Falso? ¿Irá la
instrucción XIC al valor Verdadero o Falso cuando el interruptor se presiona? ¿Es esta la lógica
deseada? .... Corra el programa y verifique si es correcta..... Si pierde potencia en el circuito de
parada (Stop Switch), ¿ a que estado la lámpara irá? .... ¿Porqué piensa usted que la mayoría
prefiere este método en vez del método             OTL/OTU para implementar el circuito de
Parada/Arranque?.

Ramificación de Salida con RSLogix

Modifique su programa para que sea igual a este:




Baje el programa al PLC y córralo. Opere los interruptores Stop y Start varias veces con el
Interruptor-0 abierto, y de Nuevo con el interruptor-0 cerrado. Remueva la instrucción XIC de la
rama de salida y observe a la lámpara 3 cuando usted arranca y para al circuito. Trate de mover
la instrucción OTE de la lámpara-3 de forma que esté en serie con la instrucción OTE de la
lámpara 2. Baje el programa al PLC y córralo. Observe como ambas lámparas encienden con la
rama vacía en su sitio. Ello puede aparecer como un circuito eléctrico pero sabemos que en
efecto no lo es y por lo tanto obedece un conjunto distinto de reglas. Remueva la ramificación
vacía. Baje el programa y córralo. Vea si esto tiene algún efecto en la lógica o en la operación
del escalón.
COLEGIO DE ESTUDIOS                    SISTEMA DE
                                             CIENTÍFICOS Y                          GESTIÓN DE
                                             TECNOLÓGICOS DEL                       LA CALIDAD
                                             ESTADO                                 ISO 9001:2000
                                             DE QUERÉTARO

                                        Cuadernillo de Practicas


                                  CUADERNILLO DE PRÁCTICAS


Práctica 3: LogixPro
Nombre: ________________________________________________________

Grupo: _____________                                          Fecha: ____________________



Control de una Luz desde dos Localidades.

Genere, introduzca y pruebe un programa que realice la función común de controlar una luz
desde dos localidades diferentes. Utilice los interruptores conmutadores (I:1/00) y (I:1/01) para
controlar la lámpara (O:2/00)... (Ayuda: Si ambos interruptores están Encendidos o si ambos
interruptores están apagados, la lámpara debe estar encendida. Este es una forma de enfocar al
problema.)
COLEGIO DE ESTUDIOS                      SISTEMA DE
                                              CIENTÍFICOS Y                            GESTIÓN DE
                                              TECNOLÓGICOS DEL                         LA CALIDAD
                                              ESTADO                                   ISO 9001:2000
                                              DE QUERÉTARO

                                         Cuadernillo de Practicas


                                   CUADERNILLO DE PRÁCTICAS


Práctica 4: LogixPro
Nombre: ________________________________________________________

Grupo: _____________                                           Fecha: ____________________


Simulación de ProSim-II de una Puerta de Garaje.

Del menu Simulations en la parte superior de la pantalla elija la opción Door Simulation.

Tome su tiempo para familiarizarse con los componentes presentes en el sistema Puerta de
Garaje y fíjese en particular en el estado actual de los interruptores limitadores. Cuando la puerta
está en la posición cerrada, ambos interruptores están en su estado activado (anormal). Coloque
el ratón sobre cada uno de los interruptores interruptores y podrá ver que una caja de texto de
ayuda aparece, la cual indica que el interruptor seleccionado se cableó usando contactos
normalmente abiertos. Con la puerta completamente cerrada, ¿que nivel de señal espera usted
ver a las entradas I:1/03 e I:1/04, correspondientes a las conexiones de los interruptores al
PLC?.

Para confirmar su entendimiento del estatus actual de los interruptores limitadores, coloque al
PLC en el modo “RUN”, lo que inicia el barrido. Ahora abra la pantalla Data Table (Tabla de
Data) haciendo click en el ícono Data Tabla localizado en la barra de herramientas en la parte
superior de la pantalla (tercer ícono desde la derecha ).

Cuando usted tenga a su vista el cuadro de Data Table, vaya al subcuadro con lista titulado
Table y seleccione I1:Input. Ahora podrá observar el estado actual de cada bit asociado con la
tarjeta de entrada I1. Debe notarse que el bit I:1/02 está también en el estado Alto o Verdadero.
Utilizando el ratón, presione el interruptor Stop varias veces en el Pánel de Control y observe lo
que ocurre. Juegue con los interruptores Start, Stop y Close, vea como se reflejan en esta tabla.
Hasta que no entienda bien esta tabla y porque cambian los valores en ella, no continúe con el
ejercicio.




Ejercicio de Programación Para el Estudiante.

En este ejercicio queremos que aplique sus conocimientos en instrucciones de lógica de relé al
diseño de un programa que controle la puerta ProSim-II. El sistema de la puerta consiste de un
motor reversible, un par de interruptores limitadores y un panel de control, todo conectado a su
PLC. El programa monitoreará y controlará este equipo adhiriéndose a las siguientes premisas:
COLEGIO DE ESTUDIOS                     SISTEMA DE
                                            CIENTÍFICOS Y                           GESTIÓN DE
                                            TECNOLÓGICOS DEL                        LA CALIDAD
                                            ESTADO                                  ISO 9001:2000
                                            DE QUERÉTARO

                                       Cuadernillo de Practicas


                                  CUADERNILLO DE PRÁCTICAS

       El movimiento de la puerta se detendrá inmediatamente cuando se presione el
       interruptor Stop y permanecerá detenida cuando se deje de presionar el interruptor.

       Al presionar el interruptor Open, la puerta se abrirá siempre y cuando la puerta no esté
       completamente abierta. Si el interruptor es dejado de presionar la puerta continuará
       abriéndose hasta abrirse por completo.

       Al presionar el interruptor Close hará que la puerta se cierre a menos que esté
       completamente cerrada. El cierre de la puerta se mantendrá hasta completarse aun
       cuando deje de presionar el interruptor de cierre.

       Si la puerta está completamente abierta, el presionar el interruptor de Apertura de Puerta
       no energizará el motor.

       Si la puerta está completamente cerrada, el presionar el interruptor de Cierre de Puerta
       no debe energizar el motor.

       Bajo ninguna circunstancia los dos embobinados (motor up y motor down) del motor
       deben energizarse simultáneamente.

       La luz Ajar deberá iluminarse si la puerta no está completamente cerrada o
       completamente abierta.

       La luz Open se encenderá cuando la puerta esté completamente abierta.

       La luz Shut se encenderá cuando la puerta esté completamente cerrada.

Será de su responsabilidad el diseñar, documentar, depurar y probar su programa. Trate de
evitar el uso de instrucciones de anclaje OTL u OTU y trate de minimizar el número de escalones
que usa.

Asegúrese de usar apropiadamente comentarios en las instrucciones y escalones para
documentar su programa. Todos los componentes de Entrada/Salida (I/O) referenciados dentro
de su programa deben estar claramente etiquetados, y los comentarios en los escalones deben
clarificar los pasos que su programa ejecuta.
COLEGIO DE ESTUDIOS                   SISTEMA DE
                                           CIENTÍFICOS Y                         GESTIÓN DE
                                           TECNOLÓGICOS DEL                      LA CALIDAD
                                           ESTADO                                ISO 9001:2000
                                           DE QUERÉTARO

                                      Cuadernillo de Practicas


                                 CUADERNILLO DE PRÁCTICAS


Práctica 5: LogixPro
Nombre: ________________________________________________________

Grupo: _____________                                        Fecha: ____________________

Ejercicio Suplementario de Programación.

En este ejercicio queremos que modifique su programa para que se adhiera a los siguientes
criterios:

       Si la puerta se está abriendo y se presiona el interruptor Close, se detendrá el
       movimiento de la puerta, y la puerta permanecerá detenida cuando el interruptor Close
       se deje de presionar.

       Si la puerta se está cerrando y se presiona el interruptor Open, la puerta detendrá su
       movimiento. Cuando se suelte el interruptor Open, la puerta comenzará a abrirse.

       Una vez que el movimiento de la puerta sea detenido por una de las dos causas
       anteriormente mencionadas, el criterio de operación de la primera sección debe seguirse
       de nuevo.
COLEGIO DE ESTUDIOS                   SISTEMA DE
                                             CIENTÍFICOS Y                         GESTIÓN DE
                                             TECNOLÓGICOS DEL                      LA CALIDAD
                                             ESTADO                                ISO 9001:2000
                                             DE QUERÉTARO

                                        Cuadernillo de Practicas


                                  CUADERNILLO DE PRÁCTICAS



Práctica 6: LogixPro
Nombre: ________________________________________________________

Grupo: _____________                                          Fecha: ____________________
La Simulación de un Silo en ProSimII.

Del menú Simulations en la parte superior de la pantalla seleccione Silo Simulation. Una imagen
similar a la imagen de arriba se abrirá en la ventana de simulación. La imagen siguiente muestra
con detalle donde están los sensores de nivel (level sensor) y de proximidad (prox. sensor),
interruptores (START y STOP), luces (RUN, FILL y FULL), válvula solenoide (solenoid valve) y
motor del sistema con las correspondientes entradas y salidas al PLC. Usted usará estos
componentes en los ejercicios.




Operación Continua.

Diseñe y depure completamente un circuito de control usando lenguaje escalera que
automáticamente posicione y llene las cajas, las cuales aparecen secuencialmente en la correa
transportadora. Asegúrese que los siguientes detalles se satisfagan:

       La secuencia puede ser detenida y comenzada de Nuevo en cualquier momento usando
       los interruptores Stop y Start montados en el panel a la izquierda del simulador.
       La luz RUN permanecerá energizada siempre que el sistema esté operando en modo
       automático.
       La luz RUN, el motor de la cinta transportadora y la válvula solenoide se desenergizarán
       siempre que el sistema sea detenido con el interruptor STOP.
       La luz FILL debe energizarse cuando la caja se esté llenando.
       La luz FULL se energizará cuando la caja esté llena y permanecerá así hasta que la caja
       sea movida fuera del fotosensor.
COLEGIO DE ESTUDIOS                     SISTEMA DE
                                             CIENTÍFICOS Y                           GESTIÓN DE
                                             TECNOLÓGICOS DEL                        LA CALIDAD
                                             ESTADO                                  ISO 9001:2000
                                             DE QUERÉTARO

                                        Cuadernillo de Practicas


                                   CUADERNILLO DE PRÁCTICAS


Práctica 7: LogixPro
Nombre: ________________________________________________________

Grupo: _____________                                          Fecha: ____________________

Llenado de Cajas con Comienzo de Nuevo Manual.

Altere su programa o escriba uno nuevo de forma que incorpore los siguientes criterios:

        Detenga el movimiento de la cinta transportadora cuando el lado derecho de la caja sea
        detectado por el fotosensor.
        Con la caja posicionada y la cinta transportadora detenida, abra la válvula solenoide y
        permita que la caja sea llenada. El proceso de llenado debe concluir cuando el sensor de
        nivel asuma el valor Verdadero.
        La luz FILL debe energizarse mientras se está llenando la caja.
        La luz FULL debe energizarse cuando la caja esté llena y permanecerá energizada
        mientras la caja llena no sea movida fuera del fotosensor.
        Una vez que la caja esté llena, deberá presionar momentáneamente el interruptor Start
        para mover la cinta transportadora y mover la caja llena fuera del área de llenado, lo que
        al mismo tiempo traerá una nueva caja vacía a la posición de llenado. No se acepta
        como solución a esta situación el que el interruptor Start sea continuamente presionado
        por el operador mientras la caja llena salga de la zona de llenado.
COLEGIO DE ESTUDIOS                          SISTEMA DE
                                             CIENTÍFICOS Y                                GESTIÓN DE
                                             TECNOLÓGICOS DEL                             LA CALIDAD
                                             ESTADO                                       ISO 9001:2000
                                             DE QUERÉTARO

                                        Cuadernillo de Practicas


                                  CUADERNILLO DE PRÁCTICAS



Práctica 8: LogixPro
Nombre: ________________________________________________________

Grupo: _____________                                          Fecha: ____________________


Control de Tráfico usando 3 Luces.

Del menú de Simulations en la parte superior de la pantalla, seleccione la simulación titulada
como Traffic Light Simulation. En la ventana de simulación aparecerá una imagen como la
imagen superior al lado del título de la simulación. Debemos prestar atención a la sección de la
imagen correspondiente a la luz de tráfico, detallada en la siguiente imagen, donde notamos
cada luz y la salida del PLC que la controla.




Usando su conocimiento de temporizadores en cascada (Ver Anexo 1), desarrolle un programa
en lenguaje escalera que realice la secuencia de luces verde, amarilla (ó ámbar) y roja de la
manera siguiente:

Secuencia de Operación:

   1.   Luz Roja controlada por salida O:2/00 encendida por 12 segundos.
   2.   Luz Verde controlada por salida O:2/02 encendida por 8 segundos.
   3.   Luz Amarilla ( ó ámbar) controlada por salida O:2/01 encendida por 4 segundos.
   4.   La secuencia se repite otra vez comenzando con la luz roja.

                          <----------------- Tiempo en Segundos ------------------>


                         ROJA                                  VERDE            AMBAR

                        12 Sec.                                    8 Sec.        4 Sec.
COLEGIO DE ESTUDIOS                           SISTEMA DE
                                             CIENTÍFICOS Y                                 GESTIÓN DE
                                             TECNOLÓGICOS DEL                              LA CALIDAD
                                             ESTADO                                        ISO 9001:2000
                                             DE QUERÉTARO

                                        Cuadernillo de Practicas


                                    CUADERNILLO DE PRÁCTICAS


Práctica 9: LogixPro
Nombre: ________________________________________________________

Grupo: _____________                                          Fecha: ____________________



Control de Tráfico usando 6 Luces.

Modifique su programa de forma que las otras 3 luces representantes del flujo de tráfico en la
otra dirección también puedan ser controladas. Usted está tentado a usar seis temporizadores
para llevar a cabo esta tarea, pero el trabajo puede realizarse con solo cuatro, y al mismo tiempo
tendrá un programa mas claro.


                        Roja = O:2/00                  Verde = O:2/02         Ambar = O:2/01

          Verde = O:2/06        Ambar = O:2/05                        Roja = O:2/04

               8 Sec.               4 Sec.                   8 Sec.               4 Sec.


¿Como que se producen colisiones porque es muy rápido el cambio de amarillo ( ó ámbar) en
una dirección a verde en la otra dirección.? Parece que los conductores no le prestan atención a
la función de la luz amarilla ( ó ámbar), en vez de reducir su velocidad al presentarse la luz
amarilla, lo que hacen es acelerar, mientras que los conductores en la otra dirección tan pronto
ven la luz verde arrancan desesperados. No necesitamos realizar un nuevo cableado para
corregir esto. La solución a esta situación llevará un poco mas de programación
COLEGIO DE ESTUDIOS                           SISTEMA DE
                                              CIENTÍFICOS Y                                 GESTIÓN DE
                                              TECNOLÓGICOS DEL                              LA CALIDAD
                                              ESTADO                                        ISO 9001:2000
                                              DE QUERÉTARO

                                         Cuadernillo de Practicas


                                  CUADERNILLO DE PRÁCTICAS


Práctica 10: LogixPro
Nombre: ________________________________________________________

Grupo: _____________                                           Fecha: ____________________



Ejercicio 3>Control de Tráfico Usando Retraso Para la Luz Verde.

Modifique su programa de forma que exista un período de un segundo de retardo donde las dos
luces rojas estén encendidas antes de pasar a la secuencia verde, amarilla (ó ámbar), roja. El
diagrama de tiempo mostrado abajo presenta solo uno de estos intervalos de un segundo, pero
se necesitan dos de ellos. Trabaje el problema y trate de no usar mas de seis temporizadores.


                      Roja = O:2/00                    Verde = O:2/02      Ambar = O:2/01

         Verde = O:2/06    Ambar = O:2/05                           Roja = O:2/04

             8 Sec.             4 Sec.            1           8 Sec.            4 Sec.


!Si el intervalo de un segundo no es suficiente para controlar a estos conductores, proceda a
aumentar ese intervalo a dos segundos¡
COLEGIO DE ESTUDIOS                    SISTEMA DE
                                             CIENTÍFICOS Y                          GESTIÓN DE
                                             TECNOLÓGICOS DEL                       LA CALIDAD
                                             ESTADO                                 ISO 9001:2000
                                             DE QUERÉTARO

                                        Cuadernillo de Practicas


                                   CUADERNILLO DE PRÁCTICAS



Anexo 1. Temporizadores.
The TON Timer .... (Timer ON Delay)

       From the LogixPro Simulations Menu, select the I/O Simulation.
       Clear out any existing program by selecting the "New" entry in the File menu, and then
       select the "Clear Data Table" entry in the Simulations menu.
       Now enter the following program being careful to enter the addresses exactly as shown.
       Confirm that you have entered the number 100 as the timer's preset value. This value
       represents a 10 second timing interval (10x0.1) as the timebase is fixed at 0.1 seconds:




       Once you have your program entered, and have ensured that it is correct, download it to
       the PLC.
       Ensure that Switch I:1/0 is Open, and then place the PLC into the Run mode.
       Right click on the Timer instruction, and select "GoTo DataTable" from the drop-down
       menu.
       Note the initial value of timer T4:1's accumulator and preset in the spaces below. Also
       indicate the state of each of the timer's control bits in the spaces provided:

       Initial State (Switch I:1/0=Open):

       T4:1.ACC = _____ T4:1.PRE = ______ T4:1/EN = ____ T4:1/TT = ____ T4:1/DN = ____

       Close switch I:1/0, and carefully observe the incrementing of the timer's accumulator, and
       the state of each of it's control bits.
       Once the Timer stops incrementing, note the final value of timer T4:1's accumulator,
       preset, and the state of it's control bits below:

       Final State (Switch I:1/0=Closed):
COLEGIO DE ESTUDIOS                      SISTEMA DE
                                            CIENTÍFICOS Y                            GESTIÓN DE
                                            TECNOLÓGICOS DEL                         LA CALIDAD
                                            ESTADO                                   ISO 9001:2000
                                            DE QUERÉTARO

                                       Cuadernillo de Practicas


                                  CUADERNILLO DE PRÁCTICAS

      T4:1.ACC = _____ T4:1.PRE = ______ T4:1/EN = ____ T4:1/TT = ____ T4:1/DN = ____

      Toggle the state of switch I:1/0 a number of times, and observe the operation of the
      Timer in both the DataTable display and in the Ladder Rung program display.
      Confirm that when the rung is taken false, the accumulator and all 3 control bits are reset
      to zero. This type of timer is a non-retentive instruction, in that the truth of the rung can
      cause the accumulator and control bits to be reset (=0).

      Conclusions:
      Use the TON instruction to turn an output on or off after the timer has been on for a
      preset time interval. This output instruction begins timing when its rung goes "true". It
      waits the specified amount of time (as set in the PREset), keeps track of the accumulated
      intervals which have occurred (ACCumulator), and sets the DN (done) bit when the ACC
      (accumulated) time equals the PRESET time.

      As long as rung conditions remain true, the timer adjusts its accumulated value (ACC)
      each evaluation until it reaches the preset value (PRE). The accumulated value is reset
      when rung conditions go false, regardless of whether the timer has timed out.




Cascaded TON Timers

      Insert a new rung containing a second timer just below the first rung as shown below.
      This second timer T4:2 will be enabled when the first timer's Done bit T4:1/DN goes true
      or high (1).




      Once you have completed this addition to your program, download your program to the
      PLC and select RUN.
      Toggle the state of switch I:1/0 to ON and observe the operation of the timers in your
      program.
      Bring the DataTable display into view, and pay particular attention to the way in which the
      timers are cascaded (one timer starts the next).
      Try changing the value of one of the timer presets by double clicking on the preset value
      in the DataTable display, and then entering a new value.
      Run the timers through their timing sequence a number of times. Don't move on until you
      are satisfied that the timers are working as you would expect
COLEGIO DE ESTUDIOS                      SISTEMA DE
                                             CIENTÍFICOS Y                            GESTIÓN DE
                                             TECNOLÓGICOS DEL                         LA CALIDAD
                                             ESTADO                                   ISO 9001:2000
                                             DE QUERÉTARO

                                        Cuadernillo de Practicas


                                  CUADERNILLO DE PRÁCTICAS

       In this exercise we have utilized just two timers, but there is nothing stopping us from
       sequencing as many timers as we wish. The only thing to remember is; to use the DN
       (done) bit of the previous timer to enable the next timer in the sequence. Obviously
       locating the timers on consecutive rungs, and employing consecutive numbering will
       make such a program much easier to read and trouble-shoot.




Self Resetting Timers

       Place the PLC into the PGM mode, and modify the first rung of your program as depicted
       below.




       Once you have modified your program, download it to the PLC and place the PLC into
       the RUN mode.
       Close switch I:1/0 and observe the operation of the timers. The timers should now be
       operating in a continuous loop with Timer1 starting Timer2, and then when Timer2 is
       done, Timer1 is reset by Timer2's done bit. As before, when Timer1 is reset, it in turn
       resets Timer2 which causes Timer2's done to go low (T4:2/DN=0). Once Timer2's done
       bit is low, the sequence is back to where it originally began, and the timing sequence will
       start over once again on the very next scan.
       Remove the first instruction (switch XIC I:1/0) from rung zero of your program.
       Download and RUN this modified version of your program
       Does the timing operation continuously sequence as before? It should!
       Can you stop the timing sequence? Not without taking the PLC out of the RUN mode! In
       many applications there may never be a need to stop such a timing sequence, so a
       switch might not be used or needed.

       In this exercise we cascaded two timers, but as before there is nothing to stop us from
       cascading as many timers as we wish. The thing to remember here is; utilize the DN (XIC
       or "NOT"done) bit of the last timer in the sequence to reset the first timer in the
       sequence. Once again, consecutive rungs, and numbering will make a program much
       easier to read and trouble-shoot.

The TOF Timer .... (Timer OFF Delay)

       In Allen Bradley PLC programming, the TON timer is by far the most commonly used type
       of timer. Most people consider TON timers to be simple to use and understand. In
       comparison, many people find the operation of the Allen Bradley TOF (Timer OFF delay)
       timer to be less intuitive, but I'm going to let you decide for yourself.

       Make sure that switch I:1/0 is Closed, and then enter or modify your existing program to
       match the one shown below.
COLEGIO DE ESTUDIOS                      SISTEMA DE
                                      CIENTÍFICOS Y                            GESTIÓN DE
                                      TECNOLÓGICOS DEL                         LA CALIDAD
                                      ESTADO                                   ISO 9001:2000
                                      DE QUERÉTARO

                                 Cuadernillo de Practicas


                            CUADERNILLO DE PRÁCTICAS




Once you have your program entered, and have ensured that it is correct, download it to
the PLC.
Ensure that Switch I:1/0 is Closed, and then place the PLC into the Run mode.
Right click on the Timer instruction, and select "GoTo DataTable" from the drop-down
menu.
Note the initial value of timer T4:1's accumulator and preset in the spaces below. Also
indicate the state of each of the timer's control bits in the spaces provided:

Initial State (Switch I:1/0=Closed):
T4:1.ACC = _____ T4:1.PRE = ______ T4:1/EN = ____ T4:1/TT = ____ T4:1/DN = ____

Open switch I:1/0, and carefully observe the incrementing of the timer's accumulator, and
the state of each of it's control bits.
Once the Timer stops incrementing, note the final value of timer T4:1's accumulator,
preset, and the state of it's control bits below:

Final State (Switch I:1/0=Open):
T4:1.ACC = _____ T4:1.PRE = ______ T4:1/EN = ____ T4:1/TT = ____ T4:1/DN = ____

Toggle the state of switch I:1/0 a number of times, and observe the operation of the
Timer in both the DataTable display and in the Ladder Rung program display.
Confirm that when the rung is taken true, the accumulator and all 3 control bits are reset
to zero. The TOF timer like the TON timer is also a non-retentive instruction and can be
reset by changing the truth of the rung.

Conclusions:
Use the TOF instruction to turn an output on or off after its rung has been off for a preset
time interval. This output instruction begins timing when its rung goes "false." It waits the
specified amount of time (as set in the PRESET), keeps track of the accumulated
intervals which have occurred (ACCUM), and resets the DN (done) bit when the ACCUM
(accumulated) time equals the PRESET time.
COLEGIO DE ESTUDIOS                     SISTEMA DE
                                            CIENTÍFICOS Y                           GESTIÓN DE
                                            TECNOLÓGICOS DEL                        LA CALIDAD
                                            ESTADO                                  ISO 9001:2000
                                            DE QUERÉTARO

                                       Cuadernillo de Practicas


                                 CUADERNILLO DE PRÁCTICAS




      The Accumulated value is reset when rung conditions go true regardless of whether the
      timer has timed out.

The RTO Timer .... (Retentive Timer ON)

      Make sure that switch I:1/0 is Open, and then replace the TOF timer in your program with
      a RTO retentive timer.
      Now insert a new rung below the timer, and add the XIC,I:1/1 and RES,T4:1 instructions.
      Your program should now match the one shown below:




      Once you have your program entered, and have ensured that it is correct, download it to
      the PLC.
      Ensure that both Switches are Open, and then place the PLC into the Run mode.
      Right click on the Timer instruction, and select "GoTo DataTable" from the drop-down
      menu.
      Note the initial value of timer T4:1's accumulator, preset and control bits. Are we starting
      off with the same values we had in the TON exercise? You should be answering Yes.!
      Close switch I:1/0 for 2 or 3 seconds and then Open it again.
      Note that the timer stopped timing when the rung went false, but the accumulator was not
      reset to zero.
      Close the switch again and leave it closed which will allow the timer to time-out
      (ACC=PRE).
      Once timed out, note the state of the control bits
      Open the switch, and once again note the state of the control bits.
      Now close Switch I:1/1 and leave it closed. This will cause the Reset instruction to go
      true.
      Close switch I:1/0 momentarily to see if the timer will start timing again. It should not!
COLEGIO DE ESTUDIOS                     SISTEMA DE
                                     CIENTÍFICOS Y                           GESTIÓN DE
                                     TECNOLÓGICOS DEL                        LA CALIDAD
                                     ESTADO                                  ISO 9001:2000
                                     DE QUERÉTARO

                                Cuadernillo de Practicas


                           CUADERNILLO DE PRÁCTICAS

Open Switch I:1/1 which will cause the Reset instruction return to false.
Now toggle switch I:1/0 several times and note that the timer should again start timing as
expected.
Repeat the foregoing steps, until you are satisfied that you clearly understand the
operation of both the RTO timer, and the Reset instruction.

Conclusions:
An RTO timer functions the same as a TON with the exception that once it has begun
timing, it holds its count of time even if the rung goes false, a fault occurs, the mode
changes from RUN to PGM, or power is lost. When rung continuity returns (rung goes
true again), the RTO begins timing from the accumulated time which was held when rung
continuity was lost. By retaining its accumulated value, retentive timers measure the
cumulative period during which rung conditions are true.
COLEGIO DE ESTUDIOS                           SISTEMA DE
                                                CIENTÍFICOS Y                                 GESTIÓN DE
                                                TECNOLÓGICOS DEL                              LA CALIDAD
                                                ESTADO                                        ISO 9001:2000
                                                DE QUERÉTARO

                                           Cuadernillo de Practicas


                                   CUADERNILLO DE PRÁCTICAS


Anexo 2. Word Comparison (Ejercicio 1.
Adicional).
Exercise #1 -- Traffic Control utilizing 1 Timer

From the Simulations Menu at the top of the LogixPro screen, Select the Traffic Light Simulation




Utilizing a single timer, employ the use of Word Comparison instructions to control our simulated
traffic light. The sequence of operation and timing durations are set out in following timing
diagram.

Your program should incorporate a 1 second period (delayed green) when both directions will
have only their RED lights illuminated. Note that the timing diagram below only shows one of
these 1 second intervals, but two are actually required.


                        Red = O:2/00                      Green = O:2/02      Amber = O:2/01

          Green = O:2/06     Amber = O:2/05                           Red = O:2/04

               8 Sec.             4 Sec.            1           8 Sec.               4 Sec.


If a one second delay proves insufficient to get these drivers under control then just go ahead and
jack the delay up to two!




Exercise #2 -- Dealing with Pedestrians

Modify your program so that the crosswalks are also controlled. This is not necessarily a word
comparison exercise, but it's a task that needs doing, and you should now have sufficient
expertise to accomplish it. It might not be all that easy however!
COLEGIO DE ESTUDIOS                     SISTEMA DE
                                              CIENTÍFICOS Y                           GESTIÓN DE
                                              TECNOLÓGICOS DEL                        LA CALIDAD
                                              ESTADO                                  ISO 9001:2000
                                              DE QUERÉTARO

                                         Cuadernillo de Practicas


                                   CUADERNILLO DE PRÁCTICAS




Your program should operate as follows:

        When depressed, the crosswalk pushbutton will cause the appropriate Walk Sign to be
        illuminated at the next occurrence of a Red to Green transition for the appropriate
        direction.
        If the Green light is already illuminated when the button is pressed then the Walk signal
        sequence will be delayed until the next Red to Green transition occurs.
        Once the Walk Sign is illuminated, it will remain so for the duration of the Green signal.
        When the Amber light appears, the Walk Sign will commence to flash On and Off and
        continue to do so until the Red signal appears.

You might consider using a bit from the free-running timer located in S2:4 to create the cautionary
flashing effect.
COLEGIO DE ESTUDIOS                     SISTEMA DE
                                              CIENTÍFICOS Y                           GESTIÓN DE
                                              TECNOLÓGICOS DEL                        LA CALIDAD
                                              ESTADO                                  ISO 9001:2000
                                              DE QUERÉTARO

                                         Cuadernillo de Practicas


                                   CUADERNILLO DE PRÁCTICAS


Anexo 3. Modulos (Ejercicio 2. Multi Floor
Elevator Student Exercise).
Getting Started

As we've seen previously, modularizing portions of a program and placing the required logic into
subroutines often results in a program which is both easier to read and understand. In extreme
cases, a programmer may even elect to modularize the total program. If this approach is taken,
then the resultant core or main program will often be nothing more then a list of calls to
subroutines where the details are dealt with. Very much like the Index for a book. The index
provides an overview from which the reader can readily discern where particular topics are
located, and then readily move to that location for further details.

In the case of the Elevator simulation, it isn't too hard to visualize how we might modularize
many, if not all the tasks that are going to be required. The tasks of closing and opening the door
are obvious candidates for modularization. Almost all programs require an initialization section,
and even tasks that require continual execution, such as catching a button press which denotes a
request for the elevator to arrive, can often be grouped into a subroutine, and then simply called
unconditionally on every scan. Add a module to track the elevator's motion, and we should
already have a fairly good topical outline for our program's Index.

Another factor which is somewhat unique to this exercise, is that we are going to need a fair
number of flags to keep track of what we are doing, and what must be done next. Fortunately, the
switch closures which denote a request to have the elevator arrive, will lead us to latching the
built-in lamp of the switch so as to visually confirm the request has been recognized. The lamp for
this switch should remain energized until the elevator car arrives, and hence that lamp can serve
the dual purpose of flagging that pending requests exists, it's floor, and indirectly the required
direction of travel. Employing I/O in this dual purpose manner should not be new, but utilizing
latch (L) and unlatch (U) instructions has until now been generally discouraged. You should be
well aware of the reasoning behind this by now, but there are situations where the latching
instructions are ideally suited to the task, and this happens to be one of them.

Exercise #1 -- Preparing Your Program's Index.

Open a new program, and enter the rungs shown below into the main or LAD2 section of this
program. Once this is accomplished, all further logic that you add to your program should be
placed into the appropriate subroutine which has been allocated for the particular task at hand.
COLEGIO DE ESTUDIOS                      SISTEMA DE
                                               CIENTÍFICOS Y                            GESTIÓN DE
                                               TECNOLÓGICOS DEL                         LA CALIDAD
                                               ESTADO                                   ISO 9001:2000
                                               DE QUERÉTARO

                                          Cuadernillo de Practicas


                                    CUADERNILLO DE PRÁCTICAS




You will note that a number of flags have already been pre-defined, and these are to be
employed to control the logic flow of your final program. Just to make life a little easier on your
instructor, you are asked to utilize unused bits in word B3:0 if and when any additional flags are
required.


Exercise #2 -- Taking the Elevator to the Top.

In this exercise you will add all the appropriate logic to detect when the wall mounted 4th floor
switch (I:1/11) is pressed. When this occurs, the elevator is to be put into motion and proceed
upwards until it arrives at the 4th floor where it will halt. This of course assumes that the elevator
starts out in it's default location at the first floor.
COLEGIO DE ESTUDIOS                       SISTEMA DE
                                                CIENTÍFICOS Y                             GESTIÓN DE
                                                TECNOLÓGICOS DEL                          LA CALIDAD
                                                ESTADO                                    ISO 9001:2000
                                                DE QUERÉTARO

                                           Cuadernillo de Practicas


                                     CUADERNILLO DE PRÁCTICAS

It's imperative that you accomplish this task while maintaining compatibility with the current
program structure. To this end, all 6 subroutines will be utilized, and therefore each must first be
programmed with the appropriate logic to accomplish this initial task.

U3, Initialization Subroutine:

Each time you test your program, you should first reset the simulation using the selection in the
simulations menu. This will ensure that elevator is back at the first floor and all the hardware is in
it's initial state. When you place your program into the run mode, U3 will be executed, and it is
here where you should ensure that all flags etc are in their correct initial state. In particular, the
"DoNext or Wait" flag should be latched true which will ensure that subroutine U7 (Next Request
or Wait) will be actively scanned at this time.

U4, Catch Floor Requests:

This subroutine is where the logic that will detect, and react to the closure of the 4th floor wall
switch should be placed. The lamp for this switch should be latched on, but this should only occur
if the elevator is not already at the 4th floor. In later exercises, additional logic will be added for
the other switches that can initiate a change in the elevator's location.

U5, Next Request or Wait:

This subroutine is where the decision to move the elevator will be made. The built-in lamps of the
wall mounted switches may be used as a flag to initiate a move of the elevator car. For now it will
only be necessary to monitor flag (lamp) O:2/11 and set the "Close and Go" flag in response. This
will in-turn invoke the "Close Door and Move" subroutine (U7) which will take care of getting the
elevator underway.

U6, Close Door and Move:

In this subroutine, locate the logic to close the door, and then energize the motor to get the
elevator underway. The desired direction is obvious in this case, but later you will most certainly
require flags to indicate which direction to proceed in. Before exiting this subroutine make sure
that both the "DoNext or Wait" and the "Close and Go" flags are cleared (unlatched), and set the
"Car is Moving" flag so that positioning of the car will be controlled.

U7, Track Car Movement:

Once the car is moving, this subroutine takes control, and is responsible for deciding where to
stop the car. In this exercise the direction and destination are fixed (up, 4th floor), so you will only
be required to determine when the car has reached the fourth floor. Once there, the car's location
should be flagged by updating the appropriate floor indicator lamps, and the "Stop and Open" flag
should be set (latched) which will in-turn invoke the "Stop and Open Door" subroutine. The car's
vertical position can be determined by reading the motor's shaft encoder (I:5), and equating this
reading to those you have gathered for the individual floors. It may take a little trial and error to
initially gather these values, but the task can be made easier if you temporarily slow LogixPro's
scan rate down somewhat.

U8, Stop and Open Door:
The first thing to do here is to stop the motor and reset (unlatch) the "Car is Moving" flag. You
should also extinguish the built-in lamp of the wall mounted request switch. The floor indicator
COLEGIO DE ESTUDIOS                        SISTEMA DE
                                               CIENTÍFICOS Y                              GESTIÓN DE
                                               TECNOLÓGICOS DEL                           LA CALIDAD
                                               ESTADO                                     ISO 9001:2000
                                               DE QUERÉTARO

                                          Cuadernillo de Practicas


                                     CUADERNILLO DE PRÁCTICAS

lamps above the door can be utilized to determine which lamp is to be extinguished. Lastly a
small 2 second settling delay should be allowed for, followed by opening the door.

Once you have your program to the point where the elevator can be moved from it's initial
location to the 4th floor as outlined, you should then be ready to deal with returning it to the 1st
floor.


Exercise #3 -- A Complete 2 Floor Elevator Control.

In this exercise, you are asked to add the required logic to implement a complete 2 floor elevator
control system. Floors 1 and 4 will be used for this purpose, and all switches and lamps
associated with these floors are to be made fully operational. All added logic should be placed
into the subroutine deemed appropriate for the particular task, and additional flags may be added
as required.




When not actively moving, the elevator will be located at one of the 2 serviced floors, sitting at
rest with the elevator car door opened. When at rest, the only lamps illuminated will be the
appropriate floor indicator lamp located directly above the elevator door. Additionally, your
program should not respond to a switch press associated with the elevator's current location

On arrival at a floor, the built-in switch lamp for that floor should be extinguished, and the
appropriate floor indicator lamp above the door should be illuminated. The door should then be
made to open 2 seconds later. Additionally, the door must remain open for a minimum of 5
seconds before being allowed to process another floor request. Floor requests occurring during
this delay period should not be ignored, but only delayed in processing.

While working on a solution for this exercise, keep in mind that you will soon have to extend this
control to all 4 floors. Flags to indicate in which direction the elevator is traveling will be a must.
Fortunately with just 2 floors, determining which direction to go is a trivial task, but one that will
become quite complex when additional floors are added.

Once you have assured that you can fully control the operation of this 2 floor elevator, you should
be well prepared to move onto the multi-floor exercise.




Exercise #4 -- Multi Floor Elevator Control.

Extending your program to accommodate multiple floors, would appear to be a relatively simple
matter of just adding the logic to deal with the additional switches and lamps. This must be done
COLEGIO DE ESTUDIOS                       SISTEMA DE
                                                CIENTÍFICOS Y                             GESTIÓN DE
                                                TECNOLÓGICOS DEL                          LA CALIDAD
                                                ESTADO                                    ISO 9001:2000
                                                DE QUERÉTARO

                                           Cuadernillo de Practicas


                                     CUADERNILLO DE PRÁCTICAS

of course, but a new issue arises in a multi-floor system which can prove to be quite a challenge
to solve for.

With a 2 floor elevator, you really have only one choice when deciding in which direction the
elevator should move. In a multi-floor system however, you can be faced with 2 choices of travel
whenever the elevator is at an intermediate floor. In addition, you must also take into account
whether the elevator is at rest with no requests for service pending, or has stopped temporarily at
the intermediate floor while proceeding to a floor further beyond in that same direction.




In our multi floor system, the elevator should continue in it's initial direction of travel, stopping at
each intermediate floor which has a request pending for that particular direction, and continue in
this same direction until the farthest request for service is reached. At this point the direction of
travel should then be reversed if further requests are pending. Any requests associated with this
new direction of travel should then be serviced.

Once moving towards the farthest requested floor, the elevator should not stop at an intermediate
floor if the request at that floor is for the opposite direction; unless this is the farthest request.
Otherwise the floor should be bypassed and serviced when the elevator later approaches the
floor from the opposite direction of travel.

Keeping track of the direction of travel will be critical in this control scheme. It's therefore
suggested that you employ both "Going Up" and "Going Down" flags to help in the decision
making process. Only when there are no requests pending would the elevator be deemed to be at
rest (Waiting), and both direction flags would be set false (unlatched). The first new request
detected can then be used to determine the initial direction of travel, and the appropriate flag set
(latched). Once a direction has been flagged, then motion and servicing will continue until all
pending requests are serviced. If required, the direction may be changed, but not until all
requests are serviced will both direction flags once again become false.

The logic associated with determining the initial direction, change in direction, and achieving a
state of rest, ideally belongs in the "Next Request or Wait" subroutine. This logic will definitely not
be trivial to develop, and you are strongly advised to utilize whatever tools you have at your
disposal, including pen and paper to attain a suitable solution.

Contenu connexe

Tendances

008. diseño de circuitos secuenciales electroneumaticos cableados
008. diseño de circuitos secuenciales electroneumaticos cableados008. diseño de circuitos secuenciales electroneumaticos cableados
008. diseño de circuitos secuenciales electroneumaticos cableadosguelo
 
PROGRAMACIÓN DE PLCS: LENGUAJE ESCALERA
PROGRAMACIÓN DE PLCS: LENGUAJE ESCALERA PROGRAMACIÓN DE PLCS: LENGUAJE ESCALERA
PROGRAMACIÓN DE PLCS: LENGUAJE ESCALERA EquipoSCADA
 
PLC y Automatización: Libro de ejercicios resueltos de GRAFCET
PLC y Automatización: Libro de ejercicios resueltos de GRAFCETPLC y Automatización: Libro de ejercicios resueltos de GRAFCET
PLC y Automatización: Libro de ejercicios resueltos de GRAFCETSANTIAGO PABLO ALBERTO
 
08 instrucciones latch_y_unlatch_plc__40490__
08 instrucciones latch_y_unlatch_plc__40490__08 instrucciones latch_y_unlatch_plc__40490__
08 instrucciones latch_y_unlatch_plc__40490__zfsasfasd
 
Introducción a los Sistemas de Control y sus Elementos
Introducción a los Sistemas de Control y sus ElementosIntroducción a los Sistemas de Control y sus Elementos
Introducción a los Sistemas de Control y sus ElementosJeickson Sulbaran
 
Arranque de Motores con PLC
Arranque de Motores con PLCArranque de Motores con PLC
Arranque de Motores con PLCUtp arequipa
 
Electroneumática y Neumática: ejercicios básicos en fluidsim
Electroneumática y Neumática: ejercicios básicos en fluidsimElectroneumática y Neumática: ejercicios básicos en fluidsim
Electroneumática y Neumática: ejercicios básicos en fluidsimSANTIAGO PABLO ALBERTO
 
Iii electroneumatica
Iii electroneumaticaIii electroneumatica
Iii electroneumaticastaticfactory
 
Cuaderno 2 Neumática
Cuaderno 2 NeumáticaCuaderno 2 Neumática
Cuaderno 2 Neumáticaandogon
 
Normas de instrumentación industrial
Normas de instrumentación industrialNormas de instrumentación industrial
Normas de instrumentación industrialMarvin Campos
 
Cuaderno de logo
Cuaderno de logoCuaderno de logo
Cuaderno de logoandogon
 

Tendances (20)

008. diseño de circuitos secuenciales electroneumaticos cableados
008. diseño de circuitos secuenciales electroneumaticos cableados008. diseño de circuitos secuenciales electroneumaticos cableados
008. diseño de circuitos secuenciales electroneumaticos cableados
 
MEMORIAS DE LOS PLC
MEMORIAS DE LOS PLCMEMORIAS DE LOS PLC
MEMORIAS DE LOS PLC
 
Instrumentacion ii
Instrumentacion iiInstrumentacion ii
Instrumentacion ii
 
Presentacion
PresentacionPresentacion
Presentacion
 
INSTALACIÓN NEUMATICA
INSTALACIÓN NEUMATICAINSTALACIÓN NEUMATICA
INSTALACIÓN NEUMATICA
 
PROGRAMACIÓN DE PLCS: LENGUAJE ESCALERA
PROGRAMACIÓN DE PLCS: LENGUAJE ESCALERA PROGRAMACIÓN DE PLCS: LENGUAJE ESCALERA
PROGRAMACIÓN DE PLCS: LENGUAJE ESCALERA
 
PLC y Automatización: Libro de ejercicios resueltos de GRAFCET
PLC y Automatización: Libro de ejercicios resueltos de GRAFCETPLC y Automatización: Libro de ejercicios resueltos de GRAFCET
PLC y Automatización: Libro de ejercicios resueltos de GRAFCET
 
08 instrucciones latch_y_unlatch_plc__40490__
08 instrucciones latch_y_unlatch_plc__40490__08 instrucciones latch_y_unlatch_plc__40490__
08 instrucciones latch_y_unlatch_plc__40490__
 
Ejercicios ladder
Ejercicios ladderEjercicios ladder
Ejercicios ladder
 
Introducción a los Sistemas de Control y sus Elementos
Introducción a los Sistemas de Control y sus ElementosIntroducción a los Sistemas de Control y sus Elementos
Introducción a los Sistemas de Control y sus Elementos
 
Simbologia neumaticos
Simbologia neumaticosSimbologia neumaticos
Simbologia neumaticos
 
Arranque de Motores con PLC
Arranque de Motores con PLCArranque de Motores con PLC
Arranque de Motores con PLC
 
Ejercicios diagramas de bloques y gfs
Ejercicios diagramas de bloques y gfsEjercicios diagramas de bloques y gfs
Ejercicios diagramas de bloques y gfs
 
62999778 el-grafcet-practica-y-aplicaciones
62999778 el-grafcet-practica-y-aplicaciones62999778 el-grafcet-practica-y-aplicaciones
62999778 el-grafcet-practica-y-aplicaciones
 
Electroneumática y Neumática: ejercicios básicos en fluidsim
Electroneumática y Neumática: ejercicios básicos en fluidsimElectroneumática y Neumática: ejercicios básicos en fluidsim
Electroneumática y Neumática: ejercicios básicos en fluidsim
 
Cilindros
CilindrosCilindros
Cilindros
 
Iii electroneumatica
Iii electroneumaticaIii electroneumatica
Iii electroneumatica
 
Cuaderno 2 Neumática
Cuaderno 2 NeumáticaCuaderno 2 Neumática
Cuaderno 2 Neumática
 
Normas de instrumentación industrial
Normas de instrumentación industrialNormas de instrumentación industrial
Normas de instrumentación industrial
 
Cuaderno de logo
Cuaderno de logoCuaderno de logo
Cuaderno de logo
 

En vedette

Practicas de Programable Controller Logic
Practicas de Programable Controller Logic Practicas de Programable Controller Logic
Practicas de Programable Controller Logic Cesar Arrieta
 
Equipos y numeros de integrantes......
Equipos y numeros de integrantes......Equipos y numeros de integrantes......
Equipos y numeros de integrantes......Fairy
 
Rslogix5000v20externalppt 120113145710-phpapp02
Rslogix5000v20externalppt 120113145710-phpapp02Rslogix5000v20externalppt 120113145710-phpapp02
Rslogix5000v20externalppt 120113145710-phpapp02dawood24
 
Equipos de alto rendimiento
Equipos de alto rendimientoEquipos de alto rendimiento
Equipos de alto rendimientoflordedaliamuro
 
Simulacion fluid sim con step 7 por Edgar Chacca Cuti
Simulacion fluid sim con step 7 por Edgar Chacca CutiSimulacion fluid sim con step 7 por Edgar Chacca Cuti
Simulacion fluid sim con step 7 por Edgar Chacca CutiEdgar Chacca Cuti
 
Instrucciones de bits1
Instrucciones de bits1Instrucciones de bits1
Instrucciones de bits1Utp arequipa
 
Programación avanzada
Programación avanzadaProgramación avanzada
Programación avanzadaPaul Gálvez
 
Info plc cursillo_basico_intouch_7_1 (1)
Info plc cursillo_basico_intouch_7_1 (1)Info plc cursillo_basico_intouch_7_1 (1)
Info plc cursillo_basico_intouch_7_1 (1)Juan Rodriguez Garza
 
08 win cc - programación elemental (1)
08   win cc - programación elemental (1)08   win cc - programación elemental (1)
08 win cc - programación elemental (1)polo33mx
 
InTouch WonderWare
InTouch WonderWareInTouch WonderWare
InTouch WonderWareMario RH
 
manual-de-intouch
manual-de-intouchmanual-de-intouch
manual-de-intouchselcoltga
 

En vedette (20)

Practicas de Programable Controller Logic
Practicas de Programable Controller Logic Practicas de Programable Controller Logic
Practicas de Programable Controller Logic
 
logix pro
logix prologix pro
logix pro
 
Manual LogixPro
Manual LogixProManual LogixPro
Manual LogixPro
 
Tutorial logix pro
Tutorial logix proTutorial logix pro
Tutorial logix pro
 
Práctica no1.1
Práctica  no1.1Práctica  no1.1
Práctica no1.1
 
Equipos de alto desempeño
Equipos de alto desempeñoEquipos de alto desempeño
Equipos de alto desempeño
 
Evidencia4
Evidencia4Evidencia4
Evidencia4
 
Equipos y numeros de integrantes......
Equipos y numeros de integrantes......Equipos y numeros de integrantes......
Equipos y numeros de integrantes......
 
Rslogix5000v20externalppt 120113145710-phpapp02
Rslogix5000v20externalppt 120113145710-phpapp02Rslogix5000v20externalppt 120113145710-phpapp02
Rslogix5000v20externalppt 120113145710-phpapp02
 
5 (1)
5 (1)5 (1)
5 (1)
 
Módulo didáctico
Módulo didácticoMódulo didáctico
Módulo didáctico
 
Equipos de alto rendimiento
Equipos de alto rendimientoEquipos de alto rendimiento
Equipos de alto rendimiento
 
Simulacion fluid sim con step 7 por Edgar Chacca Cuti
Simulacion fluid sim con step 7 por Edgar Chacca CutiSimulacion fluid sim con step 7 por Edgar Chacca Cuti
Simulacion fluid sim con step 7 por Edgar Chacca Cuti
 
Conceptos plc
Conceptos plcConceptos plc
Conceptos plc
 
Instrucciones de bits1
Instrucciones de bits1Instrucciones de bits1
Instrucciones de bits1
 
Programación avanzada
Programación avanzadaProgramación avanzada
Programación avanzada
 
Info plc cursillo_basico_intouch_7_1 (1)
Info plc cursillo_basico_intouch_7_1 (1)Info plc cursillo_basico_intouch_7_1 (1)
Info plc cursillo_basico_intouch_7_1 (1)
 
08 win cc - programación elemental (1)
08   win cc - programación elemental (1)08   win cc - programación elemental (1)
08 win cc - programación elemental (1)
 
InTouch WonderWare
InTouch WonderWareInTouch WonderWare
InTouch WonderWare
 
manual-de-intouch
manual-de-intouchmanual-de-intouch
manual-de-intouch
 

Similaire à Prácticas LogixPro CETyT Querétaro

Similaire à Prácticas LogixPro CETyT Querétaro (20)

50085926 ntc-iso8258
50085926 ntc-iso825850085926 ntc-iso8258
50085926 ntc-iso8258
 
CARTA X Y R
CARTA X Y R CARTA X Y R
CARTA X Y R
 
Exposicion proyecto primera parte
Exposicion proyecto primera parteExposicion proyecto primera parte
Exposicion proyecto primera parte
 
Cartas de control
Cartas de controlCartas de control
Cartas de control
 
RE: BIENVENIDA
RE: BIENVENIDARE: BIENVENIDA
RE: BIENVENIDA
 
PLC y Electroneumática: Codesys Grafcet
PLC y Electroneumática: Codesys GrafcetPLC y Electroneumática: Codesys Grafcet
PLC y Electroneumática: Codesys Grafcet
 
Ntc iso 9001-2008
Ntc iso 9001-2008Ntc iso 9001-2008
Ntc iso 9001-2008
 
Presentacion unidad 2 graficos de control
Presentacion unidad 2 graficos de controlPresentacion unidad 2 graficos de control
Presentacion unidad 2 graficos de control
 
Rodrigo
RodrigoRodrigo
Rodrigo
 
Rodrigo
RodrigoRodrigo
Rodrigo
 
Mpmiiis3 copiaik
Mpmiiis3   copiaikMpmiiis3   copiaik
Mpmiiis3 copiaik
 
Control estadístico de procesos minitab 17
Control estadístico de procesos minitab 17Control estadístico de procesos minitab 17
Control estadístico de procesos minitab 17
 
B4lvre1596217837
B4lvre1596217837B4lvre1596217837
B4lvre1596217837
 
CONTROL ESTADÍSTICO DE LA CALIDAD (HRRTAS).pdf
CONTROL ESTADÍSTICO DE LA CALIDAD (HRRTAS).pdfCONTROL ESTADÍSTICO DE LA CALIDAD (HRRTAS).pdf
CONTROL ESTADÍSTICO DE LA CALIDAD (HRRTAS).pdf
 
Control De Calidad En Proceso
Control De Calidad En ProcesoControl De Calidad En Proceso
Control De Calidad En Proceso
 
Electronic Work Bench
Electronic Work BenchElectronic Work Bench
Electronic Work Bench
 
Iso 9000 2000 (es)
Iso 9000 2000 (es)Iso 9000 2000 (es)
Iso 9000 2000 (es)
 
Iso 9000 2000 (es)
Iso 9000 2000 (es)Iso 9000 2000 (es)
Iso 9000 2000 (es)
 
Pract 6 calidad1
Pract 6 calidad1Pract 6 calidad1
Pract 6 calidad1
 
Explicacion cartas de_control
Explicacion cartas de_controlExplicacion cartas de_control
Explicacion cartas de_control
 

Plus de Julian Morales Agudelo

Programaci n orientada_a_objetos_usando_java_41_to_80
Programaci n orientada_a_objetos_usando_java_41_to_80Programaci n orientada_a_objetos_usando_java_41_to_80
Programaci n orientada_a_objetos_usando_java_41_to_80Julian Morales Agudelo
 
Programaci n orientada_a_objetos_usando_java_1_to_40
Programaci n orientada_a_objetos_usando_java_1_to_40Programaci n orientada_a_objetos_usando_java_1_to_40
Programaci n orientada_a_objetos_usando_java_1_to_40Julian Morales Agudelo
 
5. experiencia alturas. la mana. dra. ingrid
5. experiencia alturas. la mana. dra. ingrid5. experiencia alturas. la mana. dra. ingrid
5. experiencia alturas. la mana. dra. ingridJulian Morales Agudelo
 
Curso de ortografia y reglas generales
Curso de ortografia y reglas generalesCurso de ortografia y reglas generales
Curso de ortografia y reglas generalesJulian Morales Agudelo
 
Atlas fotografico de_anatomia_del_cuerpo_humano_3era_edici_n
Atlas fotografico de_anatomia_del_cuerpo_humano_3era_edici_nAtlas fotografico de_anatomia_del_cuerpo_humano_3era_edici_n
Atlas fotografico de_anatomia_del_cuerpo_humano_3era_edici_nJulian Morales Agudelo
 

Plus de Julian Morales Agudelo (6)

Programaci n orientada_a_objetos_usando_java_41_to_80
Programaci n orientada_a_objetos_usando_java_41_to_80Programaci n orientada_a_objetos_usando_java_41_to_80
Programaci n orientada_a_objetos_usando_java_41_to_80
 
Programaci n orientada_a_objetos_usando_java_1_to_40
Programaci n orientada_a_objetos_usando_java_1_to_40Programaci n orientada_a_objetos_usando_java_1_to_40
Programaci n orientada_a_objetos_usando_java_1_to_40
 
5. experiencia alturas. la mana. dra. ingrid
5. experiencia alturas. la mana. dra. ingrid5. experiencia alturas. la mana. dra. ingrid
5. experiencia alturas. la mana. dra. ingrid
 
Curso de ortografia y reglas generales
Curso de ortografia y reglas generalesCurso de ortografia y reglas generales
Curso de ortografia y reglas generales
 
Atlas fotografico de_anatomia_del_cuerpo_humano_3era_edici_n
Atlas fotografico de_anatomia_del_cuerpo_humano_3era_edici_nAtlas fotografico de_anatomia_del_cuerpo_humano_3era_edici_n
Atlas fotografico de_anatomia_del_cuerpo_humano_3era_edici_n
 
Guia para-subir-archivos-a-blogger
Guia para-subir-archivos-a-bloggerGuia para-subir-archivos-a-blogger
Guia para-subir-archivos-a-blogger
 

Dernier

LINEAMIENTOS INICIO DEL AÑO LECTIVO 2024-2025.pptx
LINEAMIENTOS INICIO DEL AÑO LECTIVO 2024-2025.pptxLINEAMIENTOS INICIO DEL AÑO LECTIVO 2024-2025.pptx
LINEAMIENTOS INICIO DEL AÑO LECTIVO 2024-2025.pptxdanalikcruz2000
 
Monitoreo a los coordinadores de las IIEE JEC_28.02.2024.vf.pptx
Monitoreo a los coordinadores de las IIEE JEC_28.02.2024.vf.pptxMonitoreo a los coordinadores de las IIEE JEC_28.02.2024.vf.pptx
Monitoreo a los coordinadores de las IIEE JEC_28.02.2024.vf.pptxJUANCARLOSAPARCANARE
 
Técnicas de grabado y estampación : procesos y materiales
Técnicas de grabado y estampación : procesos y materialesTécnicas de grabado y estampación : procesos y materiales
Técnicas de grabado y estampación : procesos y materialesRaquel Martín Contreras
 
La Función tecnológica del tutor.pptx
La  Función  tecnológica  del tutor.pptxLa  Función  tecnológica  del tutor.pptx
La Función tecnológica del tutor.pptxJunkotantik
 
Estrategia de Enseñanza y Aprendizaje.pdf
Estrategia de Enseñanza y Aprendizaje.pdfEstrategia de Enseñanza y Aprendizaje.pdf
Estrategia de Enseñanza y Aprendizaje.pdfromanmillans
 
PPT_Formación integral y educación CRESE (1).pdf
PPT_Formación integral y educación CRESE (1).pdfPPT_Formación integral y educación CRESE (1).pdf
PPT_Formación integral y educación CRESE (1).pdfEDILIAGAMBOA
 
PINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).ppt
PINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).pptPINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).ppt
PINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).pptAlberto Rubio
 
c3.hu3.p1.p3.El ser humano como ser histórico.pptx
c3.hu3.p1.p3.El ser humano como ser histórico.pptxc3.hu3.p1.p3.El ser humano como ser histórico.pptx
c3.hu3.p1.p3.El ser humano como ser histórico.pptxMartín Ramírez
 
Tarea 5_ Foro _Selección de herramientas digitales_Manuel.pdf
Tarea 5_ Foro _Selección de herramientas digitales_Manuel.pdfTarea 5_ Foro _Selección de herramientas digitales_Manuel.pdf
Tarea 5_ Foro _Selección de herramientas digitales_Manuel.pdfManuel Molina
 
Contextualización y aproximación al objeto de estudio de investigación cualit...
Contextualización y aproximación al objeto de estudio de investigación cualit...Contextualización y aproximación al objeto de estudio de investigación cualit...
Contextualización y aproximación al objeto de estudio de investigación cualit...Angélica Soledad Vega Ramírez
 
CIENCIAS NATURALES 4 TO ambientes .docx
CIENCIAS NATURALES 4 TO  ambientes .docxCIENCIAS NATURALES 4 TO  ambientes .docx
CIENCIAS NATURALES 4 TO ambientes .docxAgustinaNuez21
 
Metabolismo 3: Anabolismo y Fotosíntesis 2024
Metabolismo 3: Anabolismo y Fotosíntesis 2024Metabolismo 3: Anabolismo y Fotosíntesis 2024
Metabolismo 3: Anabolismo y Fotosíntesis 2024IES Vicent Andres Estelles
 
c3.hu3.p1.p2.El ser humano y el sentido de su existencia.pptx
c3.hu3.p1.p2.El ser humano y el sentido de su existencia.pptxc3.hu3.p1.p2.El ser humano y el sentido de su existencia.pptx
c3.hu3.p1.p2.El ser humano y el sentido de su existencia.pptxMartín Ramírez
 
SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024
SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024
SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024gharce
 
Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)
Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)
Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)veganet
 

Dernier (20)

Earth Day Everyday 2024 54th anniversary
Earth Day Everyday 2024 54th anniversaryEarth Day Everyday 2024 54th anniversary
Earth Day Everyday 2024 54th anniversary
 
LINEAMIENTOS INICIO DEL AÑO LECTIVO 2024-2025.pptx
LINEAMIENTOS INICIO DEL AÑO LECTIVO 2024-2025.pptxLINEAMIENTOS INICIO DEL AÑO LECTIVO 2024-2025.pptx
LINEAMIENTOS INICIO DEL AÑO LECTIVO 2024-2025.pptx
 
Aedes aegypti + Intro to Coquies EE.pptx
Aedes aegypti + Intro to Coquies EE.pptxAedes aegypti + Intro to Coquies EE.pptx
Aedes aegypti + Intro to Coquies EE.pptx
 
Monitoreo a los coordinadores de las IIEE JEC_28.02.2024.vf.pptx
Monitoreo a los coordinadores de las IIEE JEC_28.02.2024.vf.pptxMonitoreo a los coordinadores de las IIEE JEC_28.02.2024.vf.pptx
Monitoreo a los coordinadores de las IIEE JEC_28.02.2024.vf.pptx
 
Técnicas de grabado y estampación : procesos y materiales
Técnicas de grabado y estampación : procesos y materialesTécnicas de grabado y estampación : procesos y materiales
Técnicas de grabado y estampación : procesos y materiales
 
La Función tecnológica del tutor.pptx
La  Función  tecnológica  del tutor.pptxLa  Función  tecnológica  del tutor.pptx
La Función tecnológica del tutor.pptx
 
Estrategia de Enseñanza y Aprendizaje.pdf
Estrategia de Enseñanza y Aprendizaje.pdfEstrategia de Enseñanza y Aprendizaje.pdf
Estrategia de Enseñanza y Aprendizaje.pdf
 
PPT_Formación integral y educación CRESE (1).pdf
PPT_Formación integral y educación CRESE (1).pdfPPT_Formación integral y educación CRESE (1).pdf
PPT_Formación integral y educación CRESE (1).pdf
 
PINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).ppt
PINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).pptPINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).ppt
PINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).ppt
 
DIA INTERNACIONAL DAS FLORESTAS .
DIA INTERNACIONAL DAS FLORESTAS         .DIA INTERNACIONAL DAS FLORESTAS         .
DIA INTERNACIONAL DAS FLORESTAS .
 
c3.hu3.p1.p3.El ser humano como ser histórico.pptx
c3.hu3.p1.p3.El ser humano como ser histórico.pptxc3.hu3.p1.p3.El ser humano como ser histórico.pptx
c3.hu3.p1.p3.El ser humano como ser histórico.pptx
 
Tarea 5_ Foro _Selección de herramientas digitales_Manuel.pdf
Tarea 5_ Foro _Selección de herramientas digitales_Manuel.pdfTarea 5_ Foro _Selección de herramientas digitales_Manuel.pdf
Tarea 5_ Foro _Selección de herramientas digitales_Manuel.pdf
 
Contextualización y aproximación al objeto de estudio de investigación cualit...
Contextualización y aproximación al objeto de estudio de investigación cualit...Contextualización y aproximación al objeto de estudio de investigación cualit...
Contextualización y aproximación al objeto de estudio de investigación cualit...
 
CIENCIAS NATURALES 4 TO ambientes .docx
CIENCIAS NATURALES 4 TO  ambientes .docxCIENCIAS NATURALES 4 TO  ambientes .docx
CIENCIAS NATURALES 4 TO ambientes .docx
 
Metabolismo 3: Anabolismo y Fotosíntesis 2024
Metabolismo 3: Anabolismo y Fotosíntesis 2024Metabolismo 3: Anabolismo y Fotosíntesis 2024
Metabolismo 3: Anabolismo y Fotosíntesis 2024
 
Tema 7.- E-COMMERCE SISTEMAS DE INFORMACION.pdf
Tema 7.- E-COMMERCE SISTEMAS DE INFORMACION.pdfTema 7.- E-COMMERCE SISTEMAS DE INFORMACION.pdf
Tema 7.- E-COMMERCE SISTEMAS DE INFORMACION.pdf
 
La luz brilla en la oscuridad. Necesitamos luz
La luz brilla en la oscuridad. Necesitamos luzLa luz brilla en la oscuridad. Necesitamos luz
La luz brilla en la oscuridad. Necesitamos luz
 
c3.hu3.p1.p2.El ser humano y el sentido de su existencia.pptx
c3.hu3.p1.p2.El ser humano y el sentido de su existencia.pptxc3.hu3.p1.p2.El ser humano y el sentido de su existencia.pptx
c3.hu3.p1.p2.El ser humano y el sentido de su existencia.pptx
 
SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024
SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024
SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024
 
Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)
Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)
Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)
 

Prácticas LogixPro CETyT Querétaro

  • 1. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS
  • 2. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS INDICE INDICE ....................................................................................................................... 2 Práctica 1: LogixPro ................................................................................................. 3 Práctica 2: LogixPro ................................................................................................. 8 Práctica 3: LogixPro ............................................................................................... 10 Práctica 4: LogixPro ............................................................................................... 11 Práctica 5: LogixPro ............................................................................................... 13 Práctica 6: LogixPro ............................................................................................... 14 Práctica 7: LogixPro ............................................................................................... 15 Práctica 8: LogixPro ............................................................................................... 16 Práctica 9: LogixPro ............................................................................................... 17 Práctica 10: LogixPro ............................................................................................. 18 Anexo 1. Temporizadores. ..................................................................................... 19 Anexo 2. Uso de Word Comparison (Ejercicio 1. Adicional). ............................. 25 Anexo 3. Uso de Modulos Word Comparison (Ejercicio 2. Multi Floor Elevator Student Exercise). .................................................................................................. 27
  • 3. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Práctica 1: LogixPro Nombre: ________________________________________________________ Grupo: _____________ Fecha: ____________________ Laboratorio Introductorio a Lógica de Relé. Instrucciones Lógicas de Relé RSLogix. Este ejercicio se diseñó para familiarizarlo con la operación de LogixPro y conducirlo paso a paso en el proceso de creación, edición y prueba de programas sencillos de PLC utilizando las instrucciones lógicas de relé soportadas por RSLogix. Del menú Simulations presente en la parte superior de la pantalla, seleccione el I/O Simulation y asegúrese que la barra de instrucciones del usuario, similar a la mostrada arriba, esté visible. La ventana de edición del programa debe mostrar un solo escalón (rung), similar al de arriba. Este es el escalón Fin de Programa ( End of Program) y es el último escalón en cualquier programa. Si este es el único escalón visible entonces su programa está vacío. Si su programa no está vacío, entonces haga click en la entrada File del menú en la parte superior de la pantalla y seleccione "New" de la lista presente. Una caja de diálogo aparecerá conminándole a seleccionar un tipo de procesador (Select Processor Type). Haga clic en "OK" para aceptar la opción TLP LogixPro por descarte. Ahora Maximize la ventana ProSim-II Simulation
  • 4. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS El Simulador de Entrada/Salida (I/O Simulator) La pantalla del simulador, similar a la mostrada arriba, debe estar a la vista. Para este ejercicio usaremos la sección de simulación de Entrada/Salida, la cual consiste de 32 interruptores y luces. Se muestran dos grupos de 16 interruptores conmutadores conectados a 2 tarjetas de entrada de nuestro PLC simulado. Similarmente dos grupos de 16 luces se conectan a dos tarjetas de salida de nuestro PLC. Las dos tarjetas de entrada tienen direcciones "I:1" e "I:3", mientras las tarjetas de salida están direccionadas como "O:2" y "O:4". Con el ratón (mouse) haga click en varios interruptores y note que el estatus del terminal al cual el interruptor está conectado cambia de color. Mueva despacio el ratón sobre un interruptor y observe que el cursor del ratón cambia a una mano, lo que indica que el estado de un interruptor puede ser alterado al hacer click en esta localidad. Cuando se pasa el ratón aparece una ventana tipo texto con una “ayuda” (“tip”) informándole “Right Click to Toggle Switch Type" (haga click con el botón derecho del ratón para cambiar el tipo de interruptor conmutador). Proceda a hacer click con el botón derecho del ratón sobre un interruptor, y note como el tipo de interruptor cambia. Creación de Programas con RSLogix Reduzca el tamaño de la pantalla del simulador I/O a su tamaño normal al hacer clic de nuevo en el botón del medio que usted usó anteriormente para engrandecer la pantalla de simulación. Al hacer esto las dos ventanas de programación y la de simulación deben verse de nuevo en la pantalla. Si usted lo desea puede ajustar el tamaño relativo de estas ventanas moviendo con el ratón la barra que divide a ambas. Ahora introduzca el siguiente programa de un solo escalón (rung), el cual consiste de una sola instrucción de entrada XIC (XIC - Examine Entrada Cerrada) y una sola instrucción de salida OTE (OTE – energizar la salida). Hay mas de una forma de hacer ésto, pero por ahora se mostrará la forma que considero la mas comúnmente usada.
  • 5. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Primero haga click en el botón "New Rung" presente en la barra de instrucciones del usuario. Este corresponde al primer botón en el lado izquierdo de la barra. Si usted mantiene el apuntador del ratón fijo sobre cualquiera de estos botones por uno o dos segundos, aparecerá una ayuda pequeña que describe la función o nombre de la instrucción que el botón representa. Ahora deberá ver un nuevo escalón agregado a su programa como se muestra arriba, y el número del escalón al lado izquierdo deberá estar resaltado. Es de notar que el nuevo escalón se agregó sobre el ya existente escalón Fin de Programa (END). De una manera alternativa usted puede marcar el símbolo del escalón con el botón izquierdo del ratón y arrastrarlo a uno cualquiera de los cuadrados pequeños que aparecen en el programa, lo que generará un nuevo escalón en ese punto. Ahora haga clic en la instrucción XIC con el botón izquierdo del ratón y ella será agregada a la derecha de la selección resaltada. Nótese que la nueva instrucción XIC agregada ahora está resaltada. De nuevo, alternativamente usted pudo arrastrar la instrucción desde la barra de instrucciones al escalón deseado del programa. Si usted accidentalmente agrega una instrucción y desea removerla, haga click con el botón izquierdo del ratón en la instrucción a remover y luego presione la tecla "Del" ó “Sup” en su teclado no numérico. Alternativamente, usted puede hacer click con el botón derecho del ratón en la instrucción y luego seleccionar "Cut" del menú que se despliega. Haga clic con el botón izquierdo del ratón en la instrucción de salida OTE y esta será agregada a la derecha de su actual selección. Haga rápidamente dos veces click con el botón izquierdo del ratón en el signo de interrogación “?” presente en la parte superior de la instrucción XIC . Una caja de texto que comienza con “?” aparecerá en la cual usted deberá introducir la dirección (I:1/0) del conmutador que deseamos monitorear. Use la tecla Backspace para eliminar la “?" presente en el cuadro de texto. Una vez que introduzca la dirección, haga click en cualquier parte de la instrucción, exceptuando el cuadro de texto, o presione la tecla enter y el cuadro se cerrará. Haga click con el botón derecho del ratón en la instrucción XIC y seleccione "Edit Symbol" del menú que se muestra. Aparece otro cuadro de diálogo donde usted puede escribir un nombre (por ejemplo Suiche 0 ) para asociarlo con esta dirección. Un clic fuera del cuadro lo cerrará.
  • 6. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Introduzca la dirección y el símbolo para la instrucción OTE y su primer programa RSLogix estará completo. Antes de continuar, verifique que las direcciones de las instrucciones sean correctas. Verificación del Programa Debemos bajar el programa al PLC ("Download"). Haga clic en el botón "Toggle" en la esquina superior izquierda del panel de edición, como se muestra en la gráfica que sigue, para traer el panel del PLC a la vista. Haga click en el botón "DownLoad" para comenzar la bajada del programa al PLC. Una vez completada, haga click dentro del círculo con la opción “RUN” para comenzar con la corrida del programa por el PLC. Engrandezca la ventana de Simulación, de forma que pueda observar los interruptores y las lámparas, arrastrando hacia la derecha con el ratón la barra que separa las ventanas de Simulación y del Programa. Ahora haga click en el Interruptor I:1/00 en el simulador y si todo está correcto, la lámpara debe iluminarse. Conmuta el interruptor entre On (Encendido) y Off (Apagado) varias veces y observe el cambio de valor indicado por los cuadros de status del PLC los cuales están constantemente actualizado a medida que el PLC barre las instrucciones del programa. Trate de colocar el PLC de regreso en el modo “PGM" y luego conmute el interruptor del simulador varias veces y note el resultado. Coloque el PLC de nuevo en el modo “RUN” y la barrida (scan) del programa se reasume. Nosotros pensamos de la instrucción XIC como un contacto eléctrico que permite el flujo de corriente cuando se cierra un interruptor externo. Esperamos que la salida OTE se energiza si se permite que el flujo de corriente llegue a élla. En la práctica la instrucción XIC es una instrucción condicional que verifica si el bit direccionado está en 1 (Verdadero). Si es verdadero, la corriente fluye hacia OTE en nuestro caso. Edición del Programa. Haga click en el botón "Toggle" en el panel del PLC, lo que pondrá al PLC en el modo “PGM” y permitirá ver el pánel de edición. Ahora agregue un segundo escalón al programa como se muestra abajo. Ahora en vez de introducir las direcciones como hicimos anteriormente, trate arrastrando la dirección apropiada que se muestra en la simulación I/O, llevándola hacia la instrucción.
  • 7. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Note que la instrucción XIC que prueba por la condición 0 ó Falso tiene su dirección resaltada en amarillo. Esto indica que la instrucción está evaluada como Verdadera, que en el caso de una XIC significa que el bit direccionado es actualmente cero ó Falso. Este es un buen momento para practicar sus habilidades de arrastrar y dejar caer (dragNdrop). Trate de mover instrucciones de escalón a escalón al hacer click con el botón izquierdo del ratón sobre una instrucción y manteniendo el botón presionado arrastre la instrucción a una nueva localidad. Trate de hacer lo mismo con eslabones completos al arrastrar el cuadro al lado izquierdo del escalón y dejarlo caer en una nueva localidad. Una vez que se sienta cómodo con el arrastre y dejar caer, asegúrese que el programa luzca como el mostrado arriba. Ahora baje su programa al PLC y coloque al PLC en el modo Run. Conmute ambos interruptores 0 y 1 entre las posiciones On y Off varias veces y observe el efecto que tiene sobre las lámparas. Asegure que está conforme con el comportamiento de su programa antes de proceder.
  • 8. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Práctica 2: LogixPro Nombre: ________________________________________________________ Grupo: _____________ Fecha: ____________________ Parada/Arranque (Stop/Start) usando OTL y OTUP. Para este ejercicio necesitamos dos interruptores Normalmente Abierto. Usando el botón derecho del ratón haga click en los interruptores "I:1/2" y "I:1/3", lo que los cambia a pulsadores normalmente abiertos ( N.O. push buttons). Ahora agregue los dos siguientes escalones a su programa. Una vez que introduzca los escalones correctamente, bájelo y corra su programa modificado. Active los interruptores Start y Stop y asegure que las instrucciones de salida OTL y OTU responden como se estipula en su texto. Una vez que tengas la lámpara encendida, ¿puede usted apagarlo si la potencia se pierde en el circuito del interruptor Stop?. Ahora modifique su programa de forma que opere correctamente cuando usted sustituya el interruptor normalmente abierto (I:1/03) con un interruptor normalmente cerrado. Si ahora perdemos potencia en el circuito del interruptor normalmente cerrado, ¿que pasaría con el estado de la lámpara (O:2/02)? Emulación del Control Standard Parada/Arranque (Stop/Start). Borre su programa al seleccionar "New" desde el menú "File" en la parte superior de la pantalla. Cuando el cuadro de diálogo aparece haga click en “OK” para seleccionar el tipo PLC por descarte (default PLC type). Ahora introduzca el siguiente programa. Para introducir una bifurcación, solo arrastre el botón de bifurcación en el escalón y luego inserte o arrastre instrucciones en la ramificación.
  • 9. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Antes que baje y corra este programa, echemos un cuidadoso vistazo al uso de la instrucción XIO para verificar el estado de un interruptores normalmente cerrado de parada. Cuando alguien presiona el interruptor de parada (Stop Switch), ¿irá el bit I:1/04 a Verdadero o Falso? ¿Irá la instrucción XIC al valor Verdadero o Falso cuando el interruptor se presiona? ¿Es esta la lógica deseada? .... Corra el programa y verifique si es correcta..... Si pierde potencia en el circuito de parada (Stop Switch), ¿ a que estado la lámpara irá? .... ¿Porqué piensa usted que la mayoría prefiere este método en vez del método OTL/OTU para implementar el circuito de Parada/Arranque?. Ramificación de Salida con RSLogix Modifique su programa para que sea igual a este: Baje el programa al PLC y córralo. Opere los interruptores Stop y Start varias veces con el Interruptor-0 abierto, y de Nuevo con el interruptor-0 cerrado. Remueva la instrucción XIC de la rama de salida y observe a la lámpara 3 cuando usted arranca y para al circuito. Trate de mover la instrucción OTE de la lámpara-3 de forma que esté en serie con la instrucción OTE de la lámpara 2. Baje el programa al PLC y córralo. Observe como ambas lámparas encienden con la rama vacía en su sitio. Ello puede aparecer como un circuito eléctrico pero sabemos que en efecto no lo es y por lo tanto obedece un conjunto distinto de reglas. Remueva la ramificación vacía. Baje el programa y córralo. Vea si esto tiene algún efecto en la lógica o en la operación del escalón.
  • 10. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Práctica 3: LogixPro Nombre: ________________________________________________________ Grupo: _____________ Fecha: ____________________ Control de una Luz desde dos Localidades. Genere, introduzca y pruebe un programa que realice la función común de controlar una luz desde dos localidades diferentes. Utilice los interruptores conmutadores (I:1/00) y (I:1/01) para controlar la lámpara (O:2/00)... (Ayuda: Si ambos interruptores están Encendidos o si ambos interruptores están apagados, la lámpara debe estar encendida. Este es una forma de enfocar al problema.)
  • 11. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Práctica 4: LogixPro Nombre: ________________________________________________________ Grupo: _____________ Fecha: ____________________ Simulación de ProSim-II de una Puerta de Garaje. Del menu Simulations en la parte superior de la pantalla elija la opción Door Simulation. Tome su tiempo para familiarizarse con los componentes presentes en el sistema Puerta de Garaje y fíjese en particular en el estado actual de los interruptores limitadores. Cuando la puerta está en la posición cerrada, ambos interruptores están en su estado activado (anormal). Coloque el ratón sobre cada uno de los interruptores interruptores y podrá ver que una caja de texto de ayuda aparece, la cual indica que el interruptor seleccionado se cableó usando contactos normalmente abiertos. Con la puerta completamente cerrada, ¿que nivel de señal espera usted ver a las entradas I:1/03 e I:1/04, correspondientes a las conexiones de los interruptores al PLC?. Para confirmar su entendimiento del estatus actual de los interruptores limitadores, coloque al PLC en el modo “RUN”, lo que inicia el barrido. Ahora abra la pantalla Data Table (Tabla de Data) haciendo click en el ícono Data Tabla localizado en la barra de herramientas en la parte superior de la pantalla (tercer ícono desde la derecha ). Cuando usted tenga a su vista el cuadro de Data Table, vaya al subcuadro con lista titulado Table y seleccione I1:Input. Ahora podrá observar el estado actual de cada bit asociado con la tarjeta de entrada I1. Debe notarse que el bit I:1/02 está también en el estado Alto o Verdadero. Utilizando el ratón, presione el interruptor Stop varias veces en el Pánel de Control y observe lo que ocurre. Juegue con los interruptores Start, Stop y Close, vea como se reflejan en esta tabla. Hasta que no entienda bien esta tabla y porque cambian los valores en ella, no continúe con el ejercicio. Ejercicio de Programación Para el Estudiante. En este ejercicio queremos que aplique sus conocimientos en instrucciones de lógica de relé al diseño de un programa que controle la puerta ProSim-II. El sistema de la puerta consiste de un motor reversible, un par de interruptores limitadores y un panel de control, todo conectado a su PLC. El programa monitoreará y controlará este equipo adhiriéndose a las siguientes premisas:
  • 12. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS El movimiento de la puerta se detendrá inmediatamente cuando se presione el interruptor Stop y permanecerá detenida cuando se deje de presionar el interruptor. Al presionar el interruptor Open, la puerta se abrirá siempre y cuando la puerta no esté completamente abierta. Si el interruptor es dejado de presionar la puerta continuará abriéndose hasta abrirse por completo. Al presionar el interruptor Close hará que la puerta se cierre a menos que esté completamente cerrada. El cierre de la puerta se mantendrá hasta completarse aun cuando deje de presionar el interruptor de cierre. Si la puerta está completamente abierta, el presionar el interruptor de Apertura de Puerta no energizará el motor. Si la puerta está completamente cerrada, el presionar el interruptor de Cierre de Puerta no debe energizar el motor. Bajo ninguna circunstancia los dos embobinados (motor up y motor down) del motor deben energizarse simultáneamente. La luz Ajar deberá iluminarse si la puerta no está completamente cerrada o completamente abierta. La luz Open se encenderá cuando la puerta esté completamente abierta. La luz Shut se encenderá cuando la puerta esté completamente cerrada. Será de su responsabilidad el diseñar, documentar, depurar y probar su programa. Trate de evitar el uso de instrucciones de anclaje OTL u OTU y trate de minimizar el número de escalones que usa. Asegúrese de usar apropiadamente comentarios en las instrucciones y escalones para documentar su programa. Todos los componentes de Entrada/Salida (I/O) referenciados dentro de su programa deben estar claramente etiquetados, y los comentarios en los escalones deben clarificar los pasos que su programa ejecuta.
  • 13. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Práctica 5: LogixPro Nombre: ________________________________________________________ Grupo: _____________ Fecha: ____________________ Ejercicio Suplementario de Programación. En este ejercicio queremos que modifique su programa para que se adhiera a los siguientes criterios: Si la puerta se está abriendo y se presiona el interruptor Close, se detendrá el movimiento de la puerta, y la puerta permanecerá detenida cuando el interruptor Close se deje de presionar. Si la puerta se está cerrando y se presiona el interruptor Open, la puerta detendrá su movimiento. Cuando se suelte el interruptor Open, la puerta comenzará a abrirse. Una vez que el movimiento de la puerta sea detenido por una de las dos causas anteriormente mencionadas, el criterio de operación de la primera sección debe seguirse de nuevo.
  • 14. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Práctica 6: LogixPro Nombre: ________________________________________________________ Grupo: _____________ Fecha: ____________________ La Simulación de un Silo en ProSimII. Del menú Simulations en la parte superior de la pantalla seleccione Silo Simulation. Una imagen similar a la imagen de arriba se abrirá en la ventana de simulación. La imagen siguiente muestra con detalle donde están los sensores de nivel (level sensor) y de proximidad (prox. sensor), interruptores (START y STOP), luces (RUN, FILL y FULL), válvula solenoide (solenoid valve) y motor del sistema con las correspondientes entradas y salidas al PLC. Usted usará estos componentes en los ejercicios. Operación Continua. Diseñe y depure completamente un circuito de control usando lenguaje escalera que automáticamente posicione y llene las cajas, las cuales aparecen secuencialmente en la correa transportadora. Asegúrese que los siguientes detalles se satisfagan: La secuencia puede ser detenida y comenzada de Nuevo en cualquier momento usando los interruptores Stop y Start montados en el panel a la izquierda del simulador. La luz RUN permanecerá energizada siempre que el sistema esté operando en modo automático. La luz RUN, el motor de la cinta transportadora y la válvula solenoide se desenergizarán siempre que el sistema sea detenido con el interruptor STOP. La luz FILL debe energizarse cuando la caja se esté llenando. La luz FULL se energizará cuando la caja esté llena y permanecerá así hasta que la caja sea movida fuera del fotosensor.
  • 15. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Práctica 7: LogixPro Nombre: ________________________________________________________ Grupo: _____________ Fecha: ____________________ Llenado de Cajas con Comienzo de Nuevo Manual. Altere su programa o escriba uno nuevo de forma que incorpore los siguientes criterios: Detenga el movimiento de la cinta transportadora cuando el lado derecho de la caja sea detectado por el fotosensor. Con la caja posicionada y la cinta transportadora detenida, abra la válvula solenoide y permita que la caja sea llenada. El proceso de llenado debe concluir cuando el sensor de nivel asuma el valor Verdadero. La luz FILL debe energizarse mientras se está llenando la caja. La luz FULL debe energizarse cuando la caja esté llena y permanecerá energizada mientras la caja llena no sea movida fuera del fotosensor. Una vez que la caja esté llena, deberá presionar momentáneamente el interruptor Start para mover la cinta transportadora y mover la caja llena fuera del área de llenado, lo que al mismo tiempo traerá una nueva caja vacía a la posición de llenado. No se acepta como solución a esta situación el que el interruptor Start sea continuamente presionado por el operador mientras la caja llena salga de la zona de llenado.
  • 16. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Práctica 8: LogixPro Nombre: ________________________________________________________ Grupo: _____________ Fecha: ____________________ Control de Tráfico usando 3 Luces. Del menú de Simulations en la parte superior de la pantalla, seleccione la simulación titulada como Traffic Light Simulation. En la ventana de simulación aparecerá una imagen como la imagen superior al lado del título de la simulación. Debemos prestar atención a la sección de la imagen correspondiente a la luz de tráfico, detallada en la siguiente imagen, donde notamos cada luz y la salida del PLC que la controla. Usando su conocimiento de temporizadores en cascada (Ver Anexo 1), desarrolle un programa en lenguaje escalera que realice la secuencia de luces verde, amarilla (ó ámbar) y roja de la manera siguiente: Secuencia de Operación: 1. Luz Roja controlada por salida O:2/00 encendida por 12 segundos. 2. Luz Verde controlada por salida O:2/02 encendida por 8 segundos. 3. Luz Amarilla ( ó ámbar) controlada por salida O:2/01 encendida por 4 segundos. 4. La secuencia se repite otra vez comenzando con la luz roja. <----------------- Tiempo en Segundos ------------------> ROJA VERDE AMBAR 12 Sec. 8 Sec. 4 Sec.
  • 17. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Práctica 9: LogixPro Nombre: ________________________________________________________ Grupo: _____________ Fecha: ____________________ Control de Tráfico usando 6 Luces. Modifique su programa de forma que las otras 3 luces representantes del flujo de tráfico en la otra dirección también puedan ser controladas. Usted está tentado a usar seis temporizadores para llevar a cabo esta tarea, pero el trabajo puede realizarse con solo cuatro, y al mismo tiempo tendrá un programa mas claro. Roja = O:2/00 Verde = O:2/02 Ambar = O:2/01 Verde = O:2/06 Ambar = O:2/05 Roja = O:2/04 8 Sec. 4 Sec. 8 Sec. 4 Sec. ¿Como que se producen colisiones porque es muy rápido el cambio de amarillo ( ó ámbar) en una dirección a verde en la otra dirección.? Parece que los conductores no le prestan atención a la función de la luz amarilla ( ó ámbar), en vez de reducir su velocidad al presentarse la luz amarilla, lo que hacen es acelerar, mientras que los conductores en la otra dirección tan pronto ven la luz verde arrancan desesperados. No necesitamos realizar un nuevo cableado para corregir esto. La solución a esta situación llevará un poco mas de programación
  • 18. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Práctica 10: LogixPro Nombre: ________________________________________________________ Grupo: _____________ Fecha: ____________________ Ejercicio 3>Control de Tráfico Usando Retraso Para la Luz Verde. Modifique su programa de forma que exista un período de un segundo de retardo donde las dos luces rojas estén encendidas antes de pasar a la secuencia verde, amarilla (ó ámbar), roja. El diagrama de tiempo mostrado abajo presenta solo uno de estos intervalos de un segundo, pero se necesitan dos de ellos. Trabaje el problema y trate de no usar mas de seis temporizadores. Roja = O:2/00 Verde = O:2/02 Ambar = O:2/01 Verde = O:2/06 Ambar = O:2/05 Roja = O:2/04 8 Sec. 4 Sec. 1 8 Sec. 4 Sec. !Si el intervalo de un segundo no es suficiente para controlar a estos conductores, proceda a aumentar ese intervalo a dos segundos¡
  • 19. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Anexo 1. Temporizadores. The TON Timer .... (Timer ON Delay) From the LogixPro Simulations Menu, select the I/O Simulation. Clear out any existing program by selecting the "New" entry in the File menu, and then select the "Clear Data Table" entry in the Simulations menu. Now enter the following program being careful to enter the addresses exactly as shown. Confirm that you have entered the number 100 as the timer's preset value. This value represents a 10 second timing interval (10x0.1) as the timebase is fixed at 0.1 seconds: Once you have your program entered, and have ensured that it is correct, download it to the PLC. Ensure that Switch I:1/0 is Open, and then place the PLC into the Run mode. Right click on the Timer instruction, and select "GoTo DataTable" from the drop-down menu. Note the initial value of timer T4:1's accumulator and preset in the spaces below. Also indicate the state of each of the timer's control bits in the spaces provided: Initial State (Switch I:1/0=Open): T4:1.ACC = _____ T4:1.PRE = ______ T4:1/EN = ____ T4:1/TT = ____ T4:1/DN = ____ Close switch I:1/0, and carefully observe the incrementing of the timer's accumulator, and the state of each of it's control bits. Once the Timer stops incrementing, note the final value of timer T4:1's accumulator, preset, and the state of it's control bits below: Final State (Switch I:1/0=Closed):
  • 20. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS T4:1.ACC = _____ T4:1.PRE = ______ T4:1/EN = ____ T4:1/TT = ____ T4:1/DN = ____ Toggle the state of switch I:1/0 a number of times, and observe the operation of the Timer in both the DataTable display and in the Ladder Rung program display. Confirm that when the rung is taken false, the accumulator and all 3 control bits are reset to zero. This type of timer is a non-retentive instruction, in that the truth of the rung can cause the accumulator and control bits to be reset (=0). Conclusions: Use the TON instruction to turn an output on or off after the timer has been on for a preset time interval. This output instruction begins timing when its rung goes "true". It waits the specified amount of time (as set in the PREset), keeps track of the accumulated intervals which have occurred (ACCumulator), and sets the DN (done) bit when the ACC (accumulated) time equals the PRESET time. As long as rung conditions remain true, the timer adjusts its accumulated value (ACC) each evaluation until it reaches the preset value (PRE). The accumulated value is reset when rung conditions go false, regardless of whether the timer has timed out. Cascaded TON Timers Insert a new rung containing a second timer just below the first rung as shown below. This second timer T4:2 will be enabled when the first timer's Done bit T4:1/DN goes true or high (1). Once you have completed this addition to your program, download your program to the PLC and select RUN. Toggle the state of switch I:1/0 to ON and observe the operation of the timers in your program. Bring the DataTable display into view, and pay particular attention to the way in which the timers are cascaded (one timer starts the next). Try changing the value of one of the timer presets by double clicking on the preset value in the DataTable display, and then entering a new value. Run the timers through their timing sequence a number of times. Don't move on until you are satisfied that the timers are working as you would expect
  • 21. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS In this exercise we have utilized just two timers, but there is nothing stopping us from sequencing as many timers as we wish. The only thing to remember is; to use the DN (done) bit of the previous timer to enable the next timer in the sequence. Obviously locating the timers on consecutive rungs, and employing consecutive numbering will make such a program much easier to read and trouble-shoot. Self Resetting Timers Place the PLC into the PGM mode, and modify the first rung of your program as depicted below. Once you have modified your program, download it to the PLC and place the PLC into the RUN mode. Close switch I:1/0 and observe the operation of the timers. The timers should now be operating in a continuous loop with Timer1 starting Timer2, and then when Timer2 is done, Timer1 is reset by Timer2's done bit. As before, when Timer1 is reset, it in turn resets Timer2 which causes Timer2's done to go low (T4:2/DN=0). Once Timer2's done bit is low, the sequence is back to where it originally began, and the timing sequence will start over once again on the very next scan. Remove the first instruction (switch XIC I:1/0) from rung zero of your program. Download and RUN this modified version of your program Does the timing operation continuously sequence as before? It should! Can you stop the timing sequence? Not without taking the PLC out of the RUN mode! In many applications there may never be a need to stop such a timing sequence, so a switch might not be used or needed. In this exercise we cascaded two timers, but as before there is nothing to stop us from cascading as many timers as we wish. The thing to remember here is; utilize the DN (XIC or "NOT"done) bit of the last timer in the sequence to reset the first timer in the sequence. Once again, consecutive rungs, and numbering will make a program much easier to read and trouble-shoot. The TOF Timer .... (Timer OFF Delay) In Allen Bradley PLC programming, the TON timer is by far the most commonly used type of timer. Most people consider TON timers to be simple to use and understand. In comparison, many people find the operation of the Allen Bradley TOF (Timer OFF delay) timer to be less intuitive, but I'm going to let you decide for yourself. Make sure that switch I:1/0 is Closed, and then enter or modify your existing program to match the one shown below.
  • 22. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Once you have your program entered, and have ensured that it is correct, download it to the PLC. Ensure that Switch I:1/0 is Closed, and then place the PLC into the Run mode. Right click on the Timer instruction, and select "GoTo DataTable" from the drop-down menu. Note the initial value of timer T4:1's accumulator and preset in the spaces below. Also indicate the state of each of the timer's control bits in the spaces provided: Initial State (Switch I:1/0=Closed): T4:1.ACC = _____ T4:1.PRE = ______ T4:1/EN = ____ T4:1/TT = ____ T4:1/DN = ____ Open switch I:1/0, and carefully observe the incrementing of the timer's accumulator, and the state of each of it's control bits. Once the Timer stops incrementing, note the final value of timer T4:1's accumulator, preset, and the state of it's control bits below: Final State (Switch I:1/0=Open): T4:1.ACC = _____ T4:1.PRE = ______ T4:1/EN = ____ T4:1/TT = ____ T4:1/DN = ____ Toggle the state of switch I:1/0 a number of times, and observe the operation of the Timer in both the DataTable display and in the Ladder Rung program display. Confirm that when the rung is taken true, the accumulator and all 3 control bits are reset to zero. The TOF timer like the TON timer is also a non-retentive instruction and can be reset by changing the truth of the rung. Conclusions: Use the TOF instruction to turn an output on or off after its rung has been off for a preset time interval. This output instruction begins timing when its rung goes "false." It waits the specified amount of time (as set in the PRESET), keeps track of the accumulated intervals which have occurred (ACCUM), and resets the DN (done) bit when the ACCUM (accumulated) time equals the PRESET time.
  • 23. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS The Accumulated value is reset when rung conditions go true regardless of whether the timer has timed out. The RTO Timer .... (Retentive Timer ON) Make sure that switch I:1/0 is Open, and then replace the TOF timer in your program with a RTO retentive timer. Now insert a new rung below the timer, and add the XIC,I:1/1 and RES,T4:1 instructions. Your program should now match the one shown below: Once you have your program entered, and have ensured that it is correct, download it to the PLC. Ensure that both Switches are Open, and then place the PLC into the Run mode. Right click on the Timer instruction, and select "GoTo DataTable" from the drop-down menu. Note the initial value of timer T4:1's accumulator, preset and control bits. Are we starting off with the same values we had in the TON exercise? You should be answering Yes.! Close switch I:1/0 for 2 or 3 seconds and then Open it again. Note that the timer stopped timing when the rung went false, but the accumulator was not reset to zero. Close the switch again and leave it closed which will allow the timer to time-out (ACC=PRE). Once timed out, note the state of the control bits Open the switch, and once again note the state of the control bits. Now close Switch I:1/1 and leave it closed. This will cause the Reset instruction to go true. Close switch I:1/0 momentarily to see if the timer will start timing again. It should not!
  • 24. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Open Switch I:1/1 which will cause the Reset instruction return to false. Now toggle switch I:1/0 several times and note that the timer should again start timing as expected. Repeat the foregoing steps, until you are satisfied that you clearly understand the operation of both the RTO timer, and the Reset instruction. Conclusions: An RTO timer functions the same as a TON with the exception that once it has begun timing, it holds its count of time even if the rung goes false, a fault occurs, the mode changes from RUN to PGM, or power is lost. When rung continuity returns (rung goes true again), the RTO begins timing from the accumulated time which was held when rung continuity was lost. By retaining its accumulated value, retentive timers measure the cumulative period during which rung conditions are true.
  • 25. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Anexo 2. Word Comparison (Ejercicio 1. Adicional). Exercise #1 -- Traffic Control utilizing 1 Timer From the Simulations Menu at the top of the LogixPro screen, Select the Traffic Light Simulation Utilizing a single timer, employ the use of Word Comparison instructions to control our simulated traffic light. The sequence of operation and timing durations are set out in following timing diagram. Your program should incorporate a 1 second period (delayed green) when both directions will have only their RED lights illuminated. Note that the timing diagram below only shows one of these 1 second intervals, but two are actually required. Red = O:2/00 Green = O:2/02 Amber = O:2/01 Green = O:2/06 Amber = O:2/05 Red = O:2/04 8 Sec. 4 Sec. 1 8 Sec. 4 Sec. If a one second delay proves insufficient to get these drivers under control then just go ahead and jack the delay up to two! Exercise #2 -- Dealing with Pedestrians Modify your program so that the crosswalks are also controlled. This is not necessarily a word comparison exercise, but it's a task that needs doing, and you should now have sufficient expertise to accomplish it. It might not be all that easy however!
  • 26. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Your program should operate as follows: When depressed, the crosswalk pushbutton will cause the appropriate Walk Sign to be illuminated at the next occurrence of a Red to Green transition for the appropriate direction. If the Green light is already illuminated when the button is pressed then the Walk signal sequence will be delayed until the next Red to Green transition occurs. Once the Walk Sign is illuminated, it will remain so for the duration of the Green signal. When the Amber light appears, the Walk Sign will commence to flash On and Off and continue to do so until the Red signal appears. You might consider using a bit from the free-running timer located in S2:4 to create the cautionary flashing effect.
  • 27. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS Anexo 3. Modulos (Ejercicio 2. Multi Floor Elevator Student Exercise). Getting Started As we've seen previously, modularizing portions of a program and placing the required logic into subroutines often results in a program which is both easier to read and understand. In extreme cases, a programmer may even elect to modularize the total program. If this approach is taken, then the resultant core or main program will often be nothing more then a list of calls to subroutines where the details are dealt with. Very much like the Index for a book. The index provides an overview from which the reader can readily discern where particular topics are located, and then readily move to that location for further details. In the case of the Elevator simulation, it isn't too hard to visualize how we might modularize many, if not all the tasks that are going to be required. The tasks of closing and opening the door are obvious candidates for modularization. Almost all programs require an initialization section, and even tasks that require continual execution, such as catching a button press which denotes a request for the elevator to arrive, can often be grouped into a subroutine, and then simply called unconditionally on every scan. Add a module to track the elevator's motion, and we should already have a fairly good topical outline for our program's Index. Another factor which is somewhat unique to this exercise, is that we are going to need a fair number of flags to keep track of what we are doing, and what must be done next. Fortunately, the switch closures which denote a request to have the elevator arrive, will lead us to latching the built-in lamp of the switch so as to visually confirm the request has been recognized. The lamp for this switch should remain energized until the elevator car arrives, and hence that lamp can serve the dual purpose of flagging that pending requests exists, it's floor, and indirectly the required direction of travel. Employing I/O in this dual purpose manner should not be new, but utilizing latch (L) and unlatch (U) instructions has until now been generally discouraged. You should be well aware of the reasoning behind this by now, but there are situations where the latching instructions are ideally suited to the task, and this happens to be one of them. Exercise #1 -- Preparing Your Program's Index. Open a new program, and enter the rungs shown below into the main or LAD2 section of this program. Once this is accomplished, all further logic that you add to your program should be placed into the appropriate subroutine which has been allocated for the particular task at hand.
  • 28. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS You will note that a number of flags have already been pre-defined, and these are to be employed to control the logic flow of your final program. Just to make life a little easier on your instructor, you are asked to utilize unused bits in word B3:0 if and when any additional flags are required. Exercise #2 -- Taking the Elevator to the Top. In this exercise you will add all the appropriate logic to detect when the wall mounted 4th floor switch (I:1/11) is pressed. When this occurs, the elevator is to be put into motion and proceed upwards until it arrives at the 4th floor where it will halt. This of course assumes that the elevator starts out in it's default location at the first floor.
  • 29. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS It's imperative that you accomplish this task while maintaining compatibility with the current program structure. To this end, all 6 subroutines will be utilized, and therefore each must first be programmed with the appropriate logic to accomplish this initial task. U3, Initialization Subroutine: Each time you test your program, you should first reset the simulation using the selection in the simulations menu. This will ensure that elevator is back at the first floor and all the hardware is in it's initial state. When you place your program into the run mode, U3 will be executed, and it is here where you should ensure that all flags etc are in their correct initial state. In particular, the "DoNext or Wait" flag should be latched true which will ensure that subroutine U7 (Next Request or Wait) will be actively scanned at this time. U4, Catch Floor Requests: This subroutine is where the logic that will detect, and react to the closure of the 4th floor wall switch should be placed. The lamp for this switch should be latched on, but this should only occur if the elevator is not already at the 4th floor. In later exercises, additional logic will be added for the other switches that can initiate a change in the elevator's location. U5, Next Request or Wait: This subroutine is where the decision to move the elevator will be made. The built-in lamps of the wall mounted switches may be used as a flag to initiate a move of the elevator car. For now it will only be necessary to monitor flag (lamp) O:2/11 and set the "Close and Go" flag in response. This will in-turn invoke the "Close Door and Move" subroutine (U7) which will take care of getting the elevator underway. U6, Close Door and Move: In this subroutine, locate the logic to close the door, and then energize the motor to get the elevator underway. The desired direction is obvious in this case, but later you will most certainly require flags to indicate which direction to proceed in. Before exiting this subroutine make sure that both the "DoNext or Wait" and the "Close and Go" flags are cleared (unlatched), and set the "Car is Moving" flag so that positioning of the car will be controlled. U7, Track Car Movement: Once the car is moving, this subroutine takes control, and is responsible for deciding where to stop the car. In this exercise the direction and destination are fixed (up, 4th floor), so you will only be required to determine when the car has reached the fourth floor. Once there, the car's location should be flagged by updating the appropriate floor indicator lamps, and the "Stop and Open" flag should be set (latched) which will in-turn invoke the "Stop and Open Door" subroutine. The car's vertical position can be determined by reading the motor's shaft encoder (I:5), and equating this reading to those you have gathered for the individual floors. It may take a little trial and error to initially gather these values, but the task can be made easier if you temporarily slow LogixPro's scan rate down somewhat. U8, Stop and Open Door: The first thing to do here is to stop the motor and reset (unlatch) the "Car is Moving" flag. You should also extinguish the built-in lamp of the wall mounted request switch. The floor indicator
  • 30. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS lamps above the door can be utilized to determine which lamp is to be extinguished. Lastly a small 2 second settling delay should be allowed for, followed by opening the door. Once you have your program to the point where the elevator can be moved from it's initial location to the 4th floor as outlined, you should then be ready to deal with returning it to the 1st floor. Exercise #3 -- A Complete 2 Floor Elevator Control. In this exercise, you are asked to add the required logic to implement a complete 2 floor elevator control system. Floors 1 and 4 will be used for this purpose, and all switches and lamps associated with these floors are to be made fully operational. All added logic should be placed into the subroutine deemed appropriate for the particular task, and additional flags may be added as required. When not actively moving, the elevator will be located at one of the 2 serviced floors, sitting at rest with the elevator car door opened. When at rest, the only lamps illuminated will be the appropriate floor indicator lamp located directly above the elevator door. Additionally, your program should not respond to a switch press associated with the elevator's current location On arrival at a floor, the built-in switch lamp for that floor should be extinguished, and the appropriate floor indicator lamp above the door should be illuminated. The door should then be made to open 2 seconds later. Additionally, the door must remain open for a minimum of 5 seconds before being allowed to process another floor request. Floor requests occurring during this delay period should not be ignored, but only delayed in processing. While working on a solution for this exercise, keep in mind that you will soon have to extend this control to all 4 floors. Flags to indicate in which direction the elevator is traveling will be a must. Fortunately with just 2 floors, determining which direction to go is a trivial task, but one that will become quite complex when additional floors are added. Once you have assured that you can fully control the operation of this 2 floor elevator, you should be well prepared to move onto the multi-floor exercise. Exercise #4 -- Multi Floor Elevator Control. Extending your program to accommodate multiple floors, would appear to be a relatively simple matter of just adding the logic to deal with the additional switches and lamps. This must be done
  • 31. COLEGIO DE ESTUDIOS SISTEMA DE CIENTÍFICOS Y GESTIÓN DE TECNOLÓGICOS DEL LA CALIDAD ESTADO ISO 9001:2000 DE QUERÉTARO Cuadernillo de Practicas CUADERNILLO DE PRÁCTICAS of course, but a new issue arises in a multi-floor system which can prove to be quite a challenge to solve for. With a 2 floor elevator, you really have only one choice when deciding in which direction the elevator should move. In a multi-floor system however, you can be faced with 2 choices of travel whenever the elevator is at an intermediate floor. In addition, you must also take into account whether the elevator is at rest with no requests for service pending, or has stopped temporarily at the intermediate floor while proceeding to a floor further beyond in that same direction. In our multi floor system, the elevator should continue in it's initial direction of travel, stopping at each intermediate floor which has a request pending for that particular direction, and continue in this same direction until the farthest request for service is reached. At this point the direction of travel should then be reversed if further requests are pending. Any requests associated with this new direction of travel should then be serviced. Once moving towards the farthest requested floor, the elevator should not stop at an intermediate floor if the request at that floor is for the opposite direction; unless this is the farthest request. Otherwise the floor should be bypassed and serviced when the elevator later approaches the floor from the opposite direction of travel. Keeping track of the direction of travel will be critical in this control scheme. It's therefore suggested that you employ both "Going Up" and "Going Down" flags to help in the decision making process. Only when there are no requests pending would the elevator be deemed to be at rest (Waiting), and both direction flags would be set false (unlatched). The first new request detected can then be used to determine the initial direction of travel, and the appropriate flag set (latched). Once a direction has been flagged, then motion and servicing will continue until all pending requests are serviced. If required, the direction may be changed, but not until all requests are serviced will both direction flags once again become false. The logic associated with determining the initial direction, change in direction, and achieving a state of rest, ideally belongs in the "Next Request or Wait" subroutine. This logic will definitely not be trivial to develop, and you are strongly advised to utilize whatever tools you have at your disposal, including pen and paper to attain a suitable solution.