Documente Academic
Documente Profesional
Documente Cultură
5º Ingeniero de Telecomunicación
Curso 2003/2004
1. Control de motores
2. Control de Válvulas
3. Guía de selección 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
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
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 Running
Motor Alarm (Emergency Stop/Failed - symbol can be flashed to draw the operators
attention)
Motor Tripped
Control Logic
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.
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. The alarm condition is cleared
2. 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".
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
ENTRADAS DIGITALES
Estado
Símbolo Descripción
ACTIVO
OPEN_REQ Selector de solicitud de apertura de válvula ABRIR
LSO Final de carrera abierto ABIERTA
LSC Final de carrera cerrado CERRADO
RESET Pulsador de cancelación de alarma RESET
ESTOP Pulsador (botón) de emergencia PARAR
SALIDAS DIGITALES
Estado Estado
Símbolo Descripción
ACTIVO INACTIVO
Indicación al panel de
V_OPENING operación de maniobra de ABRIENDO ----------
apertura en curso
Indicación al panel de
V_CLOSING operación de maniobra de cierre CERRANDO ----------
en curso
OV Apertura de válvula ABRIR CERRAR
ESTADOS DE LA VÁLVULA
a) cerrada (CERRAR_RET)
b) abriéndose
c) abierta (ABRIR_RET)
d) cerrándose
e) Situación de alarma (ALARMA)
LÓGICA DE CONTROL
Para cada posición de las válvulas el sistema detecta condiciones de alarma. Estas son:
1. Fallo en apertura
- La salida de apertura de válvula está activa (OV=1) y tras 10 segundos no
se activó LSO
ó
- Estando la válvula en estado abierto (marca ABRIR_RET automantenida
que se activa cuando la válvula termina de abrirse y se desactiva cuando
OV=0), se desactiva LSO durante más de 1 segundo.
2. Fallo en cierre
- La salida de apertura de válvula está inactiva (OV=0) y tras 10 segundos no
se activó LSC
ó
- Estando la válvula en estado cerrado (marca CERRAR_RET similar a
ABRIR_RET para la maniobra de cierre), se desactiva LSC durante más de
1 segundo.
La situación de alarma se mantendrá hasta que se cumplan las dos siguientes condiciones:
1. La condición de disparo de la alarma ya no está presente.
y
2. Pulsación del botón de cancelación de alarmas.
PANEL DE INDICACIÓN/OPERACION
Indicación mediante V_OPENING y V_CLOSING de la maniobra que se está realizando antes
de que ésta concluya (suponga que no existen averías).
GUIA DE SELECCION DE TEMPORIZADORES