Documentos de Académico
Documentos de Profesional
Documentos de Cultura
129pub PDF
129pub PDF
1 – Memoria descriptiva
1- MEMORIA DESCRIPTIVA:
I
Memoria Descriptiva
II
Memoria Descriptiva
1.1 – OBJETO.
1.3 – TITULAR.
1.4 – ANTECEDENTES.
La alfalfa utilizada como materia prima proviene de los campos de las comarcas
del Segría, la Noguera, el Valle del Ebro, ...
1
Memoria Descriptiva
1- Tapiz.
4- Quemador.
5- Trommel.
6- Despedregadores.
7- Aspirador.
8- Ciclón.
11- Tajadera.
14- Enfriador.
2
Memoria Descriptiva
22- Empacadora.
1.4.2.1 – Tapiz.
Figura:
Datos Técnicos:
Datos Motor
Potencia motor: 15 kW.
Tensión alimentación: 380 V.
Frecuencia: 50 Hz.
Factor de potencia: 0.85
Intensidad nominal: 28 A.
Velocidad nominal: 1.485 min-1.
3
Memoria Descriptiva
Figura:
Datos Técnicos:
Velocidad 55 min-1.
Datos Motor
Potencia motor: 4 kW.
Tensión alimentación: 380 V.
Frecuencia: 50 Hz.
Factor de potencia: 0.85
Intensidad nominal: 7,5 A.
Velocidad nominal: 1.485 min-1.
4
Memoria Descriptiva
Figura:
Datos Técnicos:
Longitud: 4 m.
Datos Motor
Potencia motor: 9,2 kW.
Tensión alimentación: 380 V.
Frecuencia: 50 Hz.
Factor de potencia: 0.85
Intensidad nominal: 17,25 A.
Velocidad nominal: 1.485 min-1.
1.4.2.4 – Quemador.
1- Entrada de activación.
3- Salida avería.
5
Memoria Descriptiva
Figura:
Datos Técnicos:
1.4.2.5 – Trommel.
6
Memoria Descriptiva
Datos Técnicos:
Longitud: 20 m.
Diámetro: 3,5 m.
Datos Motor
Potencia motor: 18,5 kW.
Tensión alimentación: 380 V.
Frecuencia: 50 Hz.
Factor de potencia: 0.85
Intensidad nominal: 34.7 A.
Velocidad nominal: 1.485 min-1.
Sondas Temperatura:
Temperatura entrada: 0 ÷ 1000º C
Salida sonda: 0 ÷ 10 V c.c.
7
Memoria Descriptiva
1.4.2.6 – Despedregadores.
Para evitar que cualquier cuerpo sólido extraño que acompañe a la alfalfa
(piedras, restos metálicos, ...) puedan dañar la estructura interna del trommel [5]
o el aspirador [7] existen dos receptáculos situados a ambos extremos del
trommel. Todo elemento extraño que es introducido en el trommel [5], por el su
movimiento y peso, tiende a depositarse en ellos.
Cada cierto tiempo por medio de dos pistones neumáticos, se abrirán unas
trampillas que expulsarán al exterior todos los restos depositados.
Figura:
Datos Técnicos:
1.4.2.7 – Aspirador.
Está formado por un motor eléctrico trifásico asíncrono a cuyo eje está acoplada
directamente una hélice de 5 paletas helicoidales, el movimiento de esta hélice
crea una corriente de aire que succiona la alfalfa contenida en el trommel [5].
8
Memoria Descriptiva
Figura:
Datos Técnicos:
1.4.2.8 – Ciclón.
Figura:
9
Memoria Descriptiva
Figura:
Datos Técnicos:
Datos Motor
Potencia motor: 5,5 kW.
Tensión alimentación: 380 V.
Frecuencia: 50 Hz.
Factor de potencia: 0.85
Intensidad nominal: 7,5 A.
Velocidad nominal: 1.485 min-1.
10
Memoria Descriptiva
Figura:
Datos Técnicos:
Longitud: 3 m.
Datos Motor
Potencia motor: 7,5 kW.
Tensión alimentación: 380 V.
Frecuencia: 50 Hz.
Factor de potencia: 0.85
Intensidad nominal: 14 A.
Velocidad nominal: 1.485 min-1.
1.4.2.11 – Tajadera.
Figura:
Ciclón è
ç Sobradero Enfriador è
11
Memoria Descriptiva
Datos Técnicos:
Figura:
Datos Técnicos:
Longitud: 1,5 m.
Datos Motor
Potencia motor: 5,5 kW.
Tensión alimentación: 380 V.
Frecuencia: 50 Hz.
Factor de potencia: 0.85
Intensidad nominal: 10,25 A.
Velocidad nominal: 1.485 min-1.
12
Memoria Descriptiva
Figura:
Datos Técnicos:
Longitud: 1,5 m.
Datos Motor
Potencia motor: 5,5 kW.
Tensión alimentación: 380 V.
Frecuencia: 50 Hz.
Factor de potencia: 0.85
Intensidad nominal: 10,25 A.
Velocidad nominal: 1.485 min-1.
13
Memoria Descriptiva
1.4.2.14 – Enfriador.
Figura:
17
20
15
16
Datos Técnicos:
14
Memoria Descriptiva
Figura:
Datos Técnicos:
Velocidad 55 min-1.
Datos Motor
Potencia motor: 7,5 kW.
Tensión alimentación: 380 V.
Frecuencia: 50 Hz.
Factor de potencia: 0.85
Intensidad nominal: 14 A.
Velocidad nominal: 1.485 min-1.
Está formado por un motor eléctrico trifásico asíncrono a cuyo eje está acoplada
directamente una hélice de 5 paletas helicoidales, el movimiento de esta hélice
crea una corriente de aire que succiona la alfalfa contenida en el enfriador[14].
15
Memoria Descriptiva
Figura:
Datos Técnicos:
16
Memoria Descriptiva
Figura:
Está formado por un motor eléctrico trifásico asíncrono a cuyo eje está acoplada
directamente una hélice de 5 paletas helicoidales, el movimiento de esta hélice
crea una corriente de aire que succiona la alfalfa contenida en la esclusa de finos
[24].
Figura:
Datos Técnicos:
17
Memoria Descriptiva
Figura:
18
Memoria Descriptiva
Figura:
Datos Técnicos:
Datos Motor
Potencia motor: 0,37 kW.
Tensión alimentación: 380 V.
Frecuencia: 50 Hz.
Factor de potencia: 0.88
Intensidad nominal: 0,7 A.
Velocidad nominal: 1.485 min-1.
19
Memoria Descriptiva
Figura:
Datos Técnicos:
Longitud: 1,75 m.
Datos Motor
Potencia motor: 5,5 kW.
Tensión alimentación: 380 V.
Frecuencia: 50 Hz.
Factor de potencia: 0.85
Intensidad nominal: 10,25 A.
Velocidad nominal: 1.485 min-1.
1.4.2.22 – Empacadora.
1- Entrada de activación.
3- Salida avería.
20
Memoria Descriptiva
Figura:
Datos Técnicos:
21
Memoria Descriptiva
Figura:
Datos Técnicos:
Longitud: 5 m.
Anchura: 1,25 m.
Datos Motor
Potencia motor: 1,5 kW.
Tensión alimentación: 380 V.
Frecuencia: 50 Hz.
Factor de potencia: 0.85
Intensidad nominal: 2,8 A.
Velocidad nominal: 1.475 min-1.
22
Memoria Descriptiva
Figura:
Datos Técnicos:
Datos Motor
Potencia motor: 0,37 kW.
Tensión alimentación: 380 V.
Frecuencia: 50 Hz.
Factor de potencia: 0.88
Intensidad nominal: 0,7 A.
Velocidad nominal: 1.485 min-1.
23
Memoria Descriptiva
1- Grupo deshidratador.
2- Grupo enfriador.
Grupo deshidratador:
El trommel está calentado por medio del quemador [4], alcanzado la corriente de
aire en su interior temperaturas de 850º C en la entrada, 360º C en la zona central
y 100º C en la salida.
Dentro del trommel la alfalfa es transportada y calentada por a la corriente de aire
caliente, creada por el aspirador [7], durante aproximadamente 15 minutos la
alfalfa recorrerá todo el trommel a medida que va perdiendo toda el agua que
posee.
24
Memoria Descriptiva
La alfalfa extraída del trommel es transportada por la succión del aspirador hasta
el ciclón [8], allí los gases adquieren una trayectoria helicoidal ascendente, y por
efecto de su mayor densidad, la alfalfa deshidratada cae a la parte baja del ciclón.
La alfalfa es depositada por la esclusa del ciclón [9] en la rosca de salida del
ciclón [10] esta la transporta hasta la tajadera [11] que según su posición la
distribuirá hacia el grupo enfriador o hacia la rosca del sobradero [12].
Por lo general la alfalfa se dirigirá hacía el grupo enfriador, pero en caso de que
este sufra alguna avería la alfalfa será desviada a la rosca del sobradero que la
transportará hasta un patio donde, por medio manuales, la alfalfa será extendida
para lograr su ventilación y evitar que la alta temperatura con la que llega
provoque su fermentación.
Grupo enfriador:
A medida que la alfalfa avanza por el enfriador las paredes de este y la corriente
de aire le van extrayendo el calor. La alfalfa deshidratada es conducida hasta el
ciclón de la aspiración del enfriador [17], allí cae a la parte alta del enfriador
donde una cinta la transporta hasta la salida.
25
Memoria Descriptiva
Durante el proceso de empacado una gran cantidad de producto cae al suelo, este
es recogido por el transporte de cadenas [23], que a su vez lo deposita sobre la
esclusa de finos [24].
Esta cantidad de producto es succionado por el aspirador de finos [18] y enviado
al ciclón de la aspiración de finos [19], allí cae a la parte alta del enfriador, y es
de nuevo enviado a la empacadora.
1- Detectores de giro.
2- Electroválvulas.
3- Contactores.
4- Relés.
5- Protecciones.
6- Fuente de alimentación.
7- Variador de frecuencia.
8- Autómata programable.
9- Armarios.
10-Ordenador PC.
26
Memoria Descriptiva
Figura:
BN/1
+
BK/4
PNP
-
BU/3
Los detectores serán puestos en tensión por la salida del autómata que activa la
máquina controlada.
27
Memoria Descriptiva
1.5.2.2 – Electroválvulas.
Figura:
Y1 Y2
Los cilindros de los despedregadores son de simple efecto, la fuerza ejercida por
el aire comprimido solo actúa en un sentido del movimiento del embolo, el otro
movimiento de embolo tiene lugar por la acción de un muelle incorporado.
28
Memoria Descriptiva
Figura:
Y1
1.5.2.3 – Contactores.
Figura:
A1 1 3 5 13
K1M
A2 2 4 6 14
29
Memoria Descriptiva
1.5.2.4 – Relés.
Figura:
A1 13 23 41 51
K1
A2 14 24 42 52
1.5.2.5 – Protecciones.
• Fusibles.
30
Memoria Descriptiva
Fusibles:
Armario general:
Interruptor diferencial principal – Tetrapolar 380 V, 100 A/300 mA.
Magnetotérmico principal – Tetrapolar 380 V, 100 A.
Magnetotérmico maniobra – Bipolar 220 V, 20 A.
Armario variador:
Interruptor diferencial principal – Tetrapolar 380 V, 63 A/300 mA.
Magnetotérmico principal – Tetrapolar 380 V, 63 A.
Armario enfriador:
Interruptor diferencial principal – Tetrapolar 380 V, 100 A/300 mA.
Magnetotérmico principal – Tetrapolar 380 V, 100 A.
Todos los motores, salvo el del aspirador, estarán protegidos por medio de relés
térmicos.
El aspirador estará protegido por el variador.
Habrá de ponerse a tierra todas las partes metálicas de las máquinas que no se
encuentren sometidas a tensión, a fin de evitar posibles contactos.
31
Memoria Descriptiva
Arranque:
Dado que la potencia del motor del aspirador es muy elevada, 160 kW, debemos
utilizar un sistema más efectivo que un arranque estrella-triángulo para
disminuir las puntas de corriente que se producen durante el arranque.
Regulación de la velocidad:
32
Memoria Descriptiva
33
Memoria Descriptiva
Características:
• Limite de Corriente Rápida (Fast Current Limit, FCL) para operación fiable
libre de saltos.
• Frecuencia de salida (y por lo tanto velocidad del motor) los cuales pueden
ser controlados por:
34
Memoria Descriptiva
• Tiempos de aceleración/deceleración.
• Todos los productos hacen uso del mismo interfaz de usuario estándar de
simple manejo que consiste en botones y display de LEDs.
35
Memoria Descriptiva
36
Memoria Descriptiva
1) Battery compartment.
4) ON/OFF switch.
37
Memoria Descriptiva
10) Interface for analog inputs (EW 40 to EW 54) and for analog output (AW 40).
38
Memoria Descriptiva
39
Memoria Descriptiva
40
Memoria Descriptiva
Módulo de entradas:
Number of inputs 16
Galvanic isolation no
Input voltage L+
- rated value 24 V DC
- ”0” signal 0 to 5 V
- ”1” signal 13 to 30 V
Input protection
- against polarity reversal no, fuse trips
- against overvoltage up to 33 V
Input current at
”1” signal typ. 4.5 mA
Inherent delay
- from ”0” to ”1” typ. 4 ms
- from ”1” to ”0” typ. 3 ms
Length of cable
- unshielded 100 m
EMC/noise immunity to
VDE 801-4, severity level 3 2 kV
Fault LED
(red) on L+/M
interruption
Current consumption
- from +9 V (CPU) typ. 50 mA
Power loss of
the module typ. 4.5 W
41
Memoria Descriptiva
Módulo de salidas:
Number of outputs 8
Galvanic isolation yes (optocoupler)
- in groups of 8
Load voltage L+
- rated value 24 V DC
- permissible range
(including ripple) 20 to 30 V
- value at t<0.5 s 35 V
Residual current at
"0" signal max. 0.5 mA
Output voltage
- at "1" signal max. L+ (- 0.6 V)
Short-circuit
protection short-circuit
protected output with
autom. Switch on when
the short-circuit does not
exist any more
Voltage induced on
circuit interruption Rated insulation voltage
(internal) limited to -15 V (+ 9 V to L+) 24 V AC
- insulation group 2xB
Switching frequency - tested with 500 V AC
- resistive load max. 100 Hz
- inductive load max. 2 Hz Rated insulation voltage
(+ 9 V to ) 12 V AC
Permissible current - insulation group 1xB
of all outputs 6A - tested with 500 V AC
42
Memoria Descriptiva
Transmission Asynchronous
10-bit character frame
11-bit character frame.
LED displays
- TxD (green) Transmitting.
- RxD (green) Receiving.
- RTS (green) Ready to send.
- BATT (yellow) Battery failure.
Back-up battery
Lithium 1/2 AA 3.6 V/850 mAh
Current consumption
from +9 V typ. 140 mA
43
Memoria Descriptiva
Ejemplo:
CIRCUITO
AWL FUK
:U E 32.0 E 32.0
E 32.0 :U E 2.3
:U E 3.2
E 2.3 &
:= A 6.7
E 2.3 E 3.2 A 6.7
E 3.2 KOP
E 32.0 E 2.3 E 3.2 A 6.7
A 6.7
44
Memoria Descriptiva
Operación.
Identificador del parámetro.
:U E 32.0
Parámetro.
45
Memoria Descriptiva
se podrá saltar desde un módulo a otro (anidado), siempre que no superemos los
16 niveles de salto que permite como máximo el autómata.
Otras limitaciones son:
- El salto de un módulo a otro debe ser siempre hacia adelante (ej. Se podrá
saltar de PB1 a PB2, pero no a la inversa).
Tipos De Modulos:
8 kB de longitud máxima.
46
Memoria Descriptiva
8 kB de longitud máxima.
Los módulos DB1 y DB2 se emplean para definir las condiciones internas
del autómata, por lo que no deben emplearse.
1.5.2.9 – Armarios.
Se instalarán 3 armarios:
47
Memoria Descriptiva
• Microsoft Windows 95, Windows 98, Windows NT® 4.0 con Service
Pack 3 o posterior o Windows 2000.
• Monitor de 15 pulgadas.
48
Memoria Descriptiva
Para fijar una norma universal de nombrar y definir los diferentes estados que
puede tener un sistema, la agencia fantasee ADEPA ha desarrollado la guía
GEMMA (Guide d’Etude des Modes de Marches et d’Arrêts).
• En funcionamiento.
• En interrupción o defecto.
La guía GEMMA representa cada una de las cuatro situaciones: sin alimentar, en
funcionamiento, en parada y en interrupción o defecto; mediante sendos
rectángulos-estado y la producción mediante un quinto rectángulo-estado que
interseca con los tres rectángulos-estado principales.
49
Memoria Descriptiva
Cada una de estas situaciones se puede dividir a su vez en otras, de forma que
existen en total 17 posibles estados de funcionamiento.
No todos los procesos precisan de todos estos estados, pero se puede afirmar que
los estados necesarios de cualquier proceso podrán relacionarse con parte de los
que propone la guía GEMMA.
Procedimientos:
50
Memoria Descriptiva
51
Memoria Descriptiva
Una vez definidos los diferentes estados será necesario estudiar las evoluciones
que los unen. Estas uniones corresponden a transiciones entre estados, que
vendrán marcadas por el valor de las variables del sistema.
1.5.3.2 – GRAFCET.
Un Grafcet es una sucesión de etapas. Cada etapa tiene sus acciones asociadas de
forma que cuando aquella etapa está activa se ejecutan estas acciones, pero nunca
cuando la etapa se encuentra desactivada.
Entre dos etapas hay una transición. Una transición es una función booleana que
expresa la condición lógica necesaria para poder pasar la transición y activar la
siguiente etapa.
El cumplimiento de la función no es condición suficiente para pasar la transición,
es necesario además que la etapa anterior esté activa.
52
Memoria Descriptiva
- Secuencia:
- Selección de secuencia:
A partir de una determinada etapa existen dos o más secuencias entre las
cuales es necesario escoger en función de las transiciones. En la selección de
la secuencia es imprescindible que las receptividades asociadas a las
transiciones de selección sean excluyentes, no pueden ser ciertas
simultáneamente.
- Salto de etapas:
53
Memoria Descriptiva
- Repetición de secuencia:
- Paralelismo interpretado:
- Paralelismo interpretado:
El paralelismo interpretado aparece cuando una etapa tiene dos o más salidas
y las transiciones correspondientes no son exclusivas.
- Regla 1: Inicialización.
54
Memoria Descriptiva
Prestaciones:
55
Memoria Descriptiva
1.5.4.1.1 – Comunicación.
La aplicación SCADA se comunicará con el autómata por medio del puerto serie
del ordenador y el procesador de comunicaciones CP 521SI acoplado al
autómata.
La comunicación utilizará como interface física la propia del puerto serie del
ordenador, es decir la RS-232, y como código el ASCII.
56
Memoria Descriptiva
57
Memoria Descriptiva
Filosofía de LabVIEW:
El Panel Frontal es el interfaz que el usuario esta viendo y puede ser totalmente
parecido al instrumento del cual se están recogiendo los datos, de esta manera el
58
Memoria Descriptiva
Además estos Sub-VIs son muy útiles por ejemplo en el campo de cálculos
numéricos complejos que no se encuentran incluidos en las librerías de
LabVIEW.
Se podría decir que en cualquier VI existen dos caras bien diferenciadas: El Panel
Frontal y el Diagrama de Bloques.
Panel frontal:
Un control puede tomar muchas formas, y muchas de estas formas el dibujo real
59
Memoria Descriptiva
El diagrama de bloques:
Esta cara es mucho menos conceptual que el Panel Frontal y para el usuario sería
muy difícil entenderla.
Para realizar la aplicación SCADA primero se crearon todo los Vis encargados
de la comunicación, el control y gestión de datos, la supervisión y gestión de
alarmas, la gestión de los diferentes paneles de control y visualización, los
programas auxiliares, etc.
Una vez todos los módulos fueron unidos la aplicación SCADA fue testeada para
comprobar el correcto acoplamiento de cada uno de sus componentes.
60
Memoria Descriptiva
Pantalla general.
Pantalla deshidratador.
Pantalla enfriador.
61
Memoria Descriptiva
62
Memoria Descriptiva
2- Carpeta especifica.
63
Memoria Descriptiva
7.308.287 ptas.
Siete millones trescientas ocho mil doscientas ochenta y siete pesetas.
46.923,693 €
Cuarenta y seis mil novecientos veinte y tres euros con seiscientos noventa y tres céntimos.
El ingeniero técnico:
64
APLICACIÓN EN LABVIEW PARA EL CONTROL
DE UNA PLANTA DESHIDRATADORA DE
ALFALFA MEDIANTE AUTÓMATA
PROGRAMABLE
2 – Memoria de cálculo
2 – MEMORIA DE CÁLCULO:
I
Memoria de cálculo
II
Memoria de cálculo
III
Memoria de cálculo
IV
Memoria de cálculo
2 – MEMORIA DE CÁLCULO.
1
Memoria de cálculo
SALTO INCONDICIONAL
SALTO CONDICIONAL
RETORNO DE SALTO
LECTURA Y ADAPTACIÓN DE
LAS ENTRADAS ANALÓGICAS
ALARMA
GUIA GEMMA
COMUNICACIÓN
2
Memoria de cálculo
2.1.1.1.4 – Alarma.
2.1.1.1.6 – Comunicación.
Este subprograma realiza la lectura de los tres canales analógicos de entradas del
autómata utilizados en el proceso, además de tratar los valores para su posterior
análisis y envío al ordenador.
3
Memoria de cálculo
2.1.1.1.4 – Alarma.
4
Memoria de cálculo
2.1.1.1.6 – Comunicación.
5
Memoria de cálculo
2.1.2.1 – Entradas.
6
Memoria de cálculo
7
Memoria de cálculo
8
Memoria de cálculo
9
Memoria de cálculo
2.1.2.2 – Salidas.
De igual forma que las entradas, este tipo de variables lo pódenos dividir en 2
grupos:
• Salidas físicas: son las señales enviadas por parte del autómata al
proceso.
• Salidas virtuales: son las señales enviadas por parte del autómata al
ordenador.
10
Memoria de cálculo
11
Memoria de cálculo
12
Memoria de cálculo
13
Memoria de cálculo
14
Memoria de cálculo
15
Memoria de cálculo
Cada pulsador físico (Px) tiene un pulsador virtual asociado (PxS), así las
funciones que realiza un pulsador físico son realizados de igual forma por su
homónimo virtual.
Además de las parejas pulsador físico – virtual existen 4 pulsadores virtuales sin
su correspondiente pareja física, ya que realizan funciones exclusivas de la
aplicación SCADA. Estos pulsadores son el de Prueba de comunicación (PPCS)
el de Cambio en la consigna (PCCS), el de Funcionamiento manual (P3S) y el de
Funcionamiento automático (P11S).
Dado que los pulsadores virtuales carecen de retorno a su estado inicial (NA) es
necesario resetearlos al final del subprograma, así se logra que vuelvan a su
estado inicial.
Existe una excepción a esto que es el pulsador de Parada de emergencia (P5S), ya
que igual que su homónimo físico presenta la característica de enclavamiento,
hay que actuar sobre ellos de nuevo para que vuelvan al estado de reposo.
1
No confundir con los pulsadores virtuales (PPSx, PMSx, PASx y PCSx) que actúan en el subprograma
Funcionamiento Manual.
16
Memoria de cálculo
Este subprograma realiza la lectura de los tres canales analógicos de entradas del
autómata utilizados en el proceso, además de tratar los valores para su posterior
análisis y envío al ordenador.
Está constituido por el módulo FB 2, y es procesado cíclicamente por el
autómata.
En el proceso existen tres funciones analógicas que actúan como entradas para el
autómata:
• Temperatura a la entrada del trommel.
• Temperatura a la salida del trommel.
• Velocidad del aspirador.
Los 4 primeros bits tienen siempre como valor 0, así esta zona es despreciables
desde el punto de vista de almacenamiento de información, por esto el
subprograma una vez leído el valor lo modifica haciendo un desplazamiento de la
17
Memoria de cálculo
18
Memoria de cálculo
Primera función:
19
Memoria de cálculo
Segunda función:
Como el estado de detección de baja velocidad durará un scan del programa sería
imposible informar sobre él al ordenador, así no podríamos analizar este tipo de
suceso en el programa SCADA disminuyendo nuestro control sobre el proceso.
Para evitarlo deberemos de utilizar unas marcas auxiliares de memoria que
almacenarán las detecciones de baja velocidad y así podremos analizar estos
datos en el programa SCADA.
La forma de lograrlo es muy sencilla: asociamos el estado negado de los
resultados obtenidos con el anterior tratamiento (M 72.x) a unas marcas
auxiliares (M 94.x) que enviaremos al ordenador. Como la asociación es por una
acción de set el estado de estas marcas permanecerá hasta que no sean reseteadas,
esto sucederá cuando se accione uno de los siguientes pulsadores (tanto físico
como virtual):
• Alarma tratada.
20
Memoria de cálculo
PB 1 – Alarma general:
Para desactivar la alarma se actuará sobre los pulsador (tanto virtual como físico)
Alarma Tratada, desactivándose a la vez las señalizaciones luminosa y acústica.
Los pulsadores de reset de las señalizaciones actúan de igual forma con la alarma
y su respectiva señalización.
FB 4 – Alarma deshidratador:
En este módulo se analizan todas las causas que pueden representar un peligro
para la actividad del grupo deshidratador, así se analiza el estado de:
• Relés térmicos.
• Detectores de giro.
• Finales de carrera de inspección.
• Detectores de avería.
• Sondas de temperatura.
• Temporizador “Watchdog” del arranque
del grupo deshidratador.
21
Memoria de cálculo
FB 5 – Alarma enfriador:
En este módulo se analizan todas las causas que pueden representar un peligro
para la actividad del grupo enfriador, así se analiza el estado de:
• Relés térmicos.
• Detectores de giro.
• Finales de carrera de inspección.
• Detectores de avería.
• Temporizador “Watchdog” del arranque
del grupo enfriador.
22
Memoria de cálculo
23
Memoria de cálculo
1- Etapa F4 Arranque grupo deshidratador, una vez que todas las máquinas del
grupo enfriador están activas y no están activas las del grupo deshidratador,
esto último indicado por la conformidad del quemador (E 75.7).
2- Etapa F1 Producción con enfriador, una vez que todas las máquinas del
grupo enfriador están activas y también están activas las del grupo
deshidratador.
1- Etapa F1 Producción con enfriador, una vez que todas las máquinas del
grupo deshidratador están activas y también están activas las del grupo
enfriador, esto último indicado por la conformidad de la empacadora (E 75.6).
2- Etapa F2 Producción sin enfriador, una vez que todas las máquinas del grupo
deshidratador están activas y no están activas las del grupo enfriador.
24
Memoria de cálculo
planta de forma individual por medio de sus pulsadores (PMS1, ..., PMS23;
PPS1, ..., PPS21; PAS1, PAS2; PCS1 y PCS2).
25
Memoria de cálculo
26
m
Memoria de cálculo
r
Guía GEMMA, transiciones funcionales:
r
r
r
a
a
a
a
l
l
l
l
A
A
A
A
o
o
o
r
r
o
a
a
o
r
P
P
o
a
P
o
P
27
.
Memoria de cálculo
7
Guía GEMMA, transiciones operativas:
4
7
*
*
E
E
M
*
*
E
E
M
M
M
M
M
28
Memoria de cálculo
Este módulo contiene el Grafcet que controla la puesta en marcha de todas las
máquinas que forman el grupo enfriador.
La puesta en marcha de las máquinas se realiza de forma secuencial, así se
reduce las puntas de intensidad de arranque a la vez que vaciamos el circuito de
posibles restos de producto.
Este arranque utiliza una secuencia inversa a la de la parada, las máquinas al final
de la línea de producción son las primeras en ponerse en marcha y, por el
contrario, las máquinas en cabeza de la línea de producción son conectadas al
final.
Grafcet nivel 1:
29
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
30
Memoria de cálculo
Este módulo contiene el Grafcet que controla la puesta en marcha de todas las
máquinas que forman el grupo deshidratador.
La puesta en marcha de las máquinas se realiza de forma secuencial, así se
reduce las puntas de intensidad de arranque a la vez que vaciamos el circuito de
posibles restos de producto.
Este arranque utiliza una secuencia inversa a la de la parada, las máquinas al final
de la línea de producción son las primeras en ponerse en marcha y, por el
contrario, las máquinas en cabeza de la línea de producción son conectadas al
final.
La transición que sigue a la etapa inicial consiste en una bifurcación con dos
posibles caminos:
El aspirador debe activarse inicialmente a una velocidad de 1.370 min-1, etapa 13,
para permitir al trommel adquirir la temperatura ideal para desecar la alfalfa.
Una vez el trommel ha adquirido temperatura, etapa 15, podremos aumentar la
velocidad del aspirador hasta las 2.300 min-1, considerada la velocidad ideal para
el proceso.
31
Memoria de cálculo
Grafcet nivel 1:
32
Memoria de cálculo
Grafcet nivel 2:
33
Memoria de cálculo
Grafcet nivel 3:
34
Memoria de cálculo
Este módulo realiza funciones sencillas, por lo que no haremos uso de ningún
Grafcet:
35
Memoria de cálculo
Al igual que el anterior, este módulo realiza funciones sencillas, por lo que no
haremos uso de ningún Grafcet:
36
Memoria de cálculo
Este módulo contiene los Grafcets que controlan las 13 posibles paradas de
emergencia. Estas paradas dependen del estado de los elementos que componen
la planta.
En total se han desarrollado 16 Grafcets para el control de la planta ante una
posible emergencia:
Grafcet nivel 1:
37
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
38
Memoria de cálculo
Grafcet nivel 1:
39
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
40
Memoria de cálculo
Grafcet nivel 1:
Grafcet nivel 2:
41
Memoria de cálculo
Grafcet nivel 3:
42
Memoria de cálculo
Este Grafcet evaluará las condiciones que provocarían una desactivación directa
del aspirador de finos, la esclusa de finos y el transporte de cadenas.
Así cualquier situación que represente un peligro para la integridad de estas
máquinas provocará como reacción la activación de esta parada.
Está parada no afectará al resto de máquinas ya que dentro del grupo enfriador
estas tres forman un subgrupo de funcionamiento complementario al resto.
En cambio se verá afectada por la parada de emergencia 2 y 0.
Grafcet nivel 1:
Grafcet nivel 2
43
Memoria de cálculo
Grafcet nivel 3:
44
Memoria de cálculo
Este Grafcet evaluará las condiciones que provocarían una desactivación directa
de la empacadora, la esclusa del enfriador, el enfriador y la rosca salida
enfriador.
Así cualquier situación que represente un peligro para la integridad de estas
máquinas provocará como reacción la activación de esta parada.
Está parada afectará directamente a las paradas de emergencia 1, 3, 4, y 5; y es
afectada por la parada de emergencia 0.
Grafcet nivel 1:
Grafcet nivel 2:
45
Memoria de cálculo
Grafcet nivel 3:
46
Memoria de cálculo
Este Grafcet evaluará las condiciones que provocarían una desactivación directa
del aspirador del enfriador.
Así cualquier situación que represente un peligro para la integridad de esta
máquina provocará como reacción la activación de esta parada.
Está parada afectará directamente a las paradas de emergencia 4, y 5; y es
afectada por la parada de emergencia 2 y 0.
Grafcet nivel 1:
Grafcet nivel 2:
47
Memoria de cálculo
Grafcet nivel 3:
48
Memoria de cálculo
Este Grafcet evaluará las condiciones que provocarían una desactivación directa
del erizo del enfriador.
Así cualquier situación que represente un peligro para la integridad de esta
máquina provocará como reacción la activación de esta parada.
Está parada afectará directamente a la parada de emergencia 5; y es afectada por
las paradas de emergencia 2, 3 y 0.
Grafcet nivel 1:
Grafcet nivel 2:
49
Memoria de cálculo
Grafcet nivel 3:
50
Memoria de cálculo
Este Grafcet evaluará las condiciones que provocarían una desactivación directa
de la rosca de alimentación del enfriador.
Así cualquier situación que represente un peligro para la integridad de esta
máquina provocará como reacción la activación de esta parada.
Está parada no afecta a otras paradas; y es afectada por las paradas de
emergencia 2, 3, 4 y 0.
Grafcet nivel 1:
Grafcet nivel 2:
51
Memoria de cálculo
Grafcet nivel 3:
52
Memoria de cálculo
Este Grafcet evaluará las condiciones que provocarían una desactivación directa
del tapiz, el erizo del tapiz, la rosca de salida del tapiz y el quemador .
Así cualquier situación que represente un peligro para la integridad de estas
máquinas provocará como reacción la activación de esta parada.
Está parada no afecta a otras paradas; y es afectada por las paradas de
emergencia 11, 10, 9, 7 y 0.
Grafcet nivel 1:
Grafcet nivel 2:
53
Memoria de cálculo
Grafcet nivel 3:
54
Memoria de cálculo
Este Grafcet evaluará las condiciones que provocarían una desactivación directa
del trommel.
Así cualquier situación que represente un peligro para la integridad de esta
máquina provocará como reacción la activación de esta parada.
Está parada afecta a la parada de emergencia 6; y es afectada por las paradas de
emergencia 11, 10, 9 y 0.
Grafcet nivel 1:
Grafcet nivel 2:
55
Memoria de cálculo
Grafcet nivel 3:
56
Memoria de cálculo
Este Grafcet evaluará las condiciones que provocarían una desactivación directa
de la alimentación del variador.
Esto ocurrirá cuando se detecte que se ha pulsado uno de los paros de
emergencia.
Está parada no afecta ni es afectada por otras paradas.
Grafcet nivel 1:
Grafcet nivel 2:
57
Memoria de cálculo
Grafcet nivel 2:
58
Memoria de cálculo
Este Grafcet evaluará las condiciones que provocarían una desactivación directa
del aspirador.
Así cualquier situación que represente un peligro para la integridad de esta
máquina provocará como reacción la activación de esta parada.
Está parada afecta a la parada de emergencia 6 y 7; y es afectada por las
paradas de emergencia 11, 10, y 0.
Grafcet nivel 1:
Grafcet nivel 2:
59
Memoria de cálculo
Grafcet nivel 3:
60
Memoria de cálculo
Este Grafcet evaluará las condiciones que provocarían una desactivación directa
de la esclusa del ciclón.
Así cualquier situación que represente un peligro para la integridad de esta
máquina provocará como reacción la activación de esta parada.
Está parada afecta a la parada de emergencia 6, 7, y 9; y es afectada por las
paradas de emergencia 11 y 0.
Grafcet nivel 1:
Grafcet nivel 2:
61
Memoria de cálculo
Grafcet nivel 3:
62
Memoria de cálculo
Este Grafcet evaluará las condiciones que provocarían una desactivación directa
de la rosca de salida del ciclón.
Así cualquier situación que represente un peligro para la integridad de esta
máquina provocará como reacción la activación de esta parada.
Está parada afecta a la parada de emergencia 6, 7, 9 y 10; y es afectada por la
parada de emergencia 0.
Grafcet nivel 1:
Grafcet nivel 2:
63
Memoria de cálculo
Grafcet nivel 3:
64
Memoria de cálculo
Este Grafcet evaluará las condiciones que provocarían una desactivación directa
de la rosca del sobradero.
Así cualquier situación que represente un peligro para la integridad de esta
máquina provocará como reacción la activación de esta parada.
Está parada no afecta a ninguna otra, y es afectada por la parada de
emergencia 0.
Grafcet nivel 1:
Grafcet nivel 2:
65
Memoria de cálculo
Grafcet nivel 3:
66
Memoria de cálculo
Grafcet nivel 1:
Grafcet nivel 2:
67
Memoria de cálculo
Grafcet nivel 3:
68
Memoria de cálculo
_____________________
NOTA: En la siguiente figura se indica la estructura los Grafcets de nivel 1 ya que esta es
idéntica para todos.
_____________________
69
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
70
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
71
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
72
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
73
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
74
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
75
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
76
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
77
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
78
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
79
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
80
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
81
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
82
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
83
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
84
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
85
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
86
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
87
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
88
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
89
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
90
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
91
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
92
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
93
Memoria de cálculo
En la etapa inicial del Grafcet se desactivan el tapiz, el erizo del tapiz, la rosca de
salida del tapiz y el quemador finalizando la entrada de materia prima al circuito.
La transición que sigue a la etapa inicial consiste en una bifurcación con dos
posibles caminos:
1- Sí la parada ha sido solicitada por los pulsadores de paro se realiza una parada
temporizada de la planta para lograr un vaciado total de producto.
94
Memoria de cálculo
Grafcet nivel 1:
95
Memoria de cálculo
Grafcet nivel 2:
96
Memoria de cálculo
Grafcet nivel 2:
E 75.7 * M 90.5
97
Memoria de cálculo
Este módulo contiene un Grafcet que realizará una evaluación del estado de la
planta y según el resultado se realizará una parada controlada de todas las
máquinas para lograr vaciar de producto el circuito.
Como esta etapa de la guía GEMMA viene precedida por las etapas parada de
emergencia (D1) o funcionamiento manual (F5) las condiciones de
funcionamiento de la planta pueden ser muy varibles, y será complicado la
selección de la mejor secuencia de paro posible.
Para lograr una secuencia eficaz se ha decidido que esta venga marcada por la
presencia de producto en el circuito y su destino. Así el estado de la rosca del
sobradero, de la empacadora o del sensor de nivel de esta marcarán la sucesión
de activación de etapas.
98
Memoria de cálculo
Grafcet nivel 1:
99
Memoria de cálculo
Grafcet nivel 2:
100
Memoria de cálculo
Grafcet nivel 3:
101
Memoria de cálculo
2.1.2.8.10 - PB 12 Salidas:
Este módulo contiene los Grafcets que controlan las salidas que activan los
elementos de la planta. Cada elemento tiene un Grafcet que controla la salida o
salidas que lo activan.
102
Memoria de cálculo
l D
l D
103
Memoria de cálculo
l KlM KDM
l D
Grafcets nivel 3:
104
Memoria de cálculo
Grafcets nivel 3:
Grafcets nivel 3:
105
Memoria de cálculo
Grafcets nivel 1:
Grafcets nivel 2:
Grafcets nivel 2:
106
Memoria de cálculo
Grafcets nivel 1:
Se ha accionado el pulsador
virtual de cierre de los
despedregadores o ha
transcurrido la temporización
de apertura o está activa la
etapa 31.
Grafcets nivel 2:
Grafcets nivel 3:
107
Memoria de cálculo
Grafcets nivel 3:
Grafcets nivel 3:
108
Memoria de cálculo
Dentro de este grupo encontramos los Grafcets que controlan el estado de las
salidas conectadas al variador y encargadas de fijar las condiciones de
funcionamiento del aspirador.
Grafcets nivel 1 y 2:
109
Memoria de cálculo
110
Memoria de cálculo
Grafcets nivel 3:
Grafcets nivel 1:
111
Memoria de cálculo
Grafcets nivel 2:
Grafcets nivel 3:
Grafcets nivel 3:
112
Memoria de cálculo
Grafcets nivel 3:
Grafcets nivel 3:
113
Memoria de cálculo
Grafcets nivel 3:
Grafcets nivel 3:
114
Memoria de cálculo
Grafcets nivel 3:
Grafcets nivel 3:
115
Memoria de cálculo
Grafcets nivel 3:
Grafcets nivel 3:
116
Memoria de cálculo
Grafcets nivel 3:
Grafcets nivel 3:
117
Memoria de cálculo
Grafcets nivel 1:
Grafcets nivel 2:
Grafcets nivel 2:
118
Memoria de cálculo
Grafcet nivel 1:
119
Memoria de cálculo
Grafcets nivel 2:
Grafcets nivel 3:
120
Memoria de cálculo
Grafcet nivel 1:
Grafcet nivel 2:
121
Memoria de cálculo
Grafcet nivel 3:
Grafcet nivel 1:
122
Memoria de cálculo
Grafcet nivel 2:
Grafcet nivel 3:
123
Memoria de cálculo
2.1.2.8.11 - PB 13 Despedregadores:
124
Memoria de cálculo
Desplazamiento
125
Memoria de cálculo
PB 3 – Comunicación.
FB 6 – CP-Parámetros.
FB 7 – Pulso.
FB 8 – Distribuidor.
FB 9 – Enviar.
FB 10 – Recibir.
FB 14 – Preparación datos bloque 1.
FB 15 – Preparación datos bloque 2.
FB 16 – Preparación datos bloque 3.
2.1.2.9.1 - PB 3 Comunicación:
Este módulo gestiona los saltos a los demás módulos y controla el valor de la
marca M 90.4 Comunicación con el ordenador activa.
126
Memoria de cálculo
2.1.2.9.2 - FB 6 CP-Parámetros:
Este módulo solo se leerá una vez y su función será la de cargar en el CP 521 SI
los valores de configuración para la comunicación:
Data format: Este valor indica el formato de cada byte de comunicación, a cada
byte de información se le añade 1 bit de Start, 1 bit de paridad y 1 bit de Stop.
127
Memoria de cálculo
Message length: Tamaño, en bytes, del paquete de datos que se recibirá del
ordenador.
2.1.2.9.3 - FB 7 Pulso:
Este módulo crea un pulso de un scan cada 2 segundos (M 161.0), este pulso será
utilizado por el módulo FB 8 Distribuidor para iniciar el módulo FB 9 Enviar o
FB 10 Recibir. Estos 2 segundos serán el periodo entre envíos de datos al
ordenador; dicho de otro modo, la información enviada al SCADA será
refrescada cada 2 segundos.
2.1.2.9.4 - FB 8 Distribuidor:
128
Memoria de cálculo
2.1.2.9.5 - FB 9 Enviar:
Nº DE BIT
Nº DE BYTE
0 1 2 3 4 5 6 7
0 A 32.0 A 32.1 A 32.2 A 32.3 A 32.4 A 32.5 A 32.6 A 32.7
1 A 33.0 A 33.1 A 33.2 A 33.3 A 5.0 A 5.3 A 5.4 A 5.7
2 E 74.0 E 74.1 E 74.2 E 74.3 E 74.4 E 74.5 E 74.6 E 74.7
3 E 75.0 E 75.1 E 75.2 E 75.3 E 75.4 E 75.5 E 75.6 E 75.7
4 E 76.0 E 76.1 E 76.2 E 76.3 E 76.4 E 76.5 E 76.6 E 76.7
5 E 77.0 E 77.1 E 77.2 E 77.3 E 77.4 E 77.5 E 77.6 E 77.7
6 E 78.0 E 78.1 E 78.2 E 78.3 E 78.4 E 78.5 E 78.6 E 78.7
7 E 79.0 E 79.1 E 79.2 E 79.3 E 79.4 E 79.5 E 79.6 E 79.7
8 A 6.2 A 6.5 A 7.0 A 7.3 A 7.6
9 M W 64
10 A 7.7 A 8.2 A 8.5 A 8.6 A 9.1
11 M W 66
12 A 9.2 A 9.5 A 9.6 E 33.7 E 32.4
13 M W 68
14 M 101.0 E 73.6 E 73.7 T8 T9 M 106.1 M 80.4 M 108.0
15 M 100.0 M 100.1 M 100.2 M 100.3 M 100.4 M 100.5 M 100.6 M 100.7
16 M 94.0 M 94.1 M 94.2 M 94.3 M 94.4 M 94.5 M 94.6 M 94.7
17 M 95.0 M 95.1 M 95.2 M 95.3 M 95.4 M 95.5 X X
X – Datos irrelevantes
129
Memoria de cálculo
Fu 8 Du 144 D 198
η= = ; D= = = 198 bits a enviar ; t = = = 0,020625 s = 20,625 ms
F 11 η 8 v 9600
11
Donde:
η = Relación entre bits de datos y el total de bits por carácter.
Fu = Bits de datos por carácter.
F = Bits de Data format.
Du = Bits de datos a enviar, 18 bytes x 8 bits/byte = 144 bits.
D = Bits totales a enviar.
v = Velocidad de transmisión (9.600 baudios).
t = Tiempo en realizar el envío CP 521 SI - Ordenador.
130
Memoria de cálculo
2.1.2.9.6 - FB 10 Recibir:
El ordenador envía al autómata, por medio del CP 521 SI, los siguientes 12 bytes
de datos:
Nº DE BIT
Nº DE BYTE
0 1 2 3 4 5 6 7
0 P9S P10S P11S X X X PPCS PCCS
1 P1S P2S P3S P4S X P6S P7S P8S
2
EA1S
3
4 PMS5 PPS5 PAS1 PCS1 PMS6 PPS6 PAS2 PCS2
5 PMS1 PPS1 PMS2 PPS2 PMS3 PPS3 PMS4 PPS4
6 PMS11 PPS11 PMS12 PPS12 PMS13 PMS14 PMS15 PPS13
7 PMS7 PPS7 PMS8 PPS8 PMS9 PPS9 PMS10 PPS10
8 PMS20 PPS18 PMS21 PPS19 PMS22 PPS20 PMS23 PPS21
9 PMS16 PPS14 PMS17 PPS15 PMS18 PPS16 PMS19 PPS17
10 X X X X X X X X
11 P5S X X X X X X X
X – Datos irrelevantes
131
Memoria de cálculo
Fu 8 Du 96 D 132
η= = ; D= = = 132 bits a enviar ; t= = = 0,01375 s = 13,75 ms
F 11 η 8 v 9600
11
Donde:
η = Relación entre bits de datos y el total de bits por carácter.
Fu = Bits de datos por carácter.
F = Bits de Data format.
Du = Bits de datos a recibir, 12 bytes x 8 bits/byte = 96 bits.
D = Bits totales a enviar.
v = Velocidad de transmisión (9.600 baudios).
t = Tiempo en realizar el envío Ordenador – CP 521 SI.
132
Memoria de cálculo
133
Memoria de cálculo
2.1.2.10.1 – OB 1:
1- Adaptación de pulsadores.
4- Alarma.
5- Guía GEMMA.
6- Comunicación.
2.1.2.10.2 – OB 21:
Este módulo se ejecuta una sola vez y en primer lugar después de un rearranque:
STOP → RUN.
En nuestro caso activa las etapa inicial de la guía GEMMA y la de los Grafcets
de Salida.
134
Memoria de cálculo
2.1.2.10.3 – OB 22:
135
Memoria de cálculo
AI 0:
Este valor indica que el autómata no lee ninguna entrada analógica, como
utilizamos las 3 primeras entradas cambiaremos este valor por el de AI 3.
T 128:
Este valor indica la cantidad de temporizadores internos que son tratados por el
autómata, por defecto son tratados los 128 temporizadores de los que dispone.
136
Memoria de cálculo
2.1.3.1 – OB 21.
SEGMENTO 1
:NOP 1
:S M 100.0 Activar Estado Inicial GEMMA.
:S M 200.0 Activar Etapa inicial GRAFCETS Salidas.
:
:
:BE
2.1.3.2 – OB 22.
SEGMENTO 1
:SPA OB 21 Módulo conexión manual (STOP → RUN).
:
:
:BE
2.1.3.3 – OB 1.
SEGMENTO 1
137
Memoria de cálculo
138
Memoria de cálculo
139
Memoria de cálculo
SEGMENTO 1
:L EW 40 Cargamos el canal 0, correspondiente a la
:SRW 4 temperatura a la entrada del Trommel, se
:T MW 64 adapta y es guardado.
:
:
:L EW 42 Cargamos el canal 1, correspondiente a la
:SRW 4 temperatura a la salida del Trommel, se
:T MW 66 adapta y es guardado.
:
:
:L EW 44 Cargamos el canal 2, correspondiente a la
:SRW 4 velocidad del aspirador, se adapta y es
:T MW 68 guardado.
:
:
:L MW 68 ¿Velocidad del Aspirador
:L KH 019A mayor de
:>F 1200 min-1?.
:S M 90.0 Activar marca indicativa.
:
:L MW 68 ¿Velocidad del Aspirador
:L KH 0311 mayor de
:>F 2300 min-1?.
:S M 90.1 Activar marca indicativa.
:
:L MW 66 ¿Temperatura Salida
:L KH 011C Trommel mayor
:>F de 90º C?.
:S M 90.2 Activar marca indicativa.
:
:L MW 66 ¿Temperatura Entrada
:L KH 035C Trommel mayor
:>F de 840º C?.
:S M 90.2 Activar marca indicativa.
:
:
:BE
140
Memoria de cálculo
141
Memoria de cálculo
142
Memoria de cálculo
2.1.3.7 – PB 1 Alarma.
SEGMENTO 1
:SPA FB 4 Salto al módulo Alarma Deshidratador.
:
:UN M 100.2 Guía GEMMA, Producción Sin Enfriador.
:SPB FB 5 Salto al módulo Alarma Enfriador.
:
:U M 108.1 Alarma Deshidratador.
:O M 108.2 Alarma Enfriador.
:S M 108.0 Activar Alarma General.
:
:U M 108.0 Alarma General.
:S M 91.1 Activar Marca Alarma Luminosa.
:S M 91.2 Activar Marca Alarma Acústica.
:
:U M 80.7 Reset Señalización Luminosa adaptado.
:R M 91.1 Desactivar Marca Alarma Luminosa.
:R M 108.0 Desactivar Alarma General.
:S M 91.3 Activar marca auxiliar Alarma Luminosa.
:
:U M 80.6 Reset Señalización Acústica adaptado.
:R M 91.2 Desactivar Marca Alarma Acústica.
:R M 108.0 Desactivar Alarma General.
:S M 91.4 Activar marca auxiliar Alarma Acústica.
:
:U M 80.5 Alarma Tratada adaptada.
:R M 108.0 Desactivar Alarma General.
:R M 91.1 Desactivar Marca Alarma Luminosa.
:R M 91.2 Desactivar Marca Alarma Acústica.
:
:U M 80.4 Paro Emergencia adaptado.
:UN M 91.3 Marca auxiliar Alarma Luminosa.
:S M 91.1 Activar Marca Alarma Luminosa.
:
:U M 80.4 Paro Emergencia adaptado.
:UN M 91.4 Marca auxiliar Alarma Acústica.
:S M 91.2 Activar Marca Alarma Acústica.
:
:UN M 80.4 Paro Emergencia adaptado.
:U M 91.3 Marca auxiliar Alarma Luminosa.
:R M 91.3 Desactivar marca auxiliar Alarma Luminosa.
:
:UN M 80.4 Paro Emergencia adaptado.
143
Memoria de cálculo
144
Memoria de cálculo
145
Memoria de cálculo
:O
:U M 106.1 Emergencia temperatura Trommel.
:U E 74.3 Conformidad Trommel.
:
:O T 8 Temporizador Watchdog Arranque Deshi.
:
:O
:UN E 78.4 Averia Aspirador-Variador.
:U E 78.1 Conformidad Contactor Variador.
:
:ON M 72.0 D.G. Adaptado Tapiz.
:
:O
:U E 76.0 RT. Tapiz.
:U E 74.0 Conformidad Tapiz..
:
:ON M 72.1 D.G. Adaptado Erizo Tapiz
:
:O
:U E 76.1 R.T. Erizo Enfriador.
:U E 74.1 Conformidad Erizo Enfriador.
:
:ON M 72.2 D.G. Adaptado Erizo Enfriador.
.
:O
:U E 76.2 R.T. R.S. Tapiz.
:U E 74.2 Conformidad R.S. Tapiz.
:
:O
:U E 79.3 F.C. Inspección R.S. Tapiz.
:U E 74.2 Conformidad R.S. Tapiz.
:
:ON M 72.3 D.G. Adaptado Trommel.
:
:O
:U E 76.3 R.T. Trommel.
:U E 74.3 Conformidad Trommel.
:
:O
:U E 79.4 F.C. Inspección Ciclón.
146
Memoria de cálculo
147
Memoria de cálculo
148
Memoria de cálculo
:
:O
:U E 77.3 R.T. Aspirador Finos.
:U E 78.2 Conformidad Aspirador Finos.
:
:ON M 73.2 D.G. Adaptado Esclusa Enfriador.
.
:O
:U E 77.4 R.T. Esclusa Enfriador.
:U E 75.2 Conformidad Esclusa Enfriador.
:
:ON M 73.3 D.G. Adaptado R.S. Enfriador.
:
:O
:U E 77.5 R.T. R.S. Enfriador.
:U E 75.3 Conformidad R.S. Enfriador.
:
:O
:U E 33.7 Averia Empacadora.
:U E 75.6 Conformidad Empacadora.
:
:ON M 73.4 D.G. Adaptado Transporte Cadenas.
:
:O
:U E 77.6 R.T. Transporte Cadenas.
:U E 75.4 Conformidad Transporte Cadenas.
:
:ON M 73.5 D.G. Adaptado Esclusa Finos.
:
:O
:U E 77.7 R.T. Esclusa Finos.
:U E 75.5 Conformidad Esclusa Finos.
:
:= M 108.2 Activar Alarma Enfriador.
:
:
:BE
149
Memoria de cálculo
150
Memoria de cálculo
151
Memoria de cálculo
:
:U M 100.1 Marca asociada a Producción con Enfriador.
:U(
:O M 80.1 01 Paro General adaptado.
:O M 90.5 01 Alarma Nivel Empacadora.
:) 01
:S M 100.5 Activar Parada Normal o Automática.
:R M 100.1 Desact. Producción con Enfriador.
:
:***
152
Memoria de cálculo
153
Memoria de cálculo
154
Memoria de cálculo
SEGMENTO 1
:UN M 102.0 Etapa 0 Grafcet.
:UN M 102.1 Etapa 1 Grafcet.
:UN M 102.2 Etapa 2 Grafcet.
:UN M 102.3 Etapa 3 Grafcet.
:S M 102.0 Activar etapa 0 Grafcet.
:
:U M 102.0 Etapa 0 Grafcet.
:U E 75.5 Conformidad Esclusa Finos.
:U E 78.2 Conformidad Aspirador Finos.
:U A 9.4 Salida Aspirador Finos ∆.
:S M 102.1 Activar etapa 1 Grafcet.
:R M 102.0 Desact. etapa 0 Grafcet.
:
:U M 102.1 Etapa 1 Grafcet.
:U E 75.2 Conformidad Esclusa Enfriador.
:U E 75.3 Conformidad R. S. Enfriador.
:U E 75.4 Conformidad Transporte Cadenas.
:U E 75.6 Conformidad Empacadora.
:U A 9.0 Salida R.S. Enfriador ∆.
:S M 102.2 Activar etapa 2 Grafcet.
:R M 102.1 Desact. etapa 1 Grafcet.
:
:U M 102.2 Etapa 2 Grafcet.
:U E 75.0 Conformidad Enfriador.
:U E 75.1 Conformidad Erizo Enfriador.
:U E 78.3 Conformidad Aspirador Enfriador.
:U A 8.1 Salida Erizo Enfriador ∆.
:U A 8.4 Salida Aspirador Enfriador ∆.
:S M 102.3 Activar etapa 3 Grafcet.
:R M 102.2 Desact. etapa 2 Grafcet.
:
:
:BE
155
Memoria de cálculo
SEGMENTO 1
:U M 102.3 Etapa 3 Grafcet Arranque Enfriador.
:R M 102.3 Desact. Etapa 3 Grafcet Arranque Enf.
:
:UN M 102.5 Etapa 10 Grafcet.
:UN M 102.6 Etapa 11 Grafcet.
:UN M 102.7 Etapa 12 Grafcet.
:UN M 103.0 Etapa 13 Grafcet.
:UN M 103.1 Etapa 14 Grafcet.
:UN M 103.2 Etapa 15 Grafcet.
:UN M 103.3 Etapa 16 Grafcet.
:UN M 103.4 Etapa 17 Grafcet.
:S M 102.5 Activar etapa 10 Grafcet.
:
:U M 102.5 Etapa 10 Grafcet.
:UN E 75.6 Conformidad Empacadora.
:S M 102.6 Activar etapa 11 Grafcet.
:R M 102.5 Desact. etapa 10 Grafcet.
:
:U M 102.5 Etapa 10 Grafcet.
:U E 75.6 Conformidad Empacadora.
:S M 102.7 Activar etapa 12 Grafcet.
:R M 102.5 Desact. etapa 10 Grafcet.
:
:U M 102.6 Etapa 11 Grafcet.
:U E 74.6 Conformidad R. Sobradero.
:U E 79.1 F. C. Tajadera Sobradero abierta.
:U A 7.2 Salida R. S. Sobradero ∆.
:S M 102.7 Activar etapa 12 Grafcet.
:R M 102.6 Desact. etapa 11 Grafcet.
:
:U M 102.7 Etapa 12 Grafcet.
:U E 74.4 Conformidad Esclusa Ciclón.
:U E 74.5 Conformidad R. S. Ciclón.
:U E 78.1 Conformidad Alimentación Variador.
:U A 6.4 Salida Esclusa Ciclón ∆.
:U A 6.7 Salida R. S. Ciclón ∆.
:S M 103.0 Activar etapa 13 Grafcet.
:R M 102.7 Desact. etapa 12 Grafcet.
:
:U M 103.0 Etapa 13 Grafcet.
:U M 90.0 Velocidad del Aspirador > 1200 min-1.
156
Memoria de cálculo
157
Memoria de cálculo
SEGMENTO 1
:UN M 103.4 Etapa 17 Grafcet Arranque Deshidratador.
:SPB =M001
:L KH 3110 Cte. Velocidad aspirador = 2.300 min-1
:T MW 146
:
M001 :U M 90.4 Comunicación con Ordenador activa.
:U A 32.3 Salida Anular Consig. Analógica.
:= M 90.6 Activar Consigna Analógica.
:
:U M 102.3 Etapa 3 Grafcet Arranque Enfriador.
:R M 102.3 Desact. etapa 3 Grafcet Arranque Enfriador.
:
:U M 103.4 Etapa 17 Grafcet Arranque Deshidratador.
:R M 103.4 Desact. etapa 17 Grafcet Arranque Deshidra.
:
:
:U M 100.1 GEMMA Estado Producción con Enfriador.
:L KT 120.3 Tiempo 1200 seg.
:SE T 1 Temporización espera carga Empacadora.
:
:UN M 73.6 Detector Carga Empacadora adaptado.
:U T 1 Tempo. alarma descarga Empacadora.
:L KT 150.1 Tiempo 15 seg.
:SE T 2 Temporización espera descarga Empacadora.
:U M 90.5 Alarma descarga Empacadora.
:R T 2 Reset Tempo. descarga Empacadora.
:
:U T 2
:= M 90.5 Activar Alarma descarga Empacadora.
:
:
:SPA PB 13 Módulo Despedregadores.
:
:
:U M 90.4 Comunicación con Ordenador activa.
:U M 81.3 Cambio en la Consigna Analógica adaptado.
:SPB FB 11 Módulo Salida Analógica Aspirador.
:
:
:BE
158
Memoria de cálculo
SEGMENTO 1
:UN M 103.4 Etapa 17 Grafcet Arranque Deshidratador.
:SPB =M001
:L KH 3110 Cte. Velocidad aspirador = 2.300 min-1
:T MW 146
:
M001 :U M 90.4 Comunicación con Ordenador activa.
:U A 32.3 Salida Anular Consig. Analógica.
:= M 90.6 Activar Consigna Analógica.
:
:U M 103.4 Etapa 17 Grafcet Arranque Deshidratador.
:R M 103.4 Desact. etapa 17 Grafcet Arranque Deshidra.
:
:UN E 74.6 Conformidad R. Sobradero.
:U E 74.7 Conformidad R. A. Enfriador.
:= M 91.0 Parar grupo Enfriador.
:
:SPA PB 13 Módulo Despedregadores.
:
:U M 90.4 Comunicación con Ordenador activa.
:U M 81.3 Cambio en la Consigna Analógica adapt.
:SPB FB 11 Módulo Salida Analógica Aspirador.
:
:
:BE
159
Memoria de cálculo
160
Memoria de cálculo
161
Memoria de cálculo
162
Memoria de cálculo
:***
163
Memoria de cálculo
164
Memoria de cálculo
SEGMENTO 1 TAPIZ
:U M 148.0 SCADA Marcha Tapiz.
:= M 109.0 Marcha virtual Tapiz.
:
:U E 76.0 R.T. Tapiz.
:ON M 72.0 D.G. Adaptado Tapiz.
:O M 80.4 Paro Emergencia adaptado.
:O M 148.1 SCADA Paro Tapiz.
:= M 109.1 Paro virtual Tapiz.
:
:***
SEGMENTO 4 QUEMADOR
:U M 148.6 SCADA Marcha Quemador.
:= M 109.6 Marcha virtual Quemador.
:
:U E 73.7 Averia Quemador.
165
Memoria de cálculo
SEGMENTO 5 TROMMEL
:U M 149.0 SCADA Marcha Trommel.
:= M 110.0 Marcha virtual Trommel.
:
:U E 76.3 R.T. Trommel.
:ON M 72.3 D.G. Adaptado Trommel.
:O M 80.4 Paro Emergencia adaptado.
:O M 149.1 SCADA Paro Trommel.
:= M 110.1 Paro virtual Trommel.
:
:***
SEGMENTO 6 DESPEDREGADORES
:U M 148.6 SCADA Abrir Despedregadores.
:U E 78.6 F.C. Despe. A cerrado.
:U E 79.0 F.C. Despe. B cerrado.
:= M 110.2 Abrir Despedregadores virtual.
:
:U M 149.3 SCADA Cerrar Despedregadores.
:U E 78.5 F.C. Despe. A abierto.
:U E 78.7 F.C. Despe. B abierto.
:= M 110.3 Cerrar Despedregadores virtual.
:
:***
166
Memoria de cálculo
SEGMENTO 10 ENFRIADOR
:U M 150.2 SCADA Marcha Enfriador.
:= M 111.2 Marcha virtual Enfriador.
:
:U E 77.0 R.T. Enfriador.
:O E 79.7 F.C. Inspección Enfriador.
:ON M 73.0 D.G. Adaptado Enfriador.
:O M 80.4 Paro Emergencia adaptado.
:O M 150.3 SCADA Paro Enfriador.
:= M 111.3 Paro virtual Enfriador.
:
:***
167
Memoria de cálculo
SEGMENTO 13 ASPIRADOR
:U M 151.0 SCADA Marcha Alimentación Variador.
:= M 112.0 Marcha virtual Alimentación Variador.
:
:UN E 78.4 Averia Grupo Variador-Aspirador.
:O E 79.4 F.C. Inspección Ciclón.
:O E 79.5 F.C. Inspección Aspiración.
:O M 80.4 Paro Emergencia adaptado.
:O M 151.1 SCADA Paro Alimentación Variador.
:= M 112.1 Paro virtual Alimentación Variador.
:
:
:U M 151.2 SCADA Activar Variador ON.
:= M 112.2 Marcha virtual Variador ON.
:
:U M 151.3 SCADA Desactivar Variador ON.
:ON A 9.6 Salida K11M (Alimentación Variador).
:= M 112.3 Paro virtual Variador ON.
:
:
:U M 151.4 SCADA Marcha Aspirador 1ª Velocidad.
:U A 32.0 Salida Variador ON.
:= M 112.4 Marcha virtual Aspirador 1ª Velocidad.
:
:
:U M 151.5 SCADA Marcha Aspirador 2ª Velocidad.
:U A 32.0 Salida Variador ON.
168
Memoria de cálculo
169
Memoria de cálculo
170
Memoria de cálculo
:
:***
SEGMENTO 21 EMPACADORA
:U M 153.6 SCADA Marcha Empacadora.
:= M 114.6 Marcha virtual Empacadora.
:
:U E 33.7 Averia Empacadora.
:O M 80.4 Paro Emergencia adaptado.
:O M 153.7 SCADA Paro Empacadora.
:= M 114.7 Paro virtual Empacadora.
:
:***
171
Memoria de cálculo
SEGEMENTO 1
:U M 90.5 Alarma descarga Empacadora.
:U M 104.3 Etapa 23 Grafcet.
:R M 90.5 Desact. Alarma descarga Empacadora.
:
:UN M 104.0 Etapa 20 Grafcet.
:UN M 104.1 Etapa 21 Grafcet.
:UN M 104.2 Etapa 22 Grafcet.
:UN M 104.3 Etapa 23 Grafcet.
:UN M 104.4 Etapa 24 Grafcet.
:S M 104.0 Activar etapa 20 Grafcet.
:
:U M 104.0 Etapa 20 Grafcet.
:U M 90.5 Alarma descarga Empacadora.
:UN E 75.7 Conformidad Quemador.
:S M 104.2 Activar etapa 22 Grafcet.
:R M 104.0 Deact. etapa 20 Grafcet.
:
:U M 104.0 Etapa 20 Grafcet.
:UN M 90.5 Alarma descarga Empacadora.
:UN E 75.7 Conformidad Quemador.
:S M 104.1 Activar etapa 21 Grafcet.
:R M 104.0 Deact. etapa 20 Grafcet.
:
:U M 104.1 Etapa 21 Grafcet.
:L KT 120.3 Tiempo 20 min.
:SE T 21 Temporización vaciado circuito.
:
:U T 21
:UN E 74.6 Conformidad R. Sobradero.
:S M 104.2 Activar etapa 22 Grafcet.
:R M 104.1 Deact. etapa 21 Grafcet.
:
:U T 21
:U E 74.6 Conformidad R. Sobradero.
:S M 104.4 Activar etapa 24 Grafcet
:R M 104.1 Deact. etapa 21 Grafcet.
:
:U M 104.2 Etapa 22 Grafcet.
:UN M 73.6 Detector Carga Empacadora adaptado.
:UN E 74.3 Conformidad Trommel.
:S M 104.3 Activar etapa 23 Grafcet.
172
Memoria de cálculo
173
Memoria de cálculo
SEGMENTO 1
:L KH 0000 Borrar estado de
:T MW 106 Parada Emergencia.
:
:U M 108.0 Alarma General.
:R M 105.0 Desact. etapa 30 Grafcet.
:R M 105.2 Desact. etapa 32 Grafcet.
:R M 105.3 Desact. etapa 33 Grafcet.
:R M 105.4 Desact. etapa 34 Grafcet.
:R M 105.5 Desact. etapa 35 Grafcet.
:S M 105.1 Activar etapa 31 Grafcet.
:
:UN M 105.0 Etapa 30 Grafcet.
:UN M 105.1 Etapa 31 Grafcet.
:UN M 105.2 Etapa 32 Grafcet.
:UN M 105.3 Etapa 33 Grafcet.
:UN M 105.4 Etapa 34 Grafcet.
:UN M 105.5 Etapa 35 Grafcet.
:S M 105.0 Activar etapa 30 Grafcet.
:
:U M 105.0 Etapa 30 Grafcet.
:L KT 50.1 Tiempo 5 seg.
:SE T 5 Temporización estado no evaluable.
:
:U M 105.0 Etapa 30 Grafcet.
:U(
:UN E 74.6 01 Conformidad R. Sobradero.
:U( 01
:ON E 75.6 02 Conformidad Empacadora.
:ON M 73.6 02 Detector Carga Empacadora adaptado.
:) 02
:O T 5 01
:) 01
:S M 105.1 Activa etapa 31 Grafcet.
:R M 105.0 Desact. etapa 30 Grafcet.
:
:U M 105.0 Etapa 30 Grafcet.
:U M 73.6 Detector Carga Empacadora adaptado.
:U E 75.6 Conformidad Empacadora.
:S M 105.2 Activar etapa 32 Grafcet.
:R M 105.0 Desact. etapa 30 Grafcet.
:U M 105.0 Etapa 30 Grafcet.
174
Memoria de cálculo
175
Memoria de cálculo
:
:
:BE
176
Memoria de cálculo
2.1.3.19 – PB 12 Salidas.
177
Memoria de cálculo
178
Memoria de cálculo
179
Memoria de cálculo
180
Memoria de cálculo
181
Memoria de cálculo
182
Memoria de cálculo
:
:***
183
Memoria de cálculo
184
Memoria de cálculo
185
Memoria de cálculo
186
Memoria de cálculo
187
Memoria de cálculo
188
Memoria de cálculo
189
Memoria de cálculo
190
Memoria de cálculo
2.1.3.20 – PB 13 Despedregadores.
SEGMENTO 1
:UN T 4 Temporizador Despedregadores cerrados.
:L KT 300.2 Tiempo 5 min.
:SE T 3 Temporización Despedregadores abiertos.
:
:U T 3 Temporizador Despedregadores abiertos.
:L KT 100.1 Tiempo 10 seg.
:SE T 4 Temporización Despedregadores cerrados.
:
:
:BE
191
Memoria de cálculo
SEGMENTO 1
:L MW 146 Cargar Consigna Analógica virtual
:SLW 4 Adaptar el valor.
:T AW 40 Enviar el valor al Aspirador.
:R M 81.3 Reset marca cambio en la consigna.
:
:BE
192
Memoria de cálculo
2.1.3.22 – PB 3 Comunicación.
193
Memoria de cálculo
2.1.3.23 – FB 6 CP-Parámetros.
194
Memoria de cálculo
:
:L KH 9071 Iniciar carga siguientes
:T AW 64 valores de configuración al CP 521.
:L KH 0001 Carácter Delay = 10 ms.
:T AW 66
:L KH 000C Message Length = 12 Bytes.
:T AW 68
:L KH 0000 Dato irrelevante.
:T AW 70
:
:L EW 64 ¿Han sido lo
:L KH 5000
:UW
:L KH 5000 valores
:><F
:BEB
:L EW 70 aceptados
:L KH 9071
:><F
:BEB por el CP 521?.
M002:UN M 160.1 Activar marca indicativa de
:S M 160.1 2º bloque de parámetros ya cargado.
:
:***
195
Memoria de cálculo
2.1.3.24 – FB 7 Pulso.
SEGMENTO 1 PULSO
:UN M 161.1 Marca auxiliar del pulso.
:L KT 020.1 Tiempo 2 seg.
:SI T 22 Temporizador comunicación.
:
:UN T 22
:UN M 161.1 Marca auxiliar del pulso.
:U(
:O M 81.1 01 Prueba de comunicación adaptada activa.
:O M 81.0 01 Comunicación con Ordenador adaptada activa.
:) 01
:= M 161.1 Activar marca auxiliar del pulso.
:S M 161.0 Activar marca pulso.
:
:
:BE
196
Memoria de cálculo
2.1.3.25 – FB 8 Distribuidor.
197
Memoria de cálculo
2.1.3.26 – FB 9 Enviar.
198
Memoria de cálculo
199
Memoria de cálculo
200
Memoria de cálculo
2.1.3.27 – FB 10 Recibir.
201
Memoria de cálculo
202
Memoria de cálculo
203
Memoria de cálculo
204
Memoria de cálculo
205
Memoria de cálculo
206
Memoria de cálculo
207
Memoria de cálculo
208
Memoria de cálculo
209
Memoria de cálculo
P006 = 2:
P007 = 0:
P012 = 23:
P025 = 5:
P041 = 23:
P042 = 39:
P053 = 13:
210
Memoria de cálculo
P080 = 0,92:
P082 = 2975:
P083 = 275:
P084 = 380:
P085 = 160:
211
Memoria de cálculo
7- Aplicación definitiva.
212
Memoria de cálculo
• P-General.vi
• P-Deshidratador.vi
• P-Enfriador.vi
• P-Datos-Auxiliares.vi
• Prueba-Comunicación.vi
213
Memoria de cálculo
• Cambio-Contraseña.vi
• Cambio-Puerto-Serie.vi
• Leer-Datos-Autómata.vi
• Enviar-Datos-Autómata.vi
• Resetear-Datos-Pantallas.vi
• Alarma.vi
• Grabar-Alarma.vi
• Gestión-Datos-Mantenimiento.vi
• NºArranques.vi
• Tiempo-Funcionamiento.vi
• Gemma.vi
• Gestión-Datos-Control.vi
Las variables globales son un tipo especial de programa que almacena datos y
nos permiten compartirlos entre los programas autónomos. En nuestra aplicación
utilizamos 6 variables globales:
• Consigna-Aspirador.gbl
• Datos-Autómata-Pantallas.gbl
• Descripción-Alarma.gbl
• Emergencia.gbl
• Datos-Entre-Pantallas.gbl
• Pantalla.gbl
214
Memoria de cálculo
Iconos:
En Labview cada programa y variable global está asociado a un icono, este icono
lo utilizaremos tanto en la representación de los niveles de jerarquía como en la
explicación del desarrollo y funcionamiento de cada programa o función.
Base.vi
P-General.vi
P-Deshidratador.vi
P-Enfriador.vi
P-Datos-Auxiliares.vi
215
Memoria de cálculo
Programas (SubVis):
Prueba-Comunicación.vi
Cambio-Contraseña.vi
Cambio-Puerto-Serie.vi
Funciones (SubVis):
Leer-Datos-Autómata.vi
Enviar-Datos-Autómata.vi
Resetear-Datos-Pantallas.vi .
Alarma.vi
Grabar-Alarma.vi
Gestión-Datos-Mantenimiento.vi
Tiempo-Funcionamiento.vi
NºArranques.vi
Gemma.vi
Gestión-Datos-Control.vi
216
Memoria de cálculo
Funciones (SubVis):
Consigna-Aspirador.gbl
Datos-Autómata-Pantallas.gbl
Descripción-Alarma.gbl
Emergencia.gbl
Datos-Entre-Pantallas.gbl
Pantalla.gbl
217
Memoria de cálculo
Programa Base.vi :
218
Memoria de cálculo
Programa P-General.vi:
Programa P-Deshidratador.vi :
219
Memoria de cálculo
Programa P-Enfriador.vi :
Programa P-Datos-Auxiliares.vi :
220
Memoria de cálculo
2.3.1.1.1 – Base.vi
2.3.1.1.2 - P-General.vi
2.3.1.1.3 - P-Deshidratador.vi
2.3.1.1.4 - P-Enfriador.vi
2.3.1.1.5 - P-Datos-Auxiliares.vi
2.3.1.1.6 - Prueba-Comunicación.vi
2.3.1.1.7 - Cambio-Contraseña.vi
2.3.1.1.8 - Cambio-Puerto-Serie.vi
2.3.1.1.9 - Leer-Datos-Autómata.vi
2.3.1.1.10 - Enviar-Datos-Autómata.vi
2.3.1.1.11 - Resetear-Datos-Pantallas.vi
2.3.1.1.12 - Alarma.vi
2.3.1.1.13 - Grabar-Alarma.vi
2.3.1.1.14 - Gestión-Datos-Mantenimiento.vi
2.3.1.1.15 - NºArranques.vi
2.3.1.1.16 - Tiempo-Funcionamiento.vi
2.3.1.1.17 - Gemma.vi
2.3.1.1.18 - Gestión-Datos-Control.vi
2.3.1.1.19 - Consigna-Aspirador.gbl
2.3.1.1.20 - Datos-Autómata-Pantallas.gbl
221
Memoria de cálculo
2.3.1.1.21 - Descripción-Alarma.gbl
2.3.1.1.22 - Emergencia.gbl
2.3.1.1.23 - Datos-Entre-Pantallas.gbl
2.3.1.1.24 - Pantalla.gbl
2.1.1.1.1 – Base.vi
• Activar el SCADA.
• Cerrar la aplicación.
• Grabación de estos datos tratados para que los tengan disponibles las
pantallas de control y visualización.
222
Memoria de cálculo
2.1.1.1.2 – P-General.vi
• Lectura de los datos que provienen del autómata y han sido tratados en
Base.vi .
223
Memoria de cálculo
2.3.1.1.3 - P-Deshidratador.vi
• Lectura de los datos que provienen del autómata y han sido tratados en
Base.vi .
224
Memoria de cálculo
2.3.1.1.4 - P-Enfriador.vi
• Lectura de los datos que provienen del autómata y han sido tratados en
Base.vi .
225
Memoria de cálculo
2.3.1.1.5 - P-Datos-Auxiliares.vi
• Lectura de los datos que provienen del autómata y han sido tratados en
Base.vi .
2.3.1.1.6 - Prueba-Comunicación.vi
Si lo activamos nos pedirá permiso para realizar una prueba de comunicación con
el autómata.
Al finalizar nos indicará el tiempo que ha necesitado para completarla; o en caso
de no haber logrado realizarla en 5 segundos, algunas de las posibles causas del
fallo.
226
Memoria de cálculo
2.3.1.1.7 - Cambio-Contraseña.vi
2.3.1.1.8 - Cambio-Puerto-Serie.vi
2.3.1.1.9 - Leer-Datos-Autómata.vi
227
Memoria de cálculo
2.3.1.1.10 - Enviar-Datos-Autómata.vi
Esta función es utilizada directamente tanto por los programas que controlan las
pantallas como por Base.vi , ya que el al tener que activar/desactivar la aplicación
SCADA también tiene que comunicarse con el autómata.
2.3.1.1.11 - Resetear-Datos-Pantallas.vi
2.3.1.1.12 - Alarma.vi
228
Memoria de cálculo
2.3.1.1.13 - Grabar-Alarma.vi
Esta es utilizada directamente por los programas que controlan las pantallas y por
la función Alarma.vi .
2.3.1.1.14 - Gestión-Datos-Mantenimiento.vi
Esta función es la encargada de grabar y leer los datos sobre las horas de
funcionamiento y el número de ciclos de arranque de cada máquina de la planta.
Estos datos son grabados/leídos del archivo dtm.rtl situado en la carpeta Datos.
2.3.1.1.15 - NºArranques.vi
229
Memoria de cálculo
2.3.1.1.16 - Tiempo-Funcionamiento.vi
2.3.1.1.17 - Gemma.vi
2.3.1.1.18 - Gestión-Datos-Control.vi
230
Memoria de cálculo
2.3.1.1.19 - Consigna-Aspirador.gbl
2.3.1.1.20 - Datos-Autómata-Pantallas.gbl
231
Memoria de cálculo
2.3.1.1.21 - Descripción-Alarma.gbl
Cuando se produce una alarma esta variable global almacena que tipo de
incidente la ha provocado.
2.3.1.1.22 - Emergencia.gbl
2.3.1.1.23 - Datos-Entre-Pantallas.gbl
232
Memoria de cálculo
2.3.1.1.24 - Pantalla.gbl
Este dato es utilizado para, cuando se produce un cambio en él, conmutar entre
pantallas de control y visualización.
233
Memoria de cálculo
2.3.2.1 – Base.vi
Panel frontal:
234
Memoria de cálculo
________________
Controles utilizados:
________________
235
Memoria de cálculo
Diagrama:
Case 0: Ningún control ha sido pulsado, el programa realizará una pausa de 250
milisegundos para no sobrecargar el procesador del ordenador.
236
Memoria de cálculo
237
Memoria de cálculo
12
10
11
238
Memoria de cálculo
13
14
15
16
17
18
13 – Case 4 - Frame 1:
239
Memoria de cálculo
240
Memoria de cálculo
241
Memoria de cálculo
19
20
21
22
242
Memoria de cálculo
23
243
Memoria de cálculo
2.3.2.2 – P-General.vi
Panel frontal:
1
2
3
4
5
7 6
8 8
10
8
244
Memoria de cálculo
• Automático (P11S).
• Manual (P3S).
• Emergencia (P5S).
________________
245
Memoria de cálculo
246
Memoria de cálculo
247
Memoria de cálculo
ConLogin – Decoración.
________________
248
Memoria de cálculo
Diagrama:
8
7
9
4
2
5
6
3
249
Memoria de cálculo
2 − Se inicia una estructura del tipo While Loop, se mantendrá activa mientras no
decida ir a otra pantalla o desactivar la aplicación SCADA.
Dentro del While Loop se realizará de forma cíclica las siguientes tareas:
Frame 0:
Frame 1:
4a
4c 4e
4d
4b
250
Memoria de cálculo
Frame 0:
Frame 1:
251
Memoria de cálculo
252
Memoria de cálculo
2.3.2.3 – P-Deshidratador.vi
Panel frontal:
2
7
11
9
4
8
10
3
6
1
253
Memoria de cálculo
• Emergencia (P5S).
254
Memoria de cálculo
255
Memoria de cálculo
________________
256
Memoria de cálculo
257
Memoria de cálculo
ContAsp – Decoración.
258
Memoria de cálculo
ContPM – Decoración
________________
259
Memoria de cálculo
Diagrama:
11
1
4
2
8
5
6
7
9
3
10
1
260
Memoria de cálculo
1 − Inicialización del estado del pulsador de emergencia, del nombre del operario
del estado de la comunicación con el autómata y del valor de la consigna del
aspirador.
2 − Se inicia una estructura del tipo While Loop, se mantendrá activa mientras no
decida ir a otra pantalla.
Dentro del While Loop se realizará de forma cíclica las siguientes tareas:
Frame 1:
Frame 2:
261
Memoria de cálculo
Frame 3:
262
Memoria de cálculo
263
Memoria de cálculo
2.3.2.4 – P-Enfriador.vi
Panel frontal:
2
7
4
9
3
6
1
264
Memoria de cálculo
• Emergencia (P5S).
265
Memoria de cálculo
________________
266
Memoria de cálculo
267
Memoria de cálculo
268
Memoria de cálculo
________________
269
Memoria de cálculo
Diagrama:
6
4
11
1
2
8
9
3
10
1
270
Memoria de cálculo
2 − Se inicia una estructura del tipo While Loop, se mantendrá activa mientras no
decida ir a otra pantalla.
Dentro del While Loop se realizará de forma cíclica las siguientes tareas:
Frame 1:
Frame 2:
271
Memoria de cálculo
272
Memoria de cálculo
2.3.2.5 – P-Datos-Auxiliares.vi
Panel frontal:
6
3
1
273
Memoria de cálculo
________________
274
Memoria de cálculo
Dec-Des – Decoración.
Dec-Asp – Decoración.
Dec-Nor – Decoración.
275
Memoria de cálculo
Diagrama:
4
5
2
3
1
276
Memoria de cálculo
2 − Se inicia una estructura del tipo While Loop, se mantendrá activa mientras no
decida ir a otra pantalla.
Dentro del While Loop se realizará de forma cíclica las siguientes tareas:
277
Memoria de cálculo
278
Memoria de cálculo
2.3.2.5 – Prueba-Comunicación.vi
Panel frontal:
1 − Cuadro donde aparece las indicaciones del inicio (función del programa), la
barra de progreso, las indicaciones finales (tiempo transcurrido en completar la
prueba) y las indicaciones en caso de no poder concluir con éxito la prueba.
________________
________________
279
Memoria de cálculo
Diagrama:
2 − Se inicia una estructura del tipo While Loop, se mantendrá activa mientras no
se accione el pulsador Cancelar:
Dentro del While Loop se evalúa cíclicamente una estructura del tipo Case con 2
posibles situaciones:
Case True: Se ejecuta una estructura del tipo Sequence con 4 frames:
280
Memoria de cálculo
2a
2b
281
Memoria de cálculo
2c
2d
282
Memoria de cálculo
El mensaje que se mostrará depende de una estructura del tipo Case con 2
posibles situaciones:
True: Es la mostrada en la anterior figura, se ejecuta si la prueba ha concluido
con éxito.
283
Memoria de cálculo
2.3.2.7 – Cambio-Contraseña.vi
Panel frontal:
1 − Indicaciones.
________________
________________
284
Memoria de cálculo
Diagrama:
1
3
285
Memoria de cálculo
2 − Se inicia una estructura del tipo While Loop, se mantendrá activa mientras no
se accione el pulsador Cancelar, se halla tecleado la actual contraseña o se ha
tecleado 3 veces una contraseña errónea:
3 − Dentro del While Loop se evalúa cíclicamente una estructura, que depende
del pulsador Cancelar, del tipo Case con 2 posibles situaciones:
Frame 1:
286
Memoria de cálculo
287
Memoria de cálculo
288
Memoria de cálculo
2.3.2.8 – Cambio-Puerto-Serie.vi
Panel frontal:
________________
289
Memoria de cálculo
Diagrama:
2 − Se inicia una estructura del tipo While Loop, se mantendrá activa mientras no
se accione el pulsador Cancelar o se halla ejecutado en el Case la condición
True que depende del pulsador Aceptar.
290
Memoria de cálculo
2.3.2.9 – Leer-Datos-Autómata.vi
Diagrama:
5
3
4
2
291
Memoria de cálculo
________________
________________
1 − Son leídos los datos enviados por el autómata, estos datos son suministrados
por el programa Base.vi .
• Conformidades.
• Relés térmicos.
• Varios:
292
Memoria de cálculo
• Conformidades.
• Relés térmicos.
293
Memoria de cálculo
• Relés térmicos.
• Varios:
294
Memoria de cálculo
2.3.2.10 – Enviar-Datos-Autómata.vi
Diagrama:
4
3
2
1
295
Memoria de cálculo
________________
Controles utilizados:
________________
Case 1:
296
Memoria de cálculo
Case 2:
Case 3:
297
Memoria de cálculo
Case 4:
Frame 1:
298
Memoria de cálculo
2.3.2.11 – Resetear-Datos-Pantallas.vi
Diagrama:
299
Memoria de cálculo
2.3.2.12 - Alarma.vi
Diagrama:
5
3
2
4
1
300
Memoria de cálculo
________________
Controles utilizados:
________________
2 – Evaluación del estado del paro de emergencia adaptado (M 80.4) por medio
de una estructura Case:
3 – True:
Está activo un aviso de alarma por haber
accionado un paro de emergencia, como ya no
existe tal alarma se desactiva la notificación
interna.
301
Memoria de cálculo
2 3a
True:
3a – True:
No es la primera notificación sobre un
paro de emergencia accionado (Aux-
Emergencia = True).
3a
302
Memoria de cálculo
True:
4 4a 4b
4b – True:
La parada la ha provocado la
temperatura en el trommel.
Dependiendo de la causa que ha
provocado la alarma se envía a la
función Grabar-Alarma.vi un
4b
determinado valor.
303
Memoria de cálculo
4b – True:
4a
True:
5a – False:
La actual pantalla activa no es la del programa P-Datos-
Auxiliares.vi , no sucede nada.
5a – True:
La actual pantalla activa es la del programa
5a
P-Datos-Auxiliares.vi ,se conmuta a la pantalla del
programa P-General.vi para poder controlar el
estado de toda la planta. Desde esta pantalla
podremos seleccionar cualquier otra pantalla para controlar la
planta.
304
Memoria de cálculo
2.3.2.13 – Grabar-Alarma.vi
Diagrama:
________________
Control utilizado:
________________
1 – Se busca el archivo donde se almacena todo los avisos de alarma que han
ocurrido en la planta.
Los avisos de alarma serán almacenados en un fichero con extensión .xls (hoja de
cálculo para EXCEL), este archivo se encontrará la carpeta Alarmas en el
subdirectorio donde se encuentre la aplicación SCADA.
El nombre del archivo (nombre.xls) dependerá del mes y el año en el que ha sido
notificado el aviso de alarma, ejemplo:
305
Memoria de cálculo
3- Se cierra el archivo.
False:
2- Se cierra el archivo.
VALOR AVISO
0 PULSADO EMERGENCIA VIRTUAL
1 PULSADO EMERGENCIA EN LA PLANTA
2 DISPARO DETECTOR GIRO TAPIZ
3 DISPARO DETECTOR GIRO ERIZO TAPIZ
4 DISPARO DETECTOR GIRO R. S. TAPIZ
5 DISPARO DETECTOR GIRO TROMMEL
6 DISPARO DETECTOR GIRO ESCLUSA CICLÓN
7 DISPARO DETECTOR GIRO R. S. CICLÓN
8 DISPARO DETECTOR GIRO R. SOBRADERO
9 DISPARO DETECTOR GIRO R. A. ENFRIADOR
10 DISPARO DETECTOR GIRO ENFRIADOR
11 DISPARO DETECTOR GIRO ERIZO ENFRIADOR
12 DISPARO DETECTOR GIRO ESCLUSA ENFRIADOR
306
Memoria de cálculo
VALOR AVISO
13 DISPARO DETECTOR GIRO R. S. ENFRIADOR
14 DISPARO DETECTOR GIRO TRANSPORTE CADENAS
15 DISPARO DETECTOR GIRO ESCLUSA FINOS
16 DISPARO RELÉ TÉRMICO TAPIZ
17 DISPARO RELÉ TÉRMICO ERIZO TAPIZ
18 DISPARO RELÉ TÉRMICO R. S. TAPIZ
19 DISPARO RELÉ TÉRMICO TROMMEL
20 DISPARO RELÉ TÉRMICO ESCLUSA CICLÓN
21 DISPARO RELÉ TÉRMICO R. S. CICLÓN
22 DISPARO RELÉ TÉRMICO R. SOBRADERO
23 DISPARO RELÉ TÉRMICO R. A. ENFRIADOR
24 DISPARO RELÉ TÉRMICO ENFRIADOR
25 DISPARO RELÉ TÉRMICO ERIZO ENFRIADOR
26 DISPARO RELÉ TÉRMICO ASPIRADOR ENFRIADOR
27 DISPARO RELÉ TÉRMICO ASPIRADOR FINOS
28 DISPARO RELÉ TÉRMICO ESCLUSA ENFRIADOR
29 DISPARO RELÉ TÉRMICO R. S. ENFRIADOR
30 DISPARO RELÉ TÉRMICO TRANSPORTE CADENAS
31 DISPARO RELÉ TÉRMICO ESCLUSA FINOS
32 AVERIA EN EL GRUPO VARIADOR - ASPIRADOR
33 INSPECCIÓN R. S. TAPIZ ABIERTA
34 INSPECCIÓN CICLÓN ABIERTA
35 INSPECCIÓN ASPIRACIÓN ABIERTA
36 INSPECCIÓN R. S. CICLÓN ABIERTA
37 INSPECCIÓN ENFRIADOR ABIERTA
38 AVERIA EN LA EMPACADORA
39 - no se utiliza -
40 AVERIA EN EL GRUPO QUEMADOR
41 DISPARO "WATCHDOG" ARRANQUE
DESHIDRATADOR
42 DISPARO "WATCHDOG" ARRANQUE ENFRIADOR
43 TEMPERATURA SALIDA TROMMEL
SUPERIOR A 160 ºC
44 TEMPERATURA SALIDA TROMMEL
INFERIOR A 80 ºC
45 TEMPERATURA TROMMEL ELEVADA
46 TEMPERATURA ENTRADA TROMMEL
SUPERIOR A 930 ºC
47 ALARMA TRATADA
4 – Se crea el aviso de alarma que será grabado en el archivo, este aviso está
formado por la fecha y hora en la que se ha producido la alarma, el tipo de
307
Memoria de cálculo
5 – Dependiendo del valor enviado a la función se ejecuta una estructura del tipo
Case:
True:
308
Memoria de cálculo
2.3.2.14 – Gestión-Datos-Mantenimiento.vi
Diagrama:
________________
________________
309
Memoria de cálculo
Case “Grabar”:
310
Memoria de cálculo
2.3.2.15 - NºArranques.vi
Diagrama:
2
1
________________
________________
311
Memoria de cálculo
Case “Leer”:
312
Memoria de cálculo
Case “Borrar”:
Case “Grabar”:
313
Memoria de cálculo
Case “Inicializar”:
314
Memoria de cálculo
2.3.2.16 – Tiempo-Funcionamiento.vi
Diagrama:
2
1
________________
________________
315
Memoria de cálculo
Case “Leer”:
316
Memoria de cálculo
Case “Borrar”:
Case “Grabar”:
317
Memoria de cálculo
Case “Inicializar”:
318
Memoria de cálculo
2.3.2.17 – Gemma.vi
Diagrama:
1 2
________________
________________
1 – Son leídos los datos que el autómata ha enviado sobre el estado de las etapas
de la guía Gemma.
319
Memoria de cálculo
Case 1:
Case 2:
Case 3:
Case 4:
Case 5:
Case 6:
320
Memoria de cálculo
Case 7:
Case 8:
Case 9:
321
Memoria de cálculo
2.3.2.18 – Gestión-Datos-Control.vi
Diagrama:
3
2
1
322
Memoria de cálculo
________________
Nº Puerto L. – Valor del nº del puerto serie leído del archivo dtc.rtl.
________________
323
Memoria de cálculo
Case “NºPuerto”:
Case “Leer”:
324
Memoria de cálculo
Case “NºPuerto”:
325
Memoria de cálculo
2.3.2.19.1 – Consigna-Aspirador.gbl
Control utilizado:
2.3.2.19.2 – Datos-Autómata-Pantallas.gbl
Controles utilizados:
326
Memoria de cálculo
2.3.2.19.3 – Descripción-Alarma.gbl
Control utilizado:
2.3.2.19.4 – Emergencia.gbl
Control utilizado:
2.3.2.19.5 – Datos-Entre-Pantallas.gbl
2.3.2.19.6 – Pantalla.gbl
Controles utilizado:
327
Memoria de cálculo
Al ser ejecutada esta función abre el panel del programa VI indicado en VI name,
siempre que el programa este cargado en memoria.
328
Memoria de cálculo
329
Memoria de cálculo
El ingeniero técnico:
330
APLICACIÓN EN LABVIEW PARA EL CONTROL
DE UNA PLANTA DESHIDRATADORA DE
ALFALFA MEDIANTE AUTÓMATA
PROGRAMABLE
3 – Planos
3 – PLANOS:
I
Planos
El ingeniero técnico:
4 – Presupuesto
4 - PRESUPUESTO:
4.1 – MEDICIONES................................................................................... 1
4.1.1- Partida armario general ...................................................... 1
4.1.2- Partida armario variador .................................................... 2
4.1.3- Partida armario enfriador .................................................. 3
4.1.4- Partida de cableado ............................................................. 4
4.1.5- Partida de sensores y actuadores ........................................ 4
4.1.6- Partida de señalización ........................................................ 4
4.1.7- Partida de programación .................................................... 5
4.1.8- Partida del ordenador ......................................................... 5
4.1.9- Partida de montaje .............................................................. 5
I
Presupuesto
4 – PRESUPUESTO.
4.1 – MEDICIONES.
1
Presupuesto
2
Presupuesto
3
Presupuesto
4.06 m Conductor de cobre UNE 0.6/1 kV de 1,5 mm2 color negro. 1000
4.07 m Conductor de cobre UNE 0.6/1 kV de 1,5 mm2 color azul. 1000
4.08 m Conductor de cobre UNE 0.6/1 kV de 1,5 mm2 color gris. 1000
4.09 m Conductor de cobre UNE 0.6/1 kV de 1,5 mm2 color marrón. 1000
4.10 m Conductor de cobre UNE 0.6/1 kV de 1,5 mm2 color verde y amarillo. 200
Lámparas de señalización.
6.02 u Lampará de señalización 220 V AC - 60 W. 3
4
Presupuesto
Montaje de la instalación.
9.01 h 120
Montaje, cableado, conexionado, etc., necesarios para llevar a cabo el proyecto.
5
Presupuesto
PRECIO
CÓDIGO UNIDADES DESCRIPCIÓN
PESETAS EUROS
Interrupor tetrapolar general.
1.01 u Interruptor portafusibles Siemens 3KE450-OEA, 55.815 335,455
accionamiento manual.
Interruptor diferencial 100A/300mA.
Interruptor diferencial tetrapolar de 100 A de intensidad
1.02 u 52.287 314,251
nominal y 0,3 A de sensibilidad, fijado a presión sobre perfil
DIN.
Interruptor magnetotérmico 100 A (IV).
1.03 u Interruptor magnetotérmico de 100 A tetrapolar fijado a 58.457 351,334
presión sobre perfil DIN.
Interruptor magnetotérmico 20 A (II).
1.04 u Interruptor magnetotérmico de 20 A bipolar fijado a presión 13.107 78,775
sobre perfil DIN.
Fuente de alimentación 230/115 V c.a - 24 V c.c./ 15 A.
Fuente de alimentación 230/115 V AC - 24 V DC./ 15 A,
1.05 u 25.789 154,995
para autómata, sensores y maniobra; fijada a presión sobre
perfil DIN.
Autómata S5-95U, 6ES5 095-8MA04.
1.06 u Autómata SIEMENS, modelo SIMATIC S5-95U, fijado a 110.388 663,445
presión sobre perfil DIN.
Módulo de entradas digitales 6ES5, 422-8MA11.
1.07 u Módulo para el autómata S5-96U de 16 entradas digitales de 19.769 118,814
24 V DC.
Módulo de salidas digitales, 6ES5 451-8MA11 .
1.08 u Módulo para el autómata S5-96U de 8 salidas digitales de 29.730 178,681
24 V DC/1 A.
Elemento de bus, 6ES5 700-8MA11 .
1.09 u 860 5,169
Elemento de bus para autómata SIMATIC S5.
Procesador de comunicaciones CP 521SI, 6ES5 521-
8MA22.
1.10 u 68.305 410,521
Módulo interface para comunicar un autómata S5-95U con
una línea RS-232.
Batería tampón, 6ES5 980-0MA11.
1.11 u 2.514 15,109
Batería de litio para el autómata S5-95U
1.12 m Perfil DIN de soporte de 35 mm. 984 5,914
Cable conexión CP-521SI - Ordenador.
1.13 m Cable de conexión entre el CP 521SI y el ordenador, de 125 0,751
10x0,14 DIN 47100 con blindaje.
1.14 u Conector SUB-D 9 Hembra. 216 1,298
1.15 u Conector SUB-D 25 Hembra. 248 1,491
Relé de maniobra, 10A.
1,16 u Relé auxiliar de maniobra de intensidad nominal 10 A, 2.549 15,320
tensión nominal 220 V, tensión de mando 24 DC.
Contactor A30-30-10.
1.17 u Contactor ABB para la conexión de motores de hasta 15 kW 11.935 71,731
y 380 V, tensión de mando 24 V DC.
6
Presupuesto
PRECIO
CÓDIGO UNIDADES DESCRIPCIÓN
PESETAS EUROS
Contactor A9-30-10.
1.18 u Contactor ABB para la conexión de motores de hasta 4 4.090 24,581
kW y 380 V, tensión de mando 24 V DC.
Contactor A26-30-10.
1.19 u Contactor ABB para la conexión de motores de hasta 9,2 8.375 50,335
kW y 380 V, tensión de mando 24 V DC.
Contactor A40-30-10.
1.20 u Contactor ABB para la conexión de motores de hasta 18,5 13.725 82,489
kW y 380 V, tensión de mando 24 V DC.
Relé térmico TA42DU-42.
1.21 u Relé térmico ABB para proteger motores entre 29 y 42 A, 10.600 63,707
380 V.
Relé térmico TA25DU-11.
1.22 u Relé térmico ABB para proteger motores entre 7,5 y 11 A, 6.175 37,112
380 V.
Relé térmico TA25DU-25.
1.23 u Relé térmico ABB para proteger motores entre 18 y 25 A, 6.665 40,057
380 V.
Armario 600 x 500 x 260.
1.24 u 19.027 114,355
Armario metálico Himel para servicio interior.
Pulsador de color verde.
1.25 u Pulsador Telemecanique XB2-BA31, diametro 22 mm, 373 2,242
formato rasante.
Pulsador de color rojo.
1.26 u Pulsador Telemecanique XB2-BA42, diametro 22 mm, 373 2,242
formato rasante.
Pulsador de color amarillo.
1.27 u Pulsador Telemecanique XB2-BA51, diametro 22 mm, 373 2,242
formato rasante.
Pulsador de color negro.
1.28 u Pulsador Telemecanique XB2-BA21, diametro 22 mm, 373 2,242
formato rasante.
Pulsador de color azul.
1.29 u Pulsador Telemecanique XB2-BA61, diametro 22 mm, 373 2,242
formato rasante.
Pulsador de seta con enclavamiento.
1.30 u Pulsador de seta Telemecanique XB2-BS8445 diametro 40 1.057 6,353
mm, girar para desenclavar.
1.31 u Material diverso. 100.000 601,012
7
Presupuesto
PRECIO
CÓDIGO UNIDADES DESCRIPCIÓN
PESETAS EUROS
Interruptor diferencial 63A/300mA.
Interruptor diferencial tetrapolar de 63 A de intensidad
2.01 u 32.457 195,070
nominal y 0,3 A de sensibilidad, fijado a presión sobre perfil
DIN.
Variador ECO1-16000/3.
2.03 u Variador SIEMENS para accionar motores de hasta 160kW, 1.748.589 10.509,20
dimensiones 1150 x 425 x 425.
2.04 m Perfil DIN de soporte de 35 mm. 984 5,914
Contactor EH 300-30-10.
2.05 u Contactor ABB para la conexión de motores de hasta 160 140.985 847,337
kW y 380 V, tensión de mando 24 V DC.
Contactor A12-30-10.
2.06 u Contactor ABB para la conexión de motores de hasta 5,5 kW 4.500 27,046
y 380 V, tensión de mando 24 V DC.
Contactor A16-30-10.
2.07 u Contactor ABB para la conexión de motores de hasta 7,5 kW 6.145 36,932
y 380 V, tensión de mando 24 V DC.
Relé térmico TA25DU-14.
2.08 u Relé térmico ABB para proteger motores entre 10 y 14 A, 6.665 40,057
380 V.
Relé térmico TA25DU-19.
2.09 u Relé térmico ABB para proteger motores entre 13 y 19 A, 6.665 40,057
380 V.
Relé térmico TA25DU-25.
2.10 u Relé térmico ABB para proteger motores entre 18 y 25 A, 6.665 40,057
380 V.
Armario 1425 x 750 x 600.
2.11 u 43.784 263,147
Armario metálico Himel para servicio interior.
Pulsador de seta con enclavamiento.
2.12 u Pulsador de seta Telemecanique XB2-BS8445 diametro 40 1.057 6,353
mm, girar para desenclavar.
2.13 u Material diverso. 100.000 601,012
PRECIO
CÓDIGO UNIDADES DESCRIPCIÓN
PESETAS EUROS
Interruptor diferencial 100A/300mA.
Interruptor diferencial tetrapolar de 100 A de intensidad
3.01 u 52.287 314,251
nominal y 0,3 A de sensibilidad, fijado a presión sobre perfil
DIN.
Interruptor magnetotérmico 100 A (IV).
3.02 u Interruptor magnetotérmico de 100 A tetrapolar fijado a 58.457 351,334
presión sobre perfil DIN.
3.03 m Perfil DIN de soporte de 35 mm. 984 314,251
Contactor A9-30-10.
3.04 u Contactor ABB para la conexión de motores de hasta 4 kW y 4.090 314,251
380 V, tensión de mando 24 V DC.
Contactor A16-30-10.
3.05 u Contactor ABB para la conexión de motores de hasta 7,5 kW 6.145 314,251
y 380 V, tensión de mando 24 V DC.
8
Presupuesto
PRECIO
CÓDIGO UNIDADES DESCRIPCIÓN
PESETAS EUROS
Contactor A40-30-10.
3.06 u Contactor ABB para la conexión de motores de hasta 18,5 13.725 314,251
kW y 380 V, tensión de mando 24 V DC.
Contactor A12-30-10.
3.07 u Contactor ABB para la conexión de motores de hasta 5,5 kW 4.500 27,046
y 380 V, tensión de mando 24 V DC.
Relé térmico TA25DU-5,0.
3.08 u Relé térmico ABB para proteger motores entre 3,5 y 5 A, 6.175 37,112
380 V.
Relé térmico TA25DU-19.
3.09 u Relé térmico ABB para proteger motores entre 13 y 19 A, 6.665 40,057
380 V.
Relé térmico TA42DU-42.
3.10 u Relé térmico ABB para proteger motores entre 29 y 42 A, 10.600 63,707
380 V.
Relé térmico TA25DU-4,0.
3.11 u Relé térmico ABB para proteger motores entre 2,8 y 4 A, 6.175 37,112
380 V.
Relé térmico TA25DU-14.
3.12 u Relé térmico ABB para proteger motores entre 10 y 14 A, 6.665 40,057
380 V.
Armario 600 x 500 x 260.
3.13 u 19.027 114,355
Armario metálico Himel para servicio interior.
Pulsador de seta con enclavamiento.
3.14 u Pulsador de seta Telemecanique XB2-BS8445 diametro 40 1.057 6,353
mm, girar para desenclavar.
PRECIO
CÓDIGO UNIDADES DESCRIPCIÓN
PESETAS EUROS
4.01 m Conductor de cobre UNE 0.6/1 kV de 150 mm2. 1.658 9,965
4.02 m Conductor de cobre UNE 0.6/1 kV de 10 mm2. 116 0,697
4.03 m Conductor de cobre UNE 0.6/1 kV de 6 mm2. 54 0,322
4.04 m Conductor de cobre UNE 0.6/1 kV de 4 mm2. 30 0,177
4.05 m Conductor de cobre UNE 0.6/1 kV de 2,5 mm2. 16 0,096
Conductor de cobre UNE 0.6/1 kV de 1,5 mm2 color
4.06 m 9 0,054
negro.
Conductor de cobre UNE 0.6/1 kV de 1,5 mm2 color
4.07 m 9 0,054
azul.
Conductor de cobre UNE 0.6/1 kV de 1,5 mm2 color
4.08 m 9 0,054
gris.
Conductor de cobre UNE 0.6/1 kV de 1,5 mm2 color
4.09 m 9 0,054
marrón.
Conductor de cobre UNE 0.6/1 kV de 1,5 mm2 color
4.10 m 9 0,054
verde y amarillo.
9
Presupuesto
PRECIO
CÓDIGO UNIDADES DESCRIPCIÓN
PESETAS EUROS
Detector de giro.
5.01 u Sensor Telemecanique XSA-V11373 de inducción para el 23.791 142,987
control de rotoción.
Final de carrera inspección.
5.02 u Final de carrera Telemecanique XCK-T110 accionamiento 4.510 27,106
tipo pulsador.
Final de carrera.
5.03 u Final de carrera Telemecanique XCK-T110 accionamiento 5.345 32,124
tipo pulsador y roldana termoplástica.
Electroválvula 5/2 vías.
5.04 u 19.575 117,648
Electrovávula NORGREN, mando a 24 V DC.
Electroválvula 3/2 vías.
5.05 u 9.740 58,539
Electrovávula NORGREN, mando a 24 V DC.
PRECIO
CÓDIGO UNIDADES DESCRIPCIÓN
PESETAS EUROS
Sirena.
6.01 u 4.300 25,844
Sirena alimentación 220 V AC.
Lámparas de señalización.
6.02 u 2.175 13,072
Lampará de señalización 220 V AC - 60 W.
PRECIO
CÓDIGO UNIDADES DESCRIPCIÓN
PESETAS EUROS
Estudio y desarrollo de la programación del autómata.
7.01 h Estudio y desarrollo de la programación del autómata S5- 5.700 34,258
95U.
Estudio y desarrollo de la programación de la aplicación
SCADA.
7.02 h 5.700 34,258
Estudio y desarrollo de la programación de la aplicación
SCADA desarrollada en LabVIEW 5.0.
Instalación del software.
7.03 h Instalación del software desarrollado para el control y 5.700 34,258
automatización de la planta, y pruebas del mismo.
10
Presupuesto
PRECIO
CÓDIGO UNIDADES DESCRIPCIÓN
PESETAS EUROS
Ordenador AMD K7 1200.
Ordenador AMD K7 1200 MHz, 128 MB de memoria RAM,
8.01 u 165.000 991,670
disco duro de 20 GB, disquetera 3,5", lector de CD ROM de
52X, tarjeta gráfica SVGA, monitor de 17", ratón, teclado,...
PRECIO
CÓDIGO UNIDADES DESCRIPCIÓN
PESETAS EUROS
Montaje de la instalación.
9.01 h Montaje, cableado, conexionado, etc., necesarios para 3.125 18,782
llevar a cabo el proyecto.
11
Presupuesto
4.3 – PRESUPUESTO.
12
Presupuesto
13
Presupuesto
Variador ECO1-16000/3.
Variador SIEMENS para accionar motores de 1.748.589 ptas. 1.748.589 ptas.
2.03 u 1
hasta 160kW, 10509,2 € 10509,2 €
dimensiones 1150 x 425 x 425.
14
Presupuesto
15
Presupuesto
133.690 ptas.
TOTAL DE LA PARTIDA DE CABLEADO:
803,493 €
16
Presupuesto
Final de carrera.
Final de carrera Telemecanique XCK-T110 5.345 ptas. 32.070 ptas.
5.03 u 6
accionamiento tipo pulsador y roldana 32,124 € 192,745 €
termoplástica.
426.749 ptas.
TOTAL DE LA PARTIDA DE SENSORES Y ACTUADORES:
2,564,813 €
10.825 ptas.
TOTAL DE LA PARTIDA DE SEÑALIZACIÓN:
65,059 €
17
Presupuesto
Montaje de la instalación.
3.125 ptas. 375.000 ptas.
9.01 h Montaje, cableado, conexionado, etc., 120
18,782 € 2.253,795 €
necesarios para llevar a cabo el proyecto.
375.000 ptas.
TOTAL DE LA PARTIDA DE MONTAJE:
2.253,795 €
18
Presupuesto
19
Presupuesto
El total del presupuesto de ejecución por contrato del presente proyecto es de:
7.308.287 ptas.
Siete millones trescientas ocho mil doscientas ochenta y siete pesetas.
46.923,693 €
Cuarenta y seis mil novecientos veinte y tres euros con seiscientos noventa y tres céntimos.
El ingeniero técnico:
20
APLICACIÓN EN LABVIEW PARA EL CONTROL
DE UNA PLANTA DESHIDRATADORA DE
ALFALFA MEDIANTE AUTÓMATA
PROGRAMABLE
5 – Pliego de condiciones
5- PLIEGO DE CONDICIONES:
I
Pliego de condiciones
II
Pliego de condiciones
5.1.2 – Proyecto.
1
Pliego de condiciones
5.1.4 – Materiales.
2
Pliego de condiciones
5.1.5.1 – Comienzo:
3
Pliego de condiciones
El Contratista está obligado a realizar todo cuanto sea necesario para la buena
ejecución de la obra, aún cuando no se halle explícitamente expresado en el
pliego de condiciones o en los documentos del Proyecto.
5.1.8 – Modificaciones.
4
Pliego de condiciones
Serán de cuenta del Contratista todos los medios y máquinas auxiliares que sean
precisas para la ejecución del Proyecto. En el uso de los mismos estará obligado
a hacer cumplir todos los Reglamentos de Seguridad en el trabajo vigentes y a
utilizar los medios de protección a sus operarios.
5
Pliego de condiciones
- Plazo de entrega.
- Garantías.
6
Pliego de condiciones
5.1.14.2 – Presentación:
Las empresas seleccionadas para dicho concurso deberán presentar sus Proyectos
en sobre lacrado, durante los 15 días siguientes a la publicación de la oferta en
los medios que la Propiedad haya considerado adecuados.
5.1.14.3 – Selección:
5.1.15 – Fianza.
En el caso de que el Contratista se negase a hacer por su cuenta los trabajos para
ultimar la obra en las condiciones contratadas, o a atender la garantía, la
Propiedad podrá ordenar ejecutarlas a un tercero, abonando su importe con cargo
a la retención o fianza, sin perjuicio de las acciones legales a que tenga derecho
la Propiedad si el importe de la fianza no bastase.
7
Pliego de condiciones
5.2.2 – Precios.
5.2.4 – Penalizaciones.
Por retraso en los plazos de entrega de las obras, se podrán establecer tablas de
penalización cuyas cuantías y demoras se fijarán en el contrato.
8
Pliego de condiciones
5.2.5 – Contrato.
9
Pliego de condiciones
El contrato será firmado, por parte del Contratista, por su representante legal o
apoderado, quien deberá poder probar este estreno con la presentación del
correspondiente poder acreditativo.
Todos los gastos e impuestos de cualquier orden, que por disposición del Estado,
Provincia o Municipio se deriven del contrato, y estén vigentes en la fecha de
firma del mismo, serán por cuenta del Contratista con excepción del IVA.
5.2.7 – Responsabilidades.
10
Pliego de condiciones
Siempre que se rescinda el contrato por causas anteriores o bien por acuerdo de
ambas partes, se abonará al Contratista las unidades de obra ejecutadas y los
materiales acopiados a pie de obra y que reúnan las condiciones y sean
necesarios para la misma.
11
Pliego de condiciones
- Normas UNE.
12
Pliego de condiciones
5.3.2 – Personal.
Los gastos ocasionados por estas pruebas y comprobaciones, serán por cuenta del
Contratista.
5.3.4 – Ensayos.
5.3.4.2 - Todos los ensayos serán presenciados por el Ingeniero que representa el
Técnico Director de obra.
13
Pliego de condiciones
5.3.4.8 – Todo relé de protección que sea ajustable será calibrado y ensayado,
usando contador de ciclos, caja de carga, amperímetro y voltímetro, según se
necesite.
5.3.4.13 – Se comprobarán todas las alarmas del equipo eléctrico para comprobar
el funcionamiento adecuado, haciéndolas activar simulando condiciones
anormales.
14
Pliego de condiciones
5.3.4.16 – Todos los motores deberán ponerse en marcha sin estar acoplados y se
medirá la intensidad consumida. Después de acoplarlos al equipo mecánico
accionado por el motor se medirá la intensidad consumida en funcionamiento en
vacío.
5.3.4.17 – Se tendrá que verificar y supervisar la totalidad del sistema para dejar
en condiciones de funcionamiento toda la instalación. Por lo tanto será necesario:
15
Pliego de condiciones
16
Pliego de condiciones
5.4.1 – Generalidades.
Así pues todos los armarios incorporarán además como elementos auxiliares
propios, los siguientes accesorios:
17
Pliego de condiciones
18
Pliego de condiciones
Todos los relés auxiliares serán del tipo enchufable en base tipo undecal, de tres
contactos inversores, equipados con contactos de potencia, (10 A. para carga
resistiva, cos. fi=1), aprobados por UL.
La protección contra choque eléctrico será prevista, y se cumplirá con las normas
UNE 20-383 y MI-BT021.
Los conductores eléctricos usarán los colores distintivos según normas UNE, y
serán etiquetados y numerados para facilitar su fácil localización e interpretación
en los planos y en la instalación.
Los aparatos de maniobra como por ejemplo los sensores, finales de carrera, ...;
han de ser fácilmente accesibles y poder ser sustituidos sin herramientas
especiales.
19
Pliego de condiciones
- Interruptores automáticos.
20
Pliego de condiciones
La distribución del cuadro será de tal forma que la alimentación sea la celda
central y a ambos lados se vayan situando las celdas o salidas cuando sea
necesario.
Se indicarán los fabricantes de cada uno de los elementos que componen los
cuadros y el tipo de los mismos.
5.4.1.2.1 – Características.
- Protección contra agentes exteriores: IP-54, según IEC, UNE, UTE y DIN.
5.4.2 – Autómata.
21
Pliego de condiciones
5.4.3 – Software.
Las unidades que hayan de permanecer ocultas habrán de ser medidas antes de la
ocultación. Si la medida no es realizada cuando corresponda, el Contratista habrá
de realizar las operaciones pertinentes para llevarlas a cabo.
Todas las carcasas de aparatos de alumbrado, así como enchufes, etc.; dispondrán
de su toma de tierra, conectada a una red general independiente de la de los
centros de transformación y de acuerdo con el RBT.
Habrá de ponerse a tierra todas las partes metálicas de las máquinas que no se
encuentren sometidas a tensión, a fin de evitar posibles contactos.
22
Pliego de condiciones
5.4.6 – Indicaciones.
El ingeniero técnico:
23
APLICACIÓN EN LABVIEW PARA EL CONTROL
DE UNA PLANTA DESHIDRATADORA DE
ALFALFA MEDIANTE AUTÓMATA
PROGRAMABLE
I
Manual del usuario
6.1 – INTRODUCCIÓN.
1
Manual del usuario
Control de mantenimiento.
2
Manual del usuario
• Microsoft Windows 95, Windows 98, Windows NT® 4.0 con Service Pack 3
o posterior o Windows 2000.
• Tarjeta de vídeo SVGA capaz de una resolución de 1024 x 768 píxeles y una
profundidad de color de 16 bits.
• Monitor de 15 pulgadas.
3
Manual del usuario
Para iniciar la aplicación SCADA deberá hacer clic en el menú Inicio, elija
Programas > SCADA-VI.exe.
Figura 1 – Base
4
Manual del usuario
5
Manual del usuario
6
Manual del usuario
• Parada de planta.
• Automático.
• Manual.
• Emergencia.
Panel Deshidratador:
7
Manual del usuario
• Emergencia.
8
Manual del usuario
• Abrir la tajadera.
• Cerrar la tajadera.
• Activar el aspirador.
• Desactivar el aspirador.
9
Manual del usuario
Panel Enfriador:
• Emergencia.
10
Manual del usuario
• Marcha de la empacadora.
• Paro de la empacadora.
11
Manual del usuario
12
Manual del usuario
Archivos auxiliares.
Alarmas: Esta carpeta contiene los archivos que irán creando las alarmas.
Los avisos de alarma serán almacenados en un fichero con extensión .xls (hoja de
cálculo para EXCEL), este archivo se encontrará la carpeta Alarmas en el
subdirectorio donde se encuentre la aplicación SCADA.
El nombre del archivo (nombre.xls) dependerá del mes y el año en el que ha sido
notificado el aviso de alarma, ejemplo:
13
APLICACIÓN EN LABVIEW PARA EL CONTROL
DE UNA PLANTA DESHIDRATADORA DE
ALFALFA MEDIANTE AUTÓMATA
PROGRAMABLE
7 – Anexos
7 - ANEXOS:
I
SIMATIC S5
S5-90U/S5-95U
Programmable Controller
System Manual
Edition 03
System Description S5-90U/S5-95U
I/O Modules
The S5-90U and S5-95U programmable controllers can be expanded with I/O modules of the
S5-100U range. Up to 32 modules can be connected directly to the S5-95U. For the S5-90U,
however, the IM 90 interface module is required for connecting up to six modules.
These modules offer a variety of functions that supplement the onboard I/Os of the programmable
controllers.
The following I/O modules are available:
Bus Units
Bus units provide the S5-90U/95U with extra-discrete configuration and expansion capabilities. The
bus units incorporate the signal leads for communication between I/O modules and CPU. They are
simply mounted on a 35 mm standard mounting rail and interconnected using the integral flat ribbon
cable connectors.
Each bus unit has
• Two module slots
• Rotatable coding "locks" to avoid confusing of modules
• A terminal block for the signal leads.
Communications Capabilities
The SINEC L1 and SINEC L2 (S5-95U only) LANs offer extensive communications functions for data
interchange with various devices and stations. The internal 20 mA (TTY) interfaces and the CP mo-
dules additionally permit point-to-point connections, for instance, to
• Printers
• Terminals
• Personal computers
• Other programmable controllers.
Dimensions
The S5-90U and S5-95U programmable controllers are distinguished by their low space requirement.
They can be used even in places too small for accommodating a conventional control consisting of
contactors and relays. They are thus the ideal solution if a controller for a small control task must
additionally be fitted in a control cabinet already containing a complete configuration.
The two PLCs can also be operated without any I/O modules. They constitute, of course, the most
economical solution with regard to space requirements if the onboard I/Os are sufficient for
implementing the control task.
The number of bus units used for external I/Os determines the space requirement.
Mounting
The S5-90U can be mounted directly on walls or mounting plates. For this purpose, you need four
wall brackets that can be pushed into the four openings on the rear of the casing and then
mounted on the wall using screws.
The S5-95U snaps onto a 35 mm standard mounting rail which also accommodates the bus units
for the external I/O modules. Optionally, the S5-90U can also be fitted on a 35 mm standard
mounting rail.
Power Supply
When configuring a system or plant, you have to make sure the PLC is provided with the supply
voltage required.
The S5-90U can be connected directly to the 115/230 V AC mains supply.
The S5-95U can be connected directly to a 24 V DC voltage supply. Power supply modules
providing 1 A to 10 A (at 24 V) are available for connection to 115/230 V AC.
Digital Inputs/Outputs
Due to their wide range of applications, the number of inputs and outputs required by the PLCs
varies considerably.
The two PLCs permit different configurations. You can therefore select the PLC that suits your
specific task.
Counter inputs 1 13 2 66
Interrupt inputs 1 1 4 4
The PLCs offer onboard digital inputs and outputs to which the required number of I/O modules of
the S5-100U range can be added.
Analog Inputs/Outputs
The PLCs also feature analog inputs and outputs. Analog inputs and outputs are incorporated on the
S5-95U board. Both the S5-90U and S5-95U can be expanded using the relevant I/O modules of the
S5-100U spectrum.
Interrupt Inputs
In addition to the above-mentioned inputs and outputs, the S5-90U and S5-95U feature onboard
inputs for interrupt processing.
Counter Inputs
Many applications require the use of counters. The onboard counter inputs of the S5-90U and
S5-95U are adequate for a great variety of counter functions.
The following onboard counter inputs are available:
• S5-90U One up counter (16-bit) Counting frequency: 1 kHz
• S5-95U One up counter (16-bit) Counting frequency: 2 kHz,
One up counter (16-bit) Counting frequency: 5 kHz.
Both up counters can be combined in a cascade to form one 32-bit up counter.
If these inputs do not meet your requirements, e.g. with respect to the counting frequency, they can
be supplemented with counter modules of the S5-100U range.
Three different counter modules are available:
• A two-channel counter module for up to 500 Hz, two down counters;
• A fast, single-channel counter module for counting frequencies up to 500 kHz, with two
comparison values, for both counting and position decoding;
• An intelligent I/O module with two counter channels for up to 58 kHz, up or down counters.
Your PLC needs a program to carry out its control task. Depending on the task involved, these
programs can vary and place various demands on the PLCs.
User Memory
The program is loaded into the user memory when the PLC is started up. The memory capacity
represents a limiting factor for the size of the program so that, for instance, extensive programs
cannot be executed in every PLC. If data from the process is additionally stored, the memory space
available for the program is again reduced.
Execution Time
The execution time of the program determines the response time of the programmable controller to
signals from the process. Since execution times vary from program to program, the execution times
specified in Table 1-4 are referred to 1024 binary statements (1 statement corresponds to 2 bytes).
Flags/Counters/Timers
Internal flags, counters and timers are available for solving your task.
Table 1-3 gives information about the number and retentive characteristics (internal memory
contents are retained/not retained after POWER ON) of flags, counters and timers.
Counters 0 to 7 8 to 31 0 to 7 8 to 127
Timers 0 to 31 0 to 127
Structured Programming
Programs can be kept manageable if a linear sequence of operations is broken down into individual
technologically related sections that are combined to form software blocks. Organization blocks can
be used in which the reaction of the system to interrupts in cyclic program execution can be
programmed.
Time-Controlled Programming
You can use time-controlled programming if you wish to interrupt cyclic program execution at fixed
intervals in order to execute another routine. When the cyclic program is interrupted, an organization
block including the routine to be processed is called.
PID Controller
Many applications require PID control functions in addition to the usual control tasks. For this
purpose, the operating system of the S5-95U has a PID controller which can be called up from the
program. The PID controller forms an integral part of the PLC's operating system and therefore
takes up no space in the user memory.
In addition to process control, production processes often require supplementary functions, such as
closed-loop control or communication with I/Os. Special function modules are available for these
tasks.
Communications
Complex applications sometimes make it necessary for the programmable controller to communicate
with other PLCs or peripherals. SIMATIC S5 PLCs offer two possibilities:
• Point-to-point connections or
• Networking via SINEC L1 and SINEC L2 LANs.
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaaaaaaa
aaaaaaaaaa
SINEC L2 bus SINEC L1 bus
PG
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaa aaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
Printers
Computers CP S5-90U
OP
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
20mA interface
PG
a
a
a
a
a
aa
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
Printers
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
CP S5-95U
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
Computers
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
OP
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaa
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
SINEC L2 interface optional 20mA interfaces
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
(2nd interface optional)
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
Figure 1-2. Communications Capabilities
Point-to-point connections are the ideal solution for connecting up only two devices. They are
both economical and very efficient. The integral 20 mA (TTY) interface (programmer interface) can
be used to connect a programmer (PG) or operator panel (OP).
The optional second serial interface (20 mA) of the S5-95U permits the simultaneous connection of
programmers and operator panels. Additionally, the following devices can be linked:
• Other SIMATIC PLCs (SINEC L1 protocol, S5-95U as point-to-point master)
• Siemens devices (3964(R) protocol) or
• Third-party devices (ASCII protocol).
The S5-95U is optionally available with SINEC L2 interface. SINEC L2 is the LAN type required for
the lower and medium-range cell and field levels in industrial environments and conforms to the
PROFIBUS standard (DIN 19245).
The open LAN architecture permits the connection of non-Siemens field devices. However, it is also
possible to link S5-95U PLCs only.
The S5-95U with SINEC L2 interface can communicate both as active and passive station on the
bus.
Conventional controls using relays or contactors are hardwired. Their functions are implemented by
wiring the switching elements. If the control task changes, time-consuming modifications of the
wiring have to be made.
In a programmable controller, however, rewiring is taken over by the program. Modifications of
functions, testing and start-up are thus considerably facilitated.
Methods of representation
STEP 5 features four methods of representation:
• Statement list (STL)
• Control system flowchart (CSF)
• Ladder diagram (LAD)
• GRAPH 5, GRAPH Mini.
CSF
STL
Graph 5,
GRAPH Mini
LAD
The following packages are additionally available for programming sequential controls:
• GRAPH Mini and
• GRAPH 5 (limited use only; for S5-95U only)
STEP 5 Versions
STEP 5 is available in two different versions to come up to the various demands placed on the soft-
ware:
• STEP 5 for mini PLCs is designed especially for programming the S5-90U, S5-95U and S5-100U
programmable controllers.
The software is supplied with the PG 710 programmer and also executes on AT-compatible PCs.
• STEP 5 as basic package is the most powerful STEP 5 version. It can be used for all SIMATIC
PLCs - from mini PLCs to high-end PLCs.
Programmers
For programming, modifications, testing and start-up, the SIMATIC range offers a wide selection of
programmers with graded performance which can be used for any of the PLCs:
• PG 605, the hand-held unit for programming and servicing;
(for S5-90U: 6ES5 605-0UA12)
• PG 710, light and handy like a laptop; the PG 710 I variant is specially matched to mini PLCs.
• PG 730, the mobile power pack; full programming performance always at hand.
• PG 750, rugged, compact and expandable; ideal for use in the workshop and in the plant.
• PG 770, the desktop programmer for configuring and programming, process monitoring and dia-
gnostics.
* Appropriate measures must be taken to avoid vibration, shock and repetitive shock
Memory capacity
For digital inputs:
- internal RAM for STEP 5
program 8K statements Floating yes (optocoupler)
Execution time - isolated in groups of 16
- per binary operation approx. 2 µs Input voltage
Scan time monitoring approx. 300 ms - rated value 24 V
Flags 2048 (512 retentive) - at ”0” signal -30 V to +5 V DC
Timers: number/range 128/0.01 to 9990 s - at ”1” signal +13 V to +30 V DC
Counters: number/range 128/(8 retentive) Input current
0 to 999 - at ”0” signal <1.5 mA
Inputs/outputs (onboard): - at ”1” signal <6.5 mA
Digital inputs 16 (at 30 V)
Digital outputs 16 Response time
Interrupt inputs, can also be - at ”0” to ”1” typ. 2.5 ms
- at ”1” to ”0” typ. 2.0 ms
used as digital inputs 4
Counter inputs 2 Cable length unshielded max. 100 m (330 ft.)
Analog output (0 to 10V), 8 For digital outputs:
can also be used as DI
Floating yes
Analog output (0 to 10V; 0 to 20mA) 1
- isolated in groups of 16
Inputs/outputs (external I/O):
Load voltage L+
Digital inputs/outputs
- rated value 24 V DC
- total max. 448
- permissible range 20 to 30 V DC
Analog inputs/outputs
(including ripple)
- total max. 32
Output current for "1" signal max. 0.5 A at 60°C
Permissible blocks:
(140°F)
Organization blocks 1, 3, 13, 21, 22, 31,
Lamp load max. 5 W
34, 251 400 µA
Residual current for "0" signal
Program blocks 0 to 255 Output voltage
Function blocks - for "0" signal max. 2.4 V (at 6k load
- programmable 0 to 255 resistance)
- integrated 240 to 243, 250, 251 - for "1" signal max. L+ -0.6 V (at 0.5 A)
Sequence blocks* 0 to 255 Short-circuit protection yes, electronic
Data blocks 2 to 255
Limitation of the voltage in-
Operation set approx. 140 duced on circuit interruption
(internal) -16 V
Back-up battery Lithium battery Switching frequency
(3.4 V/ 850 mAh)
- resistive load max. 100 Hz
- life expectancy min. 1 year - inductive load max. 2 Hz
- service life (at 25° C/77° F) approx. 5 years Total current 6A
Power loss of the module typ. 12 W 8 A ( 50° C/
122° F)
Setting a digital output possible
Parallel switching of output yes, 0.5 A each
Cable length, unshielded max. 100 m/330 ft
* Sequence block 2 is integrated only in the S5-95U basic unit (Order No. 6ES5 095-8MA...). It can be overwritten by the
user.
Specific Onboard I/O Specifications (continued) Specific Onboard I/O Specifications (continued)
B-6
aaaaaaaaaaaaaa aaaaaaaaaaaaaa aa
aa
aa
aa
aa
aa
aa
a aa
aa
aa
aa
aaaa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
B.2.2
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
p = 0 to 3
p = 0 to 8
aaaaaaaa aaaaa aa
IP
aaaaaaaaaaaaaa aaaaaaaaaaaaaa aaaaaaaa aaaaa aa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
IN
AI
p = 1 to 30
SF
EF
NT
aaaaaaaa aaaaa aa
p = 0 to128
SLN
KBS
KBE
CBP
CAP
CBN
CCP
CAN
INP
IPN
CCN
PGN
aaaaaaaaaaaaaa aaaaaaaaaaaaaa aaaaaaaa aaaaa aa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
OB13
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
PBUS
aaaaaaa aaaaa a
p = 0 to 65536
Parameter
aaaaaaaaaaaaaa aaaaaaaaaaaaaa aa
a aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Block ID:SDP:
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaa aaaaa aa
p
p
p
p
p
p
p
p
p
q/N
q/N
p/N
p/N
p/N
p/N
aaaaaaaaaaaaaa aaaaaaaaaaaaaa aaaaaaaa aaaaa aa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
J/Y/N
aaaaaaa aaaaa a
or MBy
aaaaaaaaaaaaaa aaaaaaaaaaaaaa aa aa
a aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaa
aa
aa
aa
aaa aa
aaa
aa
aa
aa a
DBx DWy
Argument
x = 2 to 255
DB1 Parameters of S5-95U
j/J/y/Y = yes
aaaaaaaaaaaaaa aaaaaaaaaaaaaa aa
aaa
aa
aa
aa
aaa aa
aaa
aa
aa
aa a
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
processed
aaaaaaaaaaaaaa aaaaaaaaaaaaaa aa
aaaaaaa
aa
a aaaaa a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
a
aa
a
aa
a
aa
a
aa
a
aa
aaa
a
aa
a
a
aa
a
aa
a
aa
a
aa
a aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Slave number
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa aa
aaaaaaa
aa
a aaaaa a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaa
aa
aa
aa
aaa aa
aaa
aa
aa
aa a
comparison value q
comparison value q
aaaaaaaaaaaaaa aaaaaaaaaaaaaa aaaaaaaa aaaaa aa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaa aaaaa aa
CounterA, negative edge,
n/N = no
Counter B, negative edge,
y = 0 to 255
aaaaaaaaaaaaaa aaaaaaaaaaaaaa aa
aaaaaaa
aa
a aaaaa a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
a
aa
a
aa
a
aa
a
aa
a
aa
aaa
a
aa
a
a
aa
a
aa
a
aa
a
aa
a aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
SINEC L1
Cascaded counter, positive edge,
aaaaaaaa aaaaa aa
Interrupt, positive edge, channel p
Explanation
aaaaaaaa aaaaa aa
N/n = not activated
aaaaaaaaaaaaaa aaaaaaaaaaaaaa aaaaaaaa aaaaa aa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Onboard Counter
Onboard Interrupt
aaaaaaa aaaaa a
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaa aaaaa a
p = 0 to 655350 (in 10 ms steps; p=0 means: time-controlled program execution not possible)
aaaaaaaaaaaaaa aaaaaaaaaaaaaa aa aa
a aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
a
aa
a
aa
a
aa
a
aa
a
aa
aaa
a
aa
a
a
aa
a
aa
a
aa
a
aa
a aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a a
aa
a aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaa aaaaa a
aaaaaaa aaaaaaa aa
aaa
aa
aa
aa
aaa aa
aaa
aa
aa
aa a aaaaaaaa aaaaaaaaaaaaaa
aaaaaaa
1
a
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
ss
yy
aaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
hh
dd
wd
mn
aa
a
mm
aa
aaa
aa
aa
aaa
a
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
hhhhhh
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
CF
aaaaaa
TIS
existing).
STP
SET
CLK
SAV
ERR
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
OHS
OHE
STW
aa
aaa
aa
aa
aaa
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
x = 2 to 255
aaaaaaa
Parameter
a
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
S5-90U/S5-95U
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
=0 to 99 (year)
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
=01 to 31 (day)
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
=00 to 23 (hours)
aaaaaa
p
aa
aaa
aa
aa
aaa
=00 to 59 (minutes)
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
=00 to 59 (seconds)
aaaaaaa
J/Y/N
J/Y/N
J/Y/N
=0 to 999999 (hours)
or AWv
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
or AWv
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Argument
wd dd.mm.1
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
wd dd.mm.yy1
aaaaaaa
hhhhhh:mn:ss1
a
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
hh:mn:ss1 AM/PM2
hh:mn:ss1 AM/PM2
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
DBxDWy, MWz,EWv
DBxDWy, MWz,EWv
aaaaaaa
y = 0 to 255
a
aa
aa
aa
aa
aa
aa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aa
aaa
aa
aaaa
aaa
a
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
j/J=yes
aaaaaa
n/N=no
y/Y=yes
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
(Operating Hours counter Set)
aaaaaaa
Setting the clock time and date
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
p=– 400 to 400
Meaning
aaaaaaa
the 24-hour mode. You must use the same time mode in the SET and TIS parameter blocks.
a
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Error Return
(Operating Hours counter Enable)
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Setting the operating hours counter
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Clock Parameters
aaaaaa
Enabling the operating hours counter
aa
aaa
aa
aaaa
aaa
a
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Location of the clock data (CLocK Data)
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaa
Location of the status word (STatus Word)
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Updating the clock during ”STOP” (SToP) 3
aaaaaa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
”RUN” to ”STOP” or ”POWER OFF” (SAVe)
aa
aaa
aa
aa
aaa
a
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Setting the prompting time (Timer Interrupt Set)
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Saving the clock time after the last change from
aaaaaaa
Inputting the correction factor (Correction Factor)
aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaa
z = 0 to 236
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
If an argument such as seonds, for example, is not to be entered or changed, input XX. The clock continues to run with the
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
Technical Specifications, DB1 Parameters, RAM Address Assignment
aaaaaa
B-7
aaaaaaa
a aaaaaaaaaaaaaaaaaaaaaaaaaaaa
2 If you input AM or PM after the clock time, the clock runs in the 12-hour mode. If you omit this argument, the clock runs in
existing argument. In the TIS parameter block, the argument entered with ”XX” is not acknowledged by the clock (is not
3 If you monitor the program with an operator panel (e.g. OP 20), it is advantageous that the PLC updates the clock data area
SIMATIC S5
CP 521 SI
Communications Processor
Manual
Edition 03
CP 521 SI System Overview
1 System Overview
Intelligent input/output (I/O) modules extend the area of application of SIMATIC S5 program-
mable controllers. They are technology-oriented and offload the central processing unit.
The CP 521 SI communications processor is a powerful and active I/O module, which can be used
with the CPUs of the following S5 systems:
• S5-100U PLC (CPU 100 from 6ES5 100-8MA02 upward, CPU 102 or CPU 103).
• S5 95U/90U
• ET 200U (IM 318-B; it is recommended that the CP 521 SI's parameters be assigned with
memory submodules since the parameter assignment data of the CP 521 SI may be lost on
failure of the relevant station).
The CP 521 SI enables data transfer between the CPU and a peripheral device connected to the
CP 521 SI. The CP 521 SI is equipped with three interfaces for this purpose:
Memory
submodule
Serial
S5-100U bus
interface
Assignment of serial interface parameters is supported by the DB editor of the programmers. The
serial interface parameters are either stored in the memory submodule in DB1 or transferred
direct over a user program.
2 Technical Description
The general technical specifications include standards and test specifications which the CP 521 SI
meets and fulfills and which were used during testing of the CP 521 SI.
UL/CSA Approbations
The following approbations have been granted for the CP 521 SI:
UL-Recognition Mark
Underwriters Laboratories (UL) to UL standard 508, Report 116536
CSA Certification Mark
Canadian standard Association (CSA) to C22.2 standard No. 142, Report LR 48323
CE-Marking
Our products meet the requirements of EU directive 89/336/EEC "Electromagnetic Compatibility"
and the harmonized European standards (EN) listed therein.
Siemens Aktiengesellschaft
Bereich Automatisierungstechnik
AUT E 14
Postfach 1963
D-92209 Amberg
Federal Republic of Germany
Area of Application
SIMATIC products have been designed for use in the industrial area.
With individual approval, SIMATIC products can also be used in the domestic environment
(household, business and trade area, small plants). You must acquire the individual approval from
the respective national authority or testing board.
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaa
Requirements to:
Area of Application
Emitted interference Immunity
The SIMATIC programmable controller system is not a machine as defined in the EU Machinery
Directive. There is therefore no declaration of conformity for SIMATIC with regard to the EU
Machinery Directive 89/392/EEC.
SIMATC is part of the electrical equipment of a machine and must therefore be included by the
machine manufacturer in the declaration of conformity procedure.
The table below is designed to help you with the declaration of conformity and to show which
criteria apply to SIMATIC according to EN 60204-1 (as at June 1993)
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
Address identifier
(for ET200U): 223
LED displays
-TxD (green) Send
- RxD (green) Receive
- RTS (green) Ready to send
- BATr (yellow) Battery faiksre
Backup battery
Lithium +AA 3.6 V1850 mAh
Degree of protection 1P 20
Permissible ambient
temperature
- Horizontal mounting Oto60“C
- Vertical mounting oto40“c
Relative humidity 15 o% to 95 o~
Current consumption
from+9 V (CPU) typ. 140 mA
Power losses of
the module typ. 1.2 w
EWA4NEB8126072-02b 2-3
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
2-4
2.4
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
!
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
•
•
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
EPROM
EPROM
EPROM
EPROM
EEPROM
EEPROM
EEPROM
EEPROM
EPROM
EPROM
EPROM
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Warning
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Technical Description
aaaaaaaaaaaa aaaaaaaaaaaa
Submodule Type
aaaaaaaaaaaaaaaaaa
Submodule Type
Submodule Type
meter assignment data.
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Memory Submodules
PG
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Delete with
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Submodule Designation
UV erasing facility
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
2 x 8 KB
1 x 8 KB
2 x 8 KB
1 x 8 KB
1 x 2 KB
2 x 8 KB
1 x 8 KB
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
2 x 16 KB
2 x 16 KB
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
PG
PG
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
with
17
12
11
212
211
202
417
412
411
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Store Programs
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Table 2-2b. Overview of Plug-in Memory Submodules that Can Still be Used
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
When storing data on a memory submodule, make sure you enter the right
Programming No.
Programming No.
aaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaa aaaaaa aaaaaaaaa
The TTY interface is designed for passive operation. If 24 V can be fed through the subminiature D
connector, the TTY interface can also be used for active operation. There is no galvanic isolation in
the case of an active TTY interface. Links of up to 1000 m are possible.
Table 2-3. Pin Assignments of the 25-Pin Subminiature D Connector of the CP 521 SI
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
1
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaa aaaa aaaaaaaaaaaa aaaa aaaaaa aaaa aaaa aaaa aaaa aaaa aaaa
! Warning
The unassigned (disabled) pins of the 25-pin subminiature D socket connector must
not be connected as this might lead to malfunctioning of the CP 521 SI or even its
destruction.
The module has a real-time clock, which has battery backup when the module is not powered.
Setting and reading the clock is done over the CPU using a programmer.
• Seconds
• Minutes
• Hours (12/24 hr mode)
• Date
• Weekday (calculated from the date)
• Month
• Year (leap years accounted for)
We have reserved a subsection in the manual for setting and reading the clock data ( sec-
tion 4.4.3).
The module has its own backup battery for securing the real-time clock data and the contents of
the RAM (parameter assignment data, message buffer) when the controller is not powered.
When a power failure occurs or when the PLC is switched off, the clock data and parameters are
only saved if a backup battery is inserted in the module.
Batteries should be inserted and replaced with the PLC switched on, otherwise new clock and
parameter assignment data must be entered after switching it on.
! Warning
Lithium batteries cannot be recharged. Any attempt to do so could cause an explosion!
Old batteries should always be disposed of properly.
2.8 LEDs
The module is equipped with the following LEDs:
2.9 Addressing
The CPU references the CP 521 SI in the address area of the analog channels. The address area of
the module has eight bytes of input and eight bytes of output. Input data and output data are
referenced over the same address area.
The address area specified for the process image of the inputs (PII) contains data from the module
to the CPU.
Conversely, information from the CPU to the module is stored under the same addresses in the
process image of the outputs (PIQ).
Slot 0 1 2 3 4 5 6 7
The eight bytes (0 to 7) reserved per slot have a fixed meaning. The byte numbers specified in this
manual always refer to the starting address of each slot. In your control program, you must
therefore add the starting address of the slot containing the module to the byte number specified.
Byte 0 of the PIQ ”Job request” defines the meaning of bytes 1 to 7 in the PIQ.
4 Principle of Operation
Reminder:
CP 521 SI Connected
S5-CPU Peripheral Device
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
RAM RAM
aaaaaaaa
aaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Receive
message texts
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
Send mailbox
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
User
Drivers
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
Receive
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
Job buffer
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
CP acknow- Send
ledgements
aaaaaaaa
aaaaaaaa
aaaa
message frame
aaaaaaaa
aaaa
PII
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
Transfer memory
aaaaaaaa
aaaaaaaa
PIQ
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
S5-100U bus
Data transfer between the CPU and the peripheral device is handled in two steps:
CPU CP 521 SI
Data interchange between the CPU and the CP 521 SI over the S5-100U bus must always be
initiated by the CPU by transferring a job request.
Data is exchanged between the CPU and the CP 521 SI in eight-byte message blocks. The eight-
byte blocks are transferred over the S5-100U bus in a data cycle.
Reminder:
A CPU cycle (OB1: see also S5-100U PLC Manual) consists of two different time processes.
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
CP 521 SI receives
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
Time t
Figure 4-2. Job Request Transfer and Response
The cycle schematic shows that the CPU can scan the response to a job request from the CP 521 SI
at the earliest two program cycles later. This fact is significant for the user program:
Note
When evaluating data from the CP 521 SI (PII), you must allow for the fact that you
receive the response to a CPU job request (PIQ) at the earliest two program cycles after
the job request is issued. This means that, for example, you can only evaluate the error
message 4XH ”Illegal job request” two program cycles after the job request has been
issued.
There is an eight-byte transfer memory in the CP 521 SI for the organization of data transfers
between the CPU and the CP 521 SI. The principle of data exchange between the CPU and the
CP 521 SI over the transfer memory is described in Section 4.2.
Data transfer with the peripheral device is handled autonomously by the CP 521 SI over the serial
interface. The CP 521 SI is equipped with seven different drivers for this purpose.
Depending on the parameters assigned, the CP 521 SI assumes that a peripheral device with an RS-
232C (V.24) voltage interface or a TTY current interface is connected to the serial interface. The
parameters of the serial interface have default settings. They can be reset within their value
ranges depending on the active driver and the desired transmission method (XON/XOFF protocol,
handshake mode Section 6).
Data transfer over the serial interface is handled by the CP 521 SI according to the selected mode.
For this reason, we have reserved a chapter in the manual for each of the individual drivers.
• Procedure for assigning module parameters and the possible value ranges of the parameters
for this mode
• The special job request and acknowledgement mechanism between the CP 521 SI and the
peripheral device
• Conversion of job request handling into a STEP 5 program.
Note
Full duplex transmission is always possible between the CP 521 SI and the peripheral
device. This means that the CP 521 SI can send data to the peripheral device and
simultaneously receive data from the peripheral device.
• Job buffer
CPU job requests which are too complex to be processed immediately by the CP 521 SI are
stored in a buffer (job buffer). Up to 30 job requests can be buffered. When the CP 521 SI has
processed the job request, the latter is deleted in the job buffer.
• Message buffer
The message buffer is only relevant for outputting message texts. All print job requests from
the CPU are copied from the job buffer to the message buffer with date and time of day. The
message buffer can hold up to 255 job requests. When the CP 521 SI has processed the print
job request, it is deleted in the message buffer.
• Send mailbox
The eight-byte message blocks of a message frame sent by the CPU are buffered in the send
mailbox. Only when the CP 521 SI has received all message blocks of the message frame does it
send the entire message frame autonomously to the peripheral device. The send mailbox
holds 256 bytes and can only accommodate one message frame.
• Receive mailbox
The CP 521 SI stores the data received from the peripheral device in its receive mailbox. The
received data is coded into message frames and transferred further to the CPU in eight-byte
message blocks. The receive mailbox holds 1 KB, and can accommodate up to 99 message
frames.
The CPU issues a job request to the CP 521 SI in word 0, and in words 2 to 6 it can transfer further
information necessary for executing the job request.
The CPU (user program) transfers the following to the transfer memory over the PIQ:
The CP 521 SI accepts the data from the transfer memory, evaluates it and writes current data into
the transfer memory.
The CPU (user program) can access the current data in the transfer memory over the PIQ.
Note
A CPU job request will only be processed by the CP 521 SI if it is different from the
previous job request in byte 0 or byte 1 (edge evaluation). A job request will continue
to be sent to the CP 521 SI until a new job request is initiated.
CPU CP 521 SI
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
RAM RAM
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
Send mailbox
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
User
program
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
Receive
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
mailbox
Data transfer to
peripheral device
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
S5-100U bus
aaaaaaaa
aaaaaaaa
PII
aaaaaaaa
aaaaaaaa
PIQ
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
Transfer memory
Byte 2
Further
Byte 3 necessary Further
or information
Byte 4 on the
possible
Byte 5 information on acknow-
the ledgement
Byte 6
CPU job request
Byte 7
4-6
4.3
8 data bits:
7 data bits:
7 data bits:
Principle of Operation
bit
1
1
bit
bit
start
10-bit character frame:
start
start
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
X
X
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
X
X
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
X
X
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
7 data bits
7 data bits
aaaaaaaaaaaaaaaa
X
X
8 data bits
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
X
X
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
X
X
aaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
ty
X
X
aaaaaaaaaaaaaa
bit
pari-
aaaaaaaaaaaaaa
bits
stop
aaaaaaaaaaaaaa
bit
1
stop
bit
stop
8 data bits:
8 data bits:
7 data bits:
bit
bit
1
bit
start
start
11-bit character frame:
start
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
X
X
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
X
X
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
X
X
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
7 data bits
aaaaaaaaaaaaaaaa
X
X
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
8 data bits
8 data bits
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
X
X
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
X
X
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
bit
ty
X
X
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
pari-
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
bit
ty
X
pari-
2
bits
2
stop
bits
stop
1
bit
stop
Principle of Operation
4-7
Principle of Operation CP 521 SI
4.4 Status Byte, Status of the Peripheral Device and Current Clock Data
If no message blocks have yet been transferred between the CPU and the CP 521 SI, and if no
parameter assignment, print or ”Set clock” job is active, the CP 521 SI writes the following into the
transfer memory:
Byte Contents
Byte 2 Day
Byte 3 Month
Current clock data in
Byte 4 Year BCD format
Byte 5 Hours
Byte 6 Minutes
Byte 7 Seconds
Figure 4-6. Contents of the Transfer Memory - Status Information and Current Clock Data
The following CPU job requests are followed by the same replies:
• Errors/faults occurring in data interchange between the CP 521 SI and the peripheral device
• The status of a CPU job request
• The status of the CP 521 SI.
The status byte is divided into two nibbles. The nibbles are independent of each other as far as
information is concerned. They can be combined in any way (e.g. 27H: Default clock time set/no
battery backup). This enables detailed error/fault evaluation.
X 8 Message buffer The module cannot handle further print job requests
overflow at present.
The job request must be repeated.
X A* Parity error The parity of the characters received does not agree
with the parity programmed in parameter block 0.
X B* Receive after XOFF or The CP 521 SI sends XOFF and/or DTR="OFF" to the
receive after peripheral device when fewer than 20 bytes are free
DTR=”OFF” in the receive mailbox, or the CP 521 SI has received
99 message frames.
X C* Frame longer than The peripheral device has sent a frame that is more
256 bytes than 256 bytes long.
X E* Receive mailbox The receive mailbox (1024 bytes) of the CP 521 SI
overflow cannot take any more frames because:
- there is not enough memory space free or
- 99 frames have already been stored.
X F CP 521 SI in restart or Message occurs only during restart: the clock data is
job buffer full invalid and the module cannot accept job requests.
1 X Clock defective Replace module
2 X Default clock time set The clock is set with the values Sunday, 1.1.90,
12:00:00.
3 X Clock time/date error At least one setting is outside the permissible range.
The clock has not accepted the new clock data and
continues with the current data.
X = Signal state not significant for the other nibble
* These error messages are output only with the ASCII driver when a frame is fetched (terminating frame 5XH,
Section 6.5).
4-10
8
4
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
:=
:L
:L
:L
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
:BE
:AW
Example:
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
:!=F
Bits
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Q
X
X
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
4 to 7 0 to 3
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
4.0
IW 120
KH 0100
KH 0F00
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Principle of Operation
STL FB100
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Hardware fault
Status
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Mask byte 0
Scanning the status of the module
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
request.
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Explanation
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Explanation
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
CP 521 SI
•
•
•
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa
1
0
4.4.2
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
:=
:L
:L
:L
aaaaaaaaaaaa
:BE
:AW
aaaaaaaaaaaaaaaaaa
Example:
CP 521 SI
tion 4.4.3).
aaaaaaaaaaaa
Bit
:!=F
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Q
aaaaaaaaaaaaaaaaaa
X
X
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
4 to 7 0 to 3
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa
4.1
IW 120
aaaaaaaaaaaaaaaaaa
KH 0010
KH 00F0
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
STL FB101
aaaaaaaaaaaa
Mask byte 1
enables monitoring of the peripheral device.
aaaaaaaaaaaa
Status
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Explanation
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaa
Principle of Operation
aaaaaaaaaaaa
4-11
aaaaaaaaaaaaaaaaaa
The signal states of bits 0 to 3 (right nibble) of byte 1 specify the relevant weekday ( Sec-
TTY or RS-232C (V.24) terminal diagram according to Figure 5-2 or 5-3 ( Section 5.2). This
Both nibbles are independent of each other as far as information is concerned. They can be
When these conditions have been met, the error message ”Peripheral device not ready” will
In order to be able to evaluate the status of the peripheral device (e.g. printer), the following
aaaaaaaaaaaa aaaaaaaaa
Principle of Operation CP 521 SI
The clock data is provided by the integral real-time clock and updated once per second. After
module restart, the clock is set with the default value ”01.01.90 00.00.00”.
Set the clock with the CPU job request 1000H. The following values are permissible.
The settings must be entered in BCD format. You need not enter the weekday. It is calculated
automatically from the date set. Enter FFH in the relevant byte if you do not want to change the
default clock setting.
If a setting is outside the permissible range, the clock will not be set. The CP 521 SI sends error
message 3XH ”Clock time/date error”.
Note
The CP 521 SI is supplied with the default values for the date and clock time parameters
( Table 5-8). The default value for representation of the ”Current hour” is the 24-hr
mode. If you want to operate the clock with the 12h mode, you must change this time
parameter before setting the clock ( Section 5.3).
Address Contents
Maddr+0 10H
Code for "Set clock"
Maddr+1 00H
Maddr+ 2 Day
Maddr+ 3 Month
Maddr+ 4 Year
Maddr+ 5 Hours
Maddr+ 6 Minutes
Maddr+7 Seconds
4-14
Name
NAME
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
Example:
Example:
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
: BE
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
Note
: T QW
: T QW
: T QB
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
: CLOCK
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
: T QW 126
: T QW 124
: T QW 122
: T QW 120
13
: L IW 126
: T QW 11
: L IW 124
9
: L IW 122
8
: L IB 121
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
: L KH 4000
: L KH 9109
: L KH 2808
: L KH 1000
Principle of Operation
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
: CLOCK DATA
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
STL FB10
STL FB10
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
Explanation
Explanation
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
response again contains the current data of the integral real-time clock
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
Write the values for the clock data into the PIQ
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
are overwritten by a subsequent job. After the 0000H blank job has been sent, the CP
The CPU acknowledgements 5000H and 4xxxH remain (i.e. are not deleted) until they
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa
CP 521 SI
CP 521 SI Principle of Operation
• The current clock data can be inserted into message texts. For this purpose, you can enter place
holders for date and time of day when configuring the message texts ( Section 5.5.2).
• The current clock data can be read by the CPU and used in the user program.
Correction value
You can configure a correction value to improve the accuracy of the clock. See Section 5.3.5 ”Clock
Correction Factor” for more detailed information.
Note
By using the integral clock, you can evaluate the following additional messages:
When the supply voltage is restored (POWER ON), the CP 521 SI performs a restart.
If errors/faults occur during restart, the CP 521 SI transfers message to the CPU in byte 0 (status
byte) ( Section 4.4.1).
Note
The message buffer is not deleted during restart in print mode if the module has
battery backup and the memory submodule has not been replaced.
Error Number
Message Remedy
in Byte 0
1XH Clock defective Replace module
XFH CP 521 SI in restart routine Scan status byte for XFH before
transferring the first job request
X: Other nibble can assume different values; not significant here.
When the module is switched off, the clock and the RAM are powered by the module battery. The
battery is checked at every restart in order to detect a possible failure. In the event of a failure,
data in the RAM is deleted. If the battery voltage drops below the value required for backup, the
BATTERY LOW LED lights up and error ”X7H” is output in byte 0.
4.5.4
4.5.3
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
00.00.00”.
CP 521 SI
2XH
1XH
X2H
X1H
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
in Byte 0
in Byte 0
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
2. Module RAM.
Error Number
Error Number
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
1. Memory submodule
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
Clock Test
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
plugged in
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
Clock defective
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
Message
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
Message
plugged in?
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
Replace module
byte), and can be evaluated in the user program or with a programmer.
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
Remedy
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
Remedy
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
Principle of Operation
4-17
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa
If neither the memory submodule nor the RAM contain data, data provided by the system (default
Errors/faults and the basic setting are provided with an appropriate error number in byte 0 (status
battery fails during PLC POWER OFF. In the basic setting, the clock has the default value ”01.01.90
This part of the restart procedure checks the integral module clock. The clock is set if the backup
are checked here. Errors are provided with an appropriate error number in byte 0 (status byte) and
During module restart, the serial interface is initialized with the relevant parameter. Data is
The serial interface parameters and message text parameters specified in the memory submodule
aaaaaaaaaaa
Principle of Operation CP 521 SI
Various faults can occur during printer operation. The following table shows the effects.
POWER OFF BUSY line available Activated print job requests are completed after
(printer)** and BUSY signal restoration of the connection. Perfect print quality is
configured not guaranteed (e.g. smudged characters).
otherwise Activated print job requests are not completed after
restoration of the connection.
XON/XOFF protocol Activated print job requests are completed after
configured restoration of the connection.
not configured Activated print job requests are not completed after
restoration of the connection.
* Print job requests ( Section 5.6)
** Characters of the internal printer buffer are lost
Various faults can occur during bidirectional data transmission. The following table shows the
effects.
Fault Effects
CPU enters Data continues to be sent and received between the CP 521 SI and the
STOP mode * peripheral device. This can lead to overflow of the receive mailbox.
POWER OFF • Data of the send and receive message frame is lost
(CPU) • Battery backup available: Clock data is retained
Battery backup not available: Clock data is lost
Fault in CP- Data corruption occurs during data interchange (both directions)**
peripheral
device Error message of the CP 521 SI:
connection
• Character delay error after character timeout
or • Peripheral device not ready (after 20 s)
Permanent wire break
POWER OFF • Error(s) in message frame(s) in receive mailbox **
(peripheral
device)
* An active job request between the CPU and the CP 521 SI (send or receive job request) is interrupted. The job request
must be restarted after switching over from STOP to RUN.
** Data corruption cannot occur in the case of the 3964(R) procedure and in the case of SINEC L1 operation, since the
message frames are transferred in a protocol frame ( Chapters 8 and 9).
6 ASCII Driver
After selection of the ASCII driver, the CP 521 SI enables transfer of message frames between the
CPU and a peripheral device connected to the CP 521 SI:
The CP 521 SI handles data transfer with the peripheral device autonomously.
The CPU initiates data exchange between the CPU and the CP 521 SI by sending a job request. See
Section 6.4 for a precise description of the data exchange procedure.
Note
The following applies to the ASCII driver:
• When sending fixed-length frames (transparent mode) or frames with end-of-text
characters (interpretive mode I and II), the frame length and the end character are
transmitted to the CP 521 SI along with the send job ( Figure 6-6).
• When frames are received, the value programmed for the frame length or the end-of-
text character applies ( Tables 6-10 and 6-11).
• Special case for receiving fixed-length frames:
If you program a receive length that is greater than the actual length of the receive
frame, you can receive frames of variable length in transparent mode by evaluating
the message "X9H" (X9H: character delay exceeded, Section 6.5).
• If you program a receive length that is shorter than the actual length of the receive
frame, the frame will be fragmented. The "remainder frame" is assembled to form a
new frame and transmitted as such.
The time of day can be read from the module clock by the CPU also in ASCII driver mode and used
in the user program for date-dependent and time-dependent tasks. If the time is not used in the
control, the battery is not needed. The ASCII driver does not require a memory submodule.
In this mode, the CP 521 SI only evaluates the RxD line. When the CP 521 SI sends data to the
peripheral device, the peripheral device maintains the RxD line of the CP at logic ”1” as long as no
data are being sent to the CP 521 SI. If this is not the case, the CP 521 SI sends the following error
messages to the CPU:
XON/XOFF protocol:
XON/XOFF protocol in handshake OFF mode is only possible in interpretive ASCII mode. A precon-
dition is that you have configured characters for ”XON” and ”XOFF” in parameter block 2
( Section 6.3).
Both ”XON” and ”XOFF” are control characters used by the CP 521 SI to control data transmission.
The CP 521 SI sends ”XOFF” to the peripheral device if 20 bytes are still free in its receive buffer.
The peripheral device is then prompted to send no more data to the CP 521 SI. An overflow in the
receive mailbox (1 KB) would cause any data to be lost. Only when the CP 521 SI has more than 256
bytes free in its receive mailbox does it send ”XON” again to the peripheral device.
If the CP 521 SI receives the ”XOFF” character, it ceases sending further data to the peripheral
device. Only when it receives the ”XON” character does the CP 521 SI continue its send job request.
Only the receive and send lines are relevant in handshake OFF mode.
Note
In the case of peripheral devices that do not support hardware handshaking, the
CP 521 SI cannot detect failure of the peripheral device if it has been programmed for an
RS-232C (V.24) interface.
The RS-232C (V.24) interface of the CP 521 SI can operate the following control signals in hand-
shake ON mode.
Table 6-1. Possible Control Signals of the RS-232C (V.24) Interface in Handshake ON Mode
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
Note
XON/XOFF protocol is not possible if you are evaluating control signals (hand-
shake ON).
Data is transferred between the CP 521 SI and the peripheral device as follows:
The CP 521 SI sets output ”DTR”=”ON” after restart. This indicates that the CP 521 SI is ready to
operate and to receive.
1
TxD XXXXXXXX XXXXXXXX
0
ON
DTR
OFF
ON
RTS
OFF
1
RxD XXXXXXXX XXXXXXXX
0
ON
DSR
OFF
ON
CTS
OFF
Switch on CP
max. Send job request
20 s completed
max.
20 s
Figure 6-1. Timing Diagram for Data Transfer Between the CP 521 SI and a Peripheral Device
The following conditions must be met to use the CP 521 SI for ASCII mode:
1. Build up connection
Establish the electrical connection between the CP 521 SI and the peripheral device in the
POWER OFF state.
The settings on the peripheral device must agree with the parameter assignment data of the
CP 521 SI. If, for example, your peripheral device transfers data at a rate of 2400 bit/s, you must
also configure this baud rate on the CP 521 SI.
Note
• See 6.2 for configuration examples with terminal diagrams.
• See 4.3 for details of the serial interface
• See 6.3 for an explanation of assigning CP 521 SI parameters in ASCII mode.
• Transfer the parameter assignment data in the user program after POWER ON or POWER
recovery. This can be done after restart. A memory submodule is not necessary.
• Store the parameter assignment data in the memory submodule in DB1.
You configure the memory submodule with a programmer in off-line mode.
• Parameters for the interface to the peripheral device ( baud rate, type of interface, handshake
mode ...). The parameters must agree with the specifications and settings on the peripheral
device.
• Parameters for data transfer (message frame length, end-of-text character, ...).
Plug the configured memory submodule into the CP 521 SI in the POWER OFF state. Then you can
switch the CPU to POWER ON.
The CP 521 SI is automatically in transparent ASCII mode after POWER ON if the following applies:
You can set interpretive ASCII driver mode in the following way:
• Transfer the interpretive ASCII driver mode to the CP 521 SI in the user program.
• Plug a memory submodule into the CP 521 SI which you have configured with the interpretive
ASCII driver mode.
Note
If there is no memory submodule plugged into the CP 521 SI and the CP 521 SI has a
backup battery, the module is automatically assigned the parameters stored in the
RAM on POWER-ON (i.e. the parameters last assigned). In other words, the module is
activated in the same driver mode following POWER-ON as it was before POWER-OFF.
Note
You can change to another mode during operation. For this purpose, you must
transfer the ”Transfer parameter assignment data” job request to the CP 521 SI.
Remember, however, that you may have to reassign the serial interface parameters.
The send buffer and receive buffers will be deleted if you do this.
The CP 521 SI has a serial interface port. You can choose between a current interface (TTY) or a
voltage interface (RS-232C (V.24)) by setting the relevant parameters. The cables of both interfaces
connect with a 25-pin subminiature D connector.
Table 6-2. Pin Assignments of the 25-Pin Subminiature D Connector of the CP 521 SI
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
1
5 CTS Clear to send V.24)
aaaaaa aaaa aaaa aaaa aaaaaa aaaa aaaa aaaa aaaaaaaaaaaaaaaa aaaa
14
2
15
6 DSR Data ready V.24)
3 7 GND Signal ground (RS-232C (V.24))
16 8 - Disabled
4
17 9 TTY IN+ TTY receive line+
5
10 TTY IN - TTY receive line -
18
6 11 - Disabled
19 12 - Disabled
7
20 13 P24 +24 V for active TTY
8 14 - Disabled
21
9
15 - Disabled
22 16 - Disabled
10 17 20 mA Current source TTY *
23
11 18 TTY OUT+ TTY send line+
24 19 20 mA Current source TTY *
12 20 DTR Terminal ready
25
13 21 TTY OUT- TTY send line -
22 - Disabled
23 - Disabled
24 - Disabled
25 - Disabled
* If 24 V to GND (pin 7) on pin 13
The following figures show two terminal arrangements. In the ASCII driver mode, the CP 521 SI
assumes a peripheral device with an RS-232C (V.24) or TTY interface to be connected to the serial
interface.
Note
If you are using an RS-232C (V.24) interface, the CP 521 SI cannot detect failure of the
peripheral device in the case of peripheral devices that do not support hardware
handshaking.
D socket connector
25-pin subminiature
aaaaaaa
D socket connector
25-pin subminiature
CP 521 SI
CP 521 SI
2 rows, screw-mounted
aaaaaaa aaaaaa
2 rows, screw-mounted
aaaaa
CTS
DTR
DSR
RTS
GND
aaaaaaaaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaa
TTY IN -
TTY IN+
aaaaaaaa
V.24 -TXD
aaaaaaaaaaaaaaaaaa
V.24 -RXD
aaaaaaaaaa aaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaa aaaaaaaa
(5)
(6)
(2)
(3)
(20)
Section
(4)
(7)
aaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaa aaaaaaaa
Section
(10)
3.3.3
aaaaaaaaaa aaaaaaaa
3.3.3
aaaaaaaaaa
aaaaa aaaaaaaaaa aaaaaaaa
•
aaaaaaaa aaaaaaaa aaaa aaaaaaaa
•
aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa
aaaaaaaa aaaaaaaa
max. 10 m
aaaaaaaa aaaaaaaa aaaaaaaa
aaaaaaaa aaaaaaaa aaaa aaaaaaaaaaaaaaaaaaaa
(5)
(4)
(6)
(7)
(20)
aaaaaaaa aaaaaaaaaaaaaaaa aaaaaa aaaaaa aaaaaaaa
(2)
(8)
(6)
aaa aaaaaaaaaaaaaaaa
(2)
Shield
aaaaaaaa aaaaaaaaaaaa aaaaaa aaaaaaaa aaaaaaaaaaaaaaaa
(24)/(25)
aaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaa aaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaa aaaaaaaa
RTS
DTR
DSR
CTS
aaaaaaaaaaaaaaaa
GND
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaa aaaaaaaa
(20) 20 mA
(22) 20 mA
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaa aaaaaaaa aaaaaaaaaaaaaaaa
TTY IN -
Shield
aaaaaaaaaa aaaaaa aaaaaaaa
D socket connector
25-pin subminiature
CP 523
D socket connector
25-pin subminiature
CP 521 SI
+
+
2 rows, screw-mounted
Figure 6-2. Terminal Diagram CP 521 SI (TTY Passive) - CP 523 (TTY Active)
2 rows, screw-mounted
The CP 521 SI is supplied with default values for the parameter assignment data.
• Parameters for the interface to the peripheral device (baud rate, type of interface, handshake
mode ...).
The parameters must agree with the specifications and settings on the peripheral device.
• Specifications of XON/XOFF protocol.
• Parameter assignment data for data transfer (message frame length, end-of-text character).
• Correction value for the accuracy of the integral clock.
If you want to assign other parameters to the CP 521 SI, there are various ways of transferring the
parameter assignment data to the CP 521 SI:
• Transfer the parameter assignment data to the CP 521 SI in the user program.
You do not require a memory submodule to operate the CP 521 SI.
• Store the parameter assignment data on a memory submodule in data block (DB) 1 and plug
the configured memory submodule into the CP 521 SI ( Section 6.3.1).
In order to make transfer of the parameter assignment data as simple as possible, the parameter
assignment data is divided into parameter blocks.
Parameter Parameters
Block Number
0 Parameters of the serial interface
Depending on whether you want to assign your CP 521 SI parameters on a memory submodule or
in the user program, read either Section 6.3.1 or 6.3.2.
• Section 6.3.1: Assigning the CP 521 SI parameters with the memory submodule
• Section 6.3.2: Assigning the CP 521 SI parameters in the user program
Note
If there is no memory submodule plugged into the CP 521 SI and the CP 521 SI has a
backup battery, the module is automatically assigned the parameters stored in the
RAM on POWER-ON (i.e. the parameters last assigned). In other words, the module is
activated in the same driver mode following POWER-ON as it was before POWER-OFF.
You can store the parameter assignment data in DB1 on a memory submodule.
Note
The procedure for assigning parameters to the memory submodule in the ASCII driver
mode is almost identical to the procedure in printer driver mode. The only difference is
the assigning parameters to parameter block 7 in which additional data must be
specified in the ASCII driver mode.
At the programmer (PG), you must first enter in DB1 all the parameter blocks which deviate from
the default values. Then transfer DB1 to the memory submodule.
• When entering text, alternate lines in KS data format with lines in S format.
• You can enter comments in addition to the parameter blocks.
The parameter blocks can be entered in DB1 according to the following schematic.
- Enter key
The following pages explain the contents of the parameter block and include an example of how
to enter the parameters.
6-12
7
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
7
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Block
Block
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
ASCII Driver
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
POWER-OFF
POWER-OFF
ID for
Note
Note
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
ID for
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
(decimal)
(decimal)
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
(decimal)
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Character delay
Character delay
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Meaning
Meaning
Explanation of parameters
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
char.
char.
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
length" parameter in DB 1.
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
No end-of-text
No end-of-text
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
7
2
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
00H
00H
Value
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Value
Range
Range
(* 10 ms)
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
(* 10 ms)
01H to 7FH
1D to 256D
01H to 7FH
1D to 65 535D
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
00H
0DH
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
64D
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
1D to 65 535D 1D (* 10 ms)
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
1D (* 10 ms)
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
(Carriage Return)
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
Default Values
Default Values
on the CP 521 SI
Your choice of parameter assignment data for the serial interface depends on the
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaa
CP 521 SI
aaaaaaaaa
CP 521 SI ASCII Driver
You have a choice of eight baud rates. The default is 9600 bit/s. If you use the RS-232C (V.24)
interface, the load capacity of cables longer than 15 m will have a negative effect on the baud
rate. Longer cables can be used in general if the baud rate is reduced.
Parity (parameter block 0)
• Even parity
The parity bit is set so that the sum of the data bits that are ”1” (incl. parity bit) is even.
• Odd parity
The parity bit is set so that the sum of the data bits that are ”1” (incl. parity bit) is odd.
• ”Mark”
The parity bit always has signal state ”1”
• ”Space”
The parity bit always has signal state ”0”
• No parity check
The signal state of the parity bit is not significant. Parity is not checked when receiving;
however, when sending, the parity bit is always set to ”1”.
The BUSY signal is not relevant for the ASCII driver. Leave the default value ”0” (no BUSY signal) at
this point in parameter block 0.
You can choose between the RS-232C (V.24) and TTY interfaces here. See Section 2.3 for more
detailed information on these interfaces.
Characters are transmitted between the CP 521 SI and the peripheral device in a 10-bit or 11-bit
character frame. You can choose between seven and eight data bits within these character frames
( Figure 4-4, Figure 4-5)
The 11-bit character frame (1 start bit, 7 data bits, 1 parity bit, 2 stop bits) is the default.
This parameter is only significant for the RS-232C (V.24) interface. If you set HW handshake”ON”,
the ”RTS”, ”CTS”, ”DTR” and ”DSR” control signals of the RS-232C (V.24) interface are evaluated.
The default setting is HW handshake ”OFF”, i.e. the control signals are not evaluated.
XON/XOFF protocol in handshake OFF mode is only possible in interpretive ASCII mode. A precon-
dition is that you have configured characters for ”XON” and ”XOFF” in parameter block 2.
Both ”XON” and ”XOFF” are control characters used by the CP 521 SI to control data transmission.
The CP 521 SI sends ”XOFF” to the peripheral device if 20 bytes are still free in its receive buffer.
The peripheral device is then prompted to send no more data to the CP 521 SI. An overflow in the
receive buffer (1 byte) would cause any data to be lost. Only when the CP 521 SI has more than
256 bytes free in its receive mailbox does it send ”XON” again to the peripheral device.
If the CP 521 SI receives the ”XOFF” character, it ceases sending further data to the peripheral
device. Only when it receives the”XON” character does the CP 521 SI continue its send job request.
You define the desired ”ASCII driver” mode in parameter block 7. You can distinguish between
interpretive ASCII mode and transparent ASCII mode.
• Transparent mode
Set a ”1” in parameter block 7 to select transparent ASCII driver mode.
• Interpretive mode I
Set a ”2” in parameter block 7 to select interpretive ASCII driver mode I.
• Interpretive mode II
Set a ”7” in parameter block 7 to select interpretive ASCII driver mode II.
You can determine yourself the maximum time which is permitted to elapse between two
received characters (character delay). The CP 521 SI will then recognize as valid and transfer to the
CPU in a message frame only those characters which have a delay within the defined limits. Select
as short a character delay as your application will allow but ensure that the character delay is
greater than the character transmission time. Approximately 3 1/2 times the character trans-
mission time is recommended.
The ”Message frame length” parameter is relevant for transparent ASCII mode when receiving
message frames. Receive message frames must have a fixed length in ASCII mode. You can define
the message frame length in parameter block 7. Make sure that the same message frame length is
set on the CP 521 SI and the peripheral device.
The ”End-of-text character” parameter is only relevant for interpretive ASCII mode. Transmission
with end marking is not possible in transparent mode.
You can configure one or two end-of-text characters for transmitting data frames of variable
length. Your end-of-text characters limit the length of the data frame in each case. You can send
or receive message frames with a length of up to 256 bytes.
You can configure a correction value in parameter block 9 to improve the accuracy of the module
clock. Note that the correction value must be specified with four digits (incl. sign).
The correction value is output in s/month. The month is fixed at 30 days ( Section 5.3.5 Clock
Correction Factor (parameter block 9)).
Example: Using the PG 750 to configure data on the memory submodule for operation in ASCII
mode
The CP 521 SI is installed in slot 7 (starting address 120). The module is to be operated in
interpretive ASCII driver mode I and configured as follows:
The end-of-text character (parameter block 3) functions as separator between the various
parameters of a parameter block.
0:
aaaaaaaaaaaaaa
6-16
96:
84:
72:
60:
48:
36:
24:
12:
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
(KS ...).
KS
KS
KS
KS
KS
KS
KS
KS
ASCII Driver
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
='CP521SI
=':9$-001$
aaaaaaaaaaaaaa
=':0$800110$
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
=':7$2$10$0D$0A$
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
='Parameter block_9
='Parameter block_7
='Parameter block_0
='Parameters for the
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
';
';
';
';
';
';
';
';
aaaaaaaaaaaaaa
- 1 second / 30 days
aaaaaaaaaaaaaa
time-of-day correction
aaaaaaaaaaaaaa
Explanation
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
CP 521 SI
CP 521 SI ASCII Driver
Contents of the transfer memory when assigning the CP 521 SI parameters in the user program
Address Contents
Maddr +0 90H
Code for "Transfer parameter
Maddr +1 Block number assignment data"
Maddr+ 2 Parameter
Maddr+ 3 Parameter
Maddr + 4 Parameter
Maddr + 5 Parameter
Maddr + 6 Parameter
Maddr +7 Parameter
Evaluate CP response to the "Transfer parameter assignment data" job in the PII:
Note
The CPU acknowledgements 5000H and 4000H remain (i.e. are not deleted) until they
are overwritten by a subsequent job (e.g. blank job 0000H).
When evaluating data from the CP 521 SI (PII), allow for the fact that you receive the
acknowledgement of a CPU job (PIQ) only after two program scan cycles following submission of
the job.
This has the following significance for parameter assignment with the user program:
• At least seven program scan cycles are required for parameter assignment in parameter blocks
0, 2 and 7.
Default Values on
Byte Meaning Value Range
the CP 521 SI
0 Job request number 90H -
”Transfer parameter assignment data”
1 Number of the parameter block 00H -
1
0
3
2
1
0
6+7
4+5
2+3
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
Byte
Byte
4 to 7
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
CP 521 SI
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
Not significant
Not significant
ON as before POWER-OFF.
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
Character delay
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
XON/XOFF protocol
XON/XOFF protocol
Meaning
Meaning
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
No protocol
No protocol
XON character *
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
XOFF character *
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
71H
90H
20H
90H
FFH
FFH
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
(* 10 ms)
00H to 7FH
00H to 7FH
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
Value Range
Value Range
0001H to 00FFH
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
0001H to FFFFH
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
You must not assign the same values for the ”XON” and ”XOFF” characters.
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
-
You can assign values for the XON and XOFF characters in parameter block 2.
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
40H
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
FFFFH
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
protocol)
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
-
-
-
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
submodule
0001H(* 10 ms)
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
(No XON/XOFF
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
CP 521 SI
CP 521 SI
texts plugged in
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
0: Memory submo-
Table 6-10. Transfer Memory Assignment for the ”Transfer Parameter Assignment
1: Without memory
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
Only if there is no battery backup; if a backup battery has been installed, the same driver mode is active after POWER-
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
6-19
ASCII Driver
If you have the XON/XOFF protocol, you have a free choice of the XON/XOFF characters. ASCII
code provides the codes 11H (DC1) for the XON character and 13H (DC3) for the XOFF character.
aaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa
ASCII Driver CP 521 SI
Table 6-11. Transfer Memory Assignment for the ”Transfer Parameter Assignment
Data for Block 7” Job Request (Interpretive ASCII driver)
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaa
Note
If the CP 521 SI is operated in the interpretive mode of the ASCII driver, specification of
the frame length is irrelevant. Enter the value 0000H in DB1 for the "Frame length"
parameter.
Reminder:
Data is transferred between the CPU and the peripheral device in two steps.
• First, data transfer between the CPU and the CP 521 SI is coordinated.
• Only then can the CP 521 SI send data to the peripheral device or receive data from the
peripheral device.
CPU CP 521 SI
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
RAM RAM
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
Send mailbox
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
User program
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaaaaaaaa
aaaaaa
Receive
mailbox
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
aaaaaaaaaa
CP acknow-
ledgements
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
S5-100 bus
aaaaaaaa
aaaa
PII
aaaaaaaa
aaaaaaaa
aaaa
PIQ
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaa
Transfer memory
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
Data transfer to the peripheral device over the 25-pin interface of the CP 521 SI
Sending
The CPU transfers message frames with a maximum permissible length of 256 bytes in blocks of
eight bytes (6 bytes of useful data) to the CP 521 SI (transfer memory). The transmitted message
blocks of the message frames are buffered in the send mailbox of the CP 521 SI. Only when the
CP 521 SI has received all message blocks of a message frame does it transfer the whole message
frame autonomously over the serial interface to the peripheral device. The send mailbox
accommodates 256 bytes and can only hold one message frame at a time.
Receiving
The CP 521 SI can receive message frames with a length of 256 bytes from the peripheral device.
The receive data is stored in the receive mailbox. The CP 521 SI encodes the received data into
message frames and transfers the frames in blocks of eight bytes (6 bytes of useful data) to its
transfer memory. The frames are ready to be fetched there by the CPU. The receive mailbox holds
1 KB and can accommodate up to 99 message frames.
The CPU transfers message frames in eight-byte blocks. The message frames have a maximum
length of 256 bytes. Each block consists of a header code of two bytes (coordination bytes) and six
bytes of useful data.
1. The CPU initiates data transfer with the job request A001H. This job request also defines the
message length. If 0 is set, one or two end-of-text characters must be assigned ( ).
2. The CP 521 SI acknowledges receipt of this job request to the CPU ( ).
3. The CPU evaluates the response and begins transferring the current data only if no errors have
been detected. Transfer is started with job request B0H and specification of a block number
( ). Six bytes of data follow. The last message block transferred may contain less than six bytes
depending on the send length or the end-of-text character(s).
4. The CP 521 SI writes the block into a send mailbox where it first stores the whole message. The
CPU receives an acknowledgement from the CP 521 SI after every eight bytes ( ).
5. The CPU then sends the next message block to the CP, and so on. This data transfer continues
until all message blocks of a message frame have been transferred. A message frame can have
a maximum length of 256 bytes.
6. After the last message block has been completely received, the CP 521 SI generates a ter-
minating acknowledgement and sends this to the CPU.
7. The CP 521 SI gathers the message blocks together into a message frame and transfers the
frame automatically to the peripheral device.
Note
Only one message frame can be stored in the send mailbox of the CP 521 SI. The CPU
can only send the next message frame to the CP 521 SI when this message frame has
been transferred to the peripheral device.
The following is a description of which job requests the CPU uses when prompting the CP 521 SI to
send messages and how the CP 521 SI acknowledges these job requests. Table 6-12 contains all the
CPU job requests permissible in ASCII mode. After setting the interface parameters (90H)
( Section 6.3), job requests A0H and B0H are relevant for sending data.
Table 6-12. Permissible CPU Job Requests when Sending Message Frames (PIQ)
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaa
Byte 0 Meaning
10H Set date and time of day; variables in bytes 1 to 7 ( Section 4.4.3)
The schematic on the following pages shows the overall data transfer procedure for sending data.
This is followed by a description of the steps shown.
Message blocks of eight bytes as used for message frames are represented. The CPU job request
varies from block to block, as does the corresponding acknowledgement from the CP 521 SI.
• First, data transfer between the CPU and the CP 521 SI is coordinated.
• Only then is data transferred.
CPU CP 521 SI
Byte 0 1 2 3 4 5 6 7
CPU CP 521 SI
CPU CP 521 SI
CPU CP 521 SI
CPU CP 521 SI
CPU CP 521 SI
CPU CP 521 SI
CPU CP 521 SI
... after the data has been sent to the peripheral device ...
CPU CP 521 SI
To coordinate data transfer, job request A0H is written into byte 0 of the PIQ.
6 Irrelevant
7 Irrelevant
Byte 1: You allocate send permission for a message by setting bit 0=1. This initiates data
transfer.
Bytes 2 and 3: Bytes 2 and 3 indicate the message length. The length can lie within the range 0001H
to 0100H. You must have set this length on the receive device because the send
length is not transferred, in contrast to the end-of-text character.
In the case of a message length of 0, the CP 521 SI evaluates the end-of-text character. If both send
length and end-of-text character are 0, there is a job request error.
If data is to be sent from the CPU to a peripheral device, the ”Send length” and ”End-of-text
parameters” must be transferred with the send job request.
When the CP 521 SI receives the ”Coordinate data transfer” job request A0H with send bit 01H
(”Send message”) set, and if there is no error, the CP 521 SI acknowledges the CPU as follows (PII):
3 00H Irrelevant
4 00H to 63H Number of messages in receive mailbox of the CP (messages
from the peripheral devices) to be read by the CPU (max. 99
messages)
5 Irrelevant
6 Irrelevant
7 Irrelevant
Byte 1: ”Send” coordination bit set. If the coordination data is invalid, the CP 521 SI resets
the ”Send bit” to 00H.
Byte 2: Indicates whether the coordination data is valid (00H) or invalid (FFH).
Byte 4: Indicates how many messages (max. 99D) are stored in the receive mailbox of the CP
512 SI.
As soon as data transfer has been coordinated ( and ), data transfer begins with job request
B0H ( to ).
Note
The CP 521 SI usually transfers the date and time of day to the CPU in bytes 1 to 7
( Section 4.4). If byte 0 has the value 50H or 60H, you must not interpret these values
as the time of day.
(PII):
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Byte 0:
Byte 1:
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Byte
Byte
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
CP 521 SI
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
7 as data.
01H
81H
01H
00H
01H
50H
01H
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
B0H
Value
Value
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Irrelevant
Irrelevant
Irrelevant
00H - 63H
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Data valid
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Job request:
Data
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Send data
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Meaning
Meaning
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
the CP 521 SI, output job request B001H with the 1st message block of the message (PIQ).
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
6-27
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
ASCII Driver
time you send a message block to the CP 521 SI. This continues until the whole data
After you have output job request A0H and received the corresponding acknowledgement from
must increment this block number in your user program - beginning at 01H - each
Job request: Send data. After this job request B0H, the CP 521 SI interprets bytes 2 to
The CP 521 SI acknowledges the ”Send 1st message block of the message” job request as follows
Indicates the number of the message block being transferred (1 in this case). You
aaaaaaa aaaaaaa
ASCII Driver CP 521 SI
Byte 1: "Send" coordination bit set. If coordination data of the CPU is invalid, the CP 521 SI
resets the Send bit to 00H.
Byte 3: Specifies the number of the message block that the CP 521 SI has just received (1 in
this case).
Note
Please note that the CP 521 SI only responds to a signal change in byte 0 or 1 of the PIQ.
Since job request ”B0H” in byte 0 does not change as long as the data of a message is
being sent, it is imperative that you increment the block numbers in byte 1 until all
message blocks of the message have been transferred. If you send the wrong block
number, data transfer is stopped with the response 5000H in byte 0 and byte 1 and the
CP 521 SI then signals ”Job request error” (4XH) in status byte 0 of the module. The data
is lost.
If you send the next job request B0H with incremented byte 1 ( ), the CP 521 SI acknowledges with
incremented byte 3 ( ).
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Byte
Byte
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
CP 521 SI
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Note
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
02H
81H
01H
00H
01H
50H
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
2BH
B0H
Value
Value
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Irrelevant
Irrelevant
Irrelevant
00H to 63H
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Data
Data
Data
Data
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Job request:
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Irrelevant
Irrelevant
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
(byte 256)
(byte 255)
Send data
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
Meaning
Meaning
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
blocks in one message (42 of 6 bytes and 1 of 4 bytes). This leaves only four bytes for
Since a message may not exceed 256 bytes, you can transfer a maximum of 43 message
6-29
aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa
ASCII Driver
If you send a message of variable length and you use the maximum message length, the last CPU
aaaaaaaa aaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
6-30
aaaaaaaaaaaa aaaaaaaaaaaa
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
aaaaaaaaaaaa aaaaaaaaaaaa
Byte
Byte
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
ASCII Driver
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
Final CP response
aaaaaaaaaaaa aaaaaaaaaaaa
00H
81H
01H
00H
00H
50H
81H
01H
00H
01H
50H
aaaaaaaaaaaa aaaaaaaaaaaa
2BH
Value
Value
aaaaaaaaaaaa aaaaaaaaaaaa
Irrelevant
Irrelevant
Irrelevant
Irrelevant
Irrelevant
Irrelevant
00H to 63H
00H to 63H
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
Irrelevant
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaa aaaaaaaaaaaa
Meaning
Meaning
aaaaaaaaaaaa aaaaaaaaaaaa
the CPU receives a last message from the CP 521 SI. This resets the coordination bit.
aaaaaaaaaaaa aaaaaaaaaaaa
CP 521 SI
CP 521 SI ASCII Driver
Data transfer with end-of-text characters is similar to transfer with fixed-length messages. They
differ in that, when sending with end-of-text character in conjunction with job request ”A001H”
(cf.: sending messages), one or two end-of-text characters must be transferred in bytes 4 and 5.
6 Irrelevant
7 Irrelevant
Bytes 2 and 3: You can define the length of a message here (0000H to 0100H). If you want to send
messages with end-of-text characters, program 0000H=Send with end-of-text
character here. You must then define another one or two end-of-text characters in
bytes 4 and 5.
Bytes 4 and 5: You define your end-of-text characters here. If you want to use two end-of-text
characters, fill both bytes. If you only use one end-of-text character, fill byte 5 only.
Only one end-of-text character is used in the example (byte 4=00H).
Note
If the message is longer than 256 data bytes (>0100H), the CP 521 SI responds with
5000H and then with message 4XH ”Job request error”. The CP 521 SI responds with the
same error message if it detects no end-of-text character(s) after receiving 256 data
bytes. The data received is then rejected.
The peripheral device sends message frames to the CP 521 SI. The messages are gathered in a
receive mailbox in the CP 521 SI. This receive mailbox has a capacity of 1 KB and can store 99
messages.
You program the CPU so that it reads out the existing messages from the receive mailbox in eight-
byte blocks (two job request bytes and six data bytes):
1. The CPU sends a job request: Coordinate data transfer ”Receive”, to the CP 521 SI.
2. The CP starts data transfer. It sends the first six bytes of the ”oldest” message in the receive
buffer (FIFO memory).
4. The CP 521 SI sends a further block, and so on until the whole message has been transferred
from the CP 521 SI to the CPU.
Note
If the time between two received characters is greater than the value you have set for
the character delay (ZVZ), the characters received up to this point are valid and are
transferred to the CPU as a message frame.
The CPU receives an immediate final acknowledgement 5000H to the ”Coordinate receive” job
request (A080H) if there is no receive message.
If you want to receive fixed-length message frames from a peripheral device using the CP 521 SI,
you must define the message length with which both devices are to work. If the CP is to receive
data, it must be configured with the same length as the sending peripheral device since the send
length is not transferred.
The following is a description of which job requests the CPU uses to allow the CP 521 SI to receive
data from peripheral devices and how the CP 521 SI acknowledges these job requests. After you
have set the interface parameters (90H) ( Section 6.3), job requests A0 and C0 are relevant for
receiving data ( Table 6-23).
Table 6-23. Permissible CPU Job Requests when Receiving Data (PIQ)
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
Byte 0 Meaning
Figure 6-7 illustrates the whole data transfer sequence when receiving message frames. This is
followed by a description of the steps shown in the figure.
Message blocks of eight bytes each, as are used when receiving messages, are represented. The
CPU job request and the relevant CP 521 SI acknowledgement alternate from block to block.
• First, data transfer between the CPU and the CP 521 SI is coordinated.
• Only then can the CP 521 SI transfer data it has received from peripheral devices and buffered
in the receive mailbox to the CPU.
CPU CP 521 SI
Byte 0 1 2 3 4 5 6 7
CPU CP 521 SI
CPU CP 521 SI
CPU CP 521 SI
CPU CP 521 SI
CPU CP 521 SI
Byte 1:
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
in byte 0:
Byte
Byte
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
CP 521 SI
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
of bytes 1 to 7.
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
01H
60H
80H
A0H
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Value
Value
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Irrelevant
Irrelevant
Irrelevant
Irrelevant
Irrelevant
Irrelevant
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Job request:
Data
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Meaning
Meaning
Table 6-24. Coordination Job Request
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
6-35
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
ASCII Driver
data transfer. The CP 521 SI resets this receive bit after a complete receive message
You give permission to receive a message frame by setting bit 7=1. This initiates
message) set, and if there are no errors, the CP 521 SI acknowledges the CPU job request with 60H
If the CP 521 SI receives job request A0H (Coordinate data transfer) with receive bit 80H (Receive
To coordinate data transfer, write job request A0H into byte 0 of the PIQ. This defines the meaning
aaaaaaa aaaaaaa
ASCII Driver CP 521 SI
Byte 1: Indicates the number of the message block the CP 521 SI is transferring to the CPU.
The CP 521 SI increments the block number by 1 continuously, starting with block
01H, for as long as it is transferring a message block to the CPU.
The CPU acknowledges entry of the message block with ”C0H” in byte 0:
2 Irrelevant
3 Irrelevant
4 Irrelevant
5 Irrelevant
6 Irrelevant
7 Irrelevant
Byte 1: Number of the message block which the CPU has received (here 01H). The
acknowledged block number must agree with the number of the block sent,
otherwise data transfer will be aborted.
Note
The CP 521 SI continues to send a message block to the CPU until it receives
acknowledgement. For this reason, the CPU receives the data of the acknowledged
block from the CP 521 SI once more within the same data cycle in which it was
acknowledged. The CPU program must take account of this or the CP 521 SI will receive
an acknowledgement with the wrong block number, and data transfer will be
aborted.
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Byte
Byte
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
CP 521 SI
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
19H
19H
60H
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
C0H
Value
Value
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Irrelevant
Irrelevant
Irrelevant
Irrelevant
Irrelevant
Irrelevant
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Data
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Meaning
Meaning
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
block of a message ( ). The CP 521 SI terminates data transfer with a final reponse ( ):
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
Table 6-27. Data Transfer: Receive the 25th (Last) Message Block
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
6-37
aaaaaaaaaaaaaa aaaaaaaaaaaaaa
ASCII Driver
Data transfer continues in the manner described until the CPU has acknowledged the last message
aaaaaaa aaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
6-38
aaaaaaaaaaaaaa
Byte 5:
Byte 4:
Byte 2:
Byte 1:
7
6
5
4
3
2
1
0
aaaaaaaaaaaaaa
Byte
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
ASCII Driver
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
Data valid
00H
02H
01H
00H
00H
50H
aaaaaaaaaaaaaa
Value
aaaaaaaaaaaaaa
Irrelevant
Irrelevant
01H to 06H
00H to 63H
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
Irrelevant
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
Coordination information
aaaaaaaaaaaaaa
aaaaaaaaaaaaaa
CP 521 SI
CP 521 SI ASCII Driver
All the CPU job requests permissible in ASCII mode are listed in this section. There is also a
complete list of error messages with which the CP 521 SI acknowledges CPU job requests.
00H 00H Blank job request: Display current time-of-day data ( Section 4.4)
It is often relevant to evaluate a current message frame. With the job "Delete receive mailbox
contents" (D0H) you have now the possibility to delete the receive mailbox before receiving the
relevant message frame.
Note
When executing the job "Delete receive mailbox contents", the serial interface of the
CP 521 SI is briefly disabled. If the peripheral device connected continues to send data,
the first message frame received by the CP 521 SI can be faulty or incomplete.
The interface to the CPU is also briefly occupied by the CP checkback signal "0FH".
Therefore always evaluate the CP acknowledgement to the job "Delete receive
mailbox contents" before you send further CPU job requests to the CP 521 SI.
The CP 521 SI acknowledges the job "Delete receive mailbox contents" like all
parameterization jobs with the terminating message "5000H" and specification of the
job acknowledged (here: "D000H") in bytes 6 and 7 of the CP response.
If data has not yet been transferred and you write a job request in word 0 of the PIQ (byte 0 and
byte 1) other than the job executed above, the CP 521 SI stores an error message in the status byte
(PII).
The following are illegal job requests in ASCII mode which are acknowledged with the error
message 4XH:
• All job requests concerned exclusively with print mode (20H, 30H, 40H, 50H, 60H, 70H, 80H).
• All job request numbers outside the permissible value range for CPU job requests (D1H to FFH).
• Job request number 90XXH if the parameter blocks are configured with data from outside the
permissible value range; if a parameter assignment job contains errors, the CP 521 SI writes the
rejected job request into word 6 (bytes 6 and 7) of the CP acknowledgement ( Section 6.3.2).
• Job request number B0XXH and C0XXH if data transfer has not previously been initiated.
4
2
1
0
4
2
1
0
4
2
1
0
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
Byte
Byte
Byte
3, 5 to 7
3, 5 to 7
3, 5 to 7
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
CP 521 SI
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
nnH
nnH
01H
00H
00H
02H
00H
50H
01H
00H
50H
5XH
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
Irrelevant
Irrelevant
Irrelevant
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
No message
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
Coordination information
Coordination information
Coordination information
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
Meaning
Meaning
Meaning
6-41
aaaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaa
ASCII Driver
Exception: Receive messages with error X9H (character delay exceeded) are sent to the CPU. All
CPU job requests transferred to the CP 521 SI during a data transfer must be part of the data
Message 4XH ”Illegal job request” is transmitted if the CPU tries to continue data transfer after it
characters received correctly in the CP 521 SI before expiry of the character delay are
traffic. All job requests other than ”00H” and ”B0H+block number” cause data transfer to be
aaaaaaa aaaaaa aaaaaa
ASCII Driver CP 521 SI
The following error messages may appear after transmission of the ”Coordinate data transfer”
coordination job request.
Byte 0 Message
Bit 4 to 7 Bit 0 to 3
Note
The CP response remains (i.e. is not deleted) until it is overwritten by a subsequent job
(e.g. blank job 0000H)
The time between two received characters is greater than the value set in parameter block 7.
The data received up to the error is transferred to the CPU as a message.
The parity of received characters does not agree with the parity configured in parameter block 0.
The message is not transferred to the CPU and is not stored in the receive mailbox.
Error message XBH is output if the peripheral device has sent more characters than the CP 521 SI
can accommodate in the receive mailbox. The message is not transferred to the CPU and not
stored in the receive mailbox.
The peripheral device has sent a message which is longer than 256 bytes.
The CP 521 SI outputs error message XCH if it has not detected an end-of-text character after
receiving 256 characters.
The message is not transferred to the CPU and not stored in the receive mailbox.
If these values are exceeded when receiving a message from the peripheral device, the CP 521 SI
outputs an error message.
The message is not transferred to the CPU and is also not stored in the receive mailbox.