You are on page 1of 8

AUTOMATISMOS

5 Ingeniero de Telecomunicacin Curso 2003/2004

PRCTICAS DE PROGRAMACIN S7300 EN LENGUAJE DE CONTACTOS KOP

1. Control de motores 2. Control de Vlvulas 3. Gua de seleccin de temporizadores

MOTOR CONTROL EXAMPLE Introduction This article is designed to provide a practical example of software coding of motors for use in Programmable Logic Controllers (PLC). This example can be used for most applications for the control of motors via a PLC including pumps, conveyors, mixers, etc. This article discusses the states a motor can be detected, it control and PLC Software Programming. This example is designed in in the most common PLC Programming Language - Ladder Logic. Digital Inputs For this example we have considered the following Digital Inputs to the PLC. Inputs may be excluded where the signal is not available or not required by your application Symbol AUTO MAN START_PB STOP_PB RESET RUN ESTOP TRIP Description Automatic Selection Manual Selection Manual Start Push-Button Manual Stop Push-Button Alarm Reset Push-Button Motor Running, contactor feedback. Emergency Stop, aux contact from emergency stop circuit. Motor Tripped Signal, aux contact from motor overload. RUNNING STOP TRIPPED STOPPED HEALTHY HEALTHY ON State AUTO MANUAL START -----OFF State ---------------STOP

Notes: For this article we have assumed that the auxiliary contacts for the emergency stop and the motor overload will be ON for the trip condition. The automatic controls have not been shown in this article as these signals will be derived from the sequencing software.

Digital Outputs For this example we have considered the following Digital Inputs to the PLC. Inputs may be excluded where the signal is not available or not required by your application Symbol MOTOR_RUN Description Motor Run Signal ON State RUN OFF State STOP

Note: For this article we have used a single output for the control of the motor.

Motor States From the inputs available the following states of the motor can be derived. We have shown the automatic states in the following table, each state exists for manual mode and the auto text replaced by manual. Symbol Description

Motor Stopped (Symbol either black on a white background else white)

Motor Running

Motor Alarm (Emergency Stop/Failed - symbol can be flashed to draw the operators attention)

Motor Tripped

Control Logic Detecting, Latching and Reporting Alarms The first alarms that will be detected within the logic are Emergency Stop and Tripped. This is simple digital logic. These signals must be hardwired into the motor control circuit, but the software will duplicate the hardwired logic to report the alarm to the operator. Detect and Latch Emergency Stop | ESTOP ESTOP_AL | |---| |-------------+--------------------------------( )---| | | | ESTOP_AL RESET | |---| |------|/|----+ Detect and Latch Motor Overload Trip | TRIP TRIP_AL | |---| |-------------+--------------------------------( )---| | | | TRIP_AL RESET | |---| |------|/|----+ The first two rungs of the above ladder diagram are used to detect and latch the Emergency Stop conditions. When the alarm is detected then the condition is latched until 1. 2. The alarm condition is cleared The operator resets the alarm.

The next alarm condition is detecting that the motor has failed. That is that the PLC has requested for the drive to start but the contactor has not closed. This could be due to a number of reasons, motor isolated, fuse blown etc.

Detect Motor Failed To Start/Stop | MOTOR_ _________________ | RUN RUN |ON DELAY | | |---| |------|/|----+--------------------|TIMER M1_DELAY|-| | MOTOR_ | |TIME 1.0S | | RUN RUN | |_________________| |---|/|------| |----+ Latch Motor Failed To Start/Stop | M1_DELAY MOTOR_AL | |---| |-------------+--------------------------------( )---| | | | MOTOR_AL RESET | |---| |------|/|----+ In the first rung we use a timer to time the conditions when the motor is contactor does not match the required PLC output. That is PLC run output is and the contactor is not closed and visa versa. In the second rung we latch the alarm condition. Combining The Alarms | ESTOP_AL M_ALARM | |---| |--------+-------------------------------------( )---| | | | TRIP_AL | |---| |--------+ | | | MOTOR_AL | |---| |--------+ Here we use simple "OR" logic to combine the alarms, when any one of the alarms are detected the M_ALARM is "ON".

Automatic and Manual Status We use the selection of the automatic and manual for the control of the drive. It is written to ensure that their is a scan difference during change over from automatic to manual so that the drive is stopped. This is used in the Low Level Plant Driver. Automatic Selected | AUTO MAN_SEL AUTO_SEL | |---| |------|/|----+--------------------------------( )---| | Manual Selected | MAN AUTO_SEL MAN_SEL | |---| |------|/|----+--------------------------------( )---| |

Low Level Plant Driver The low level plant driver is the final software which drives the output to the motor having considered all the input output signals. Control Motor | AUTO_SEL AUTO_RUN M_ALARM MOTOR_RUN | |---| |------| |----------------+----|/|--------------( )---| | | | MAN_SEL START_PB STOP_PB | |---| |---+---| |-----+---|/|---+ | | | | | MOTOR_RUN | | +---| |-----+ When Automatic is selected then sequence flag (AUTO_RUN) is used to control the drive. When manual is selected the drive will start when the start push-button is pressed, latched with the output from the PLC (MOTOR_RUN). The drive will continue to run until the stop push-button is pressed. Should any of the alarms be detected then the motor is stopped. The alarm must be reset before the motor can be restarted.

EJEMPLO DE CONTROL DE VALVULAS


Realice en lenguaje KOP y empleando la gua adjunta de seleccin de temporizadores de Step 7, el control del sistema de vlvulas descrito a continuacin.
ENTRADAS DIGITALES Estado ACTIVO ABRIR ABIERTA CERRADO RESET PARAR

Smbolo OPEN_REQ LSO LSC RESET ESTOP

Descripcin Selector de solicitud de apertura de vlvula Final de carrera abierto Final de carrera cerrado Pulsador de cancelacin de alarma Pulsador (botn) de emergencia SALIDAS DIGITALES Estado ACTIVO ABRIENDO

Smbolo V_OPENING

Descripcin Indicacin al panel de operacin de maniobra de apertura en curso Indicacin al panel de operacin de maniobra de cierre en curso Apertura de vlvula

Estado INACTIVO ----------

V_CLOSING OV

CERRANDO ABRIR

---------CERRAR

ESTADOS DE LA VLVULA

La vlvula puede estar en cinco estados diferentes: a) b) c) d) e) cerrada (CERRAR_RET) abrindose abierta (ABRIR_RET) cerrndose Situacin de alarma (ALARMA)

LGICA DE CONTROL

La alarma se puede disparar por las siguientes razones: 1. Pulsador de emergencia 2. Fallo al abrir vlvula 3. Fallo al cerrar vlvula. Para cada posicin de las vlvulas el sistema detecta condiciones de alarma. Estas son: 1. Fallo en apertura La salida de apertura de vlvula est activa (OV=1) y tras 10 segundos no se activ LSO

Estando la vlvula en estado abierto (marca ABRIR_RET automantenida que se activa cuando la vlvula termina de abrirse y se desactiva cuando OV=0), se desactiva LSO durante ms de 1 segundo. La salida de apertura de vlvula est inactiva (OV=0) y tras 10 segundos no se activ LSC Estando la vlvula en estado cerrado (marca CERRAR_RET similar a ABRIR_RET para la maniobra de cierre), se desactiva LSC durante ms de 1 segundo.

2. Fallo en cierre -

La situacin de alarma se mantendr hasta que se cumplan las dos siguientes condiciones: 1. La condicin de disparo de la alarma ya no est presente. y 2. Pulsacin del botn de cancelacin de alarmas.
CONTROL A BAJO NIVEL DE LA VALVULA

La seal OV estar activa cuando el selector del panel de operacin OPEN_REQ est activo y no haya activa ninguna alarma.
PANEL DE INDICACIN/OPERACION

Indicacin mediante V_OPENING y V_CLOSING de la maniobra que se est realizando antes de que sta concluya (suponga que no existen averas).

GUIA DE SELECCION DE TEMPORIZADORES

CONEXION EJEMPLO DE UN TEMPORIZADOR GENERICO EN KOP

You might also like