Documentos de Académico
Documentos de Profesional
Documentos de Cultura
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 Segra, la Noguera, el Valle del Ebro, ...
1
Memoria Descriptiva
1- Tapiz.
4- Quemador.
5- Trommel.
6- Despedregadores.
7- Aspirador.
8- Cicln.
11- Tajadera.
14- Enfriador.
2
Memoria Descriptiva
22- Empacadora.
1.4.2.1 Tapiz.
Figura:
Datos Tcnicos:
Datos Motor
Potencia motor: 15 kW.
Tensin alimentacin: 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 Tcnicos:
Velocidad 55 min-1.
Datos Motor
Potencia motor: 4 kW.
Tensin alimentacin: 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 Tcnicos:
Longitud: 4 m.
Datos Motor
Potencia motor: 9,2 kW.
Tensin alimentacin: 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 activacin.
3- Salida avera.
5
Memoria Descriptiva
Figura:
Datos Tcnicos:
1.4.2.5 Trommel.
6
Memoria Descriptiva
Datos Tcnicos:
Longitud: 20 m.
Dimetro: 3,5 m.
Datos Motor
Potencia motor: 18,5 kW.
Tensin alimentacin: 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 slido extrao que acompae a la alfalfa
(piedras, restos metlicos, ...) puedan daar la estructura interna del trommel [5]
o el aspirador [7] existen dos receptculos situados a ambos extremos del
trommel. Todo elemento extrao 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 neumticos, se abrirn unas
trampillas que expulsarn al exterior todos los restos depositados.
Figura:
Datos Tcnicos:
1.4.2.7 Aspirador.
Est formado por un motor elctrico trifsico asncrono a cuyo eje est acoplada
directamente una hlice de 5 paletas helicoidales, el movimiento de esta hlice
crea una corriente de aire que succiona la alfalfa contenida en el trommel [5].
8
Memoria Descriptiva
Figura:
Datos Tcnicos:
1.4.2.8 Cicln.
Figura:
9
Memoria Descriptiva
Figura:
Datos Tcnicos:
Datos Motor
Potencia motor: 5,5 kW.
Tensin alimentacin: 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 Tcnicos:
Longitud: 3 m.
Datos Motor
Potencia motor: 7,5 kW.
Tensin alimentacin: 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:
Cicln
Sobradero Enfriador
11
Memoria Descriptiva
Datos Tcnicos:
Figura:
Datos Tcnicos:
Longitud: 1,5 m.
Datos Motor
Potencia motor: 5,5 kW.
Tensin alimentacin: 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 Tcnicos:
Longitud: 1,5 m.
Datos Motor
Potencia motor: 5,5 kW.
Tensin alimentacin: 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 Tcnicos:
14
Memoria Descriptiva
Figura:
Datos Tcnicos:
Velocidad 55 min-1.
Datos Motor
Potencia motor: 7,5 kW.
Tensin alimentacin: 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 elctrico trifsico asncrono a cuyo eje est acoplada
directamente una hlice de 5 paletas helicoidales, el movimiento de esta hlice
crea una corriente de aire que succiona la alfalfa contenida en el enfriador[14].
15
Memoria Descriptiva
Figura:
Datos Tcnicos:
16
Memoria Descriptiva
Figura:
Est formado por un motor elctrico trifsico asncrono a cuyo eje est acoplada
directamente una hlice de 5 paletas helicoidales, el movimiento de esta hlice
crea una corriente de aire que succiona la alfalfa contenida en la esclusa de finos
[24].
Figura:
Datos Tcnicos:
17
Memoria Descriptiva
Figura:
18
Memoria Descriptiva
Figura:
Datos Tcnicos:
Datos Motor
Potencia motor: 0,37 kW.
Tensin alimentacin: 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 Tcnicos:
Longitud: 1,75 m.
Datos Motor
Potencia motor: 5,5 kW.
Tensin alimentacin: 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 activacin.
3- Salida avera.
20
Memoria Descriptiva
Figura:
Datos Tcnicos:
21
Memoria Descriptiva
Figura:
Datos Tcnicos:
Longitud: 5 m.
Anchura: 1,25 m.
Datos Motor
Potencia motor: 1,5 kW.
Tensin alimentacin: 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 Tcnicos:
Datos Motor
Potencia motor: 0,37 kW.
Tensin alimentacin: 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 extrada del trommel es transportada por la succin del aspirador hasta
el cicln [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 cicln.
La alfalfa es depositada por la esclusa del cicln [9] en la rosca de salida del
cicln [10] esta la transporta hasta la tajadera [11] que segn su posicin la
distribuir hacia el grupo enfriador o hacia la rosca del sobradero [12].
Por lo general la alfalfa se dirigir haca el grupo enfriador, pero en caso de que
este sufra alguna avera 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 ventilacin y evitar que la alta temperatura con la que llega
provoque su fermentacin.
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
cicln de la aspiracin 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 cicln de la aspiracin de finos [19], all cae a la parte alta del enfriador, y es
de nuevo enviado a la empacadora.
1- Detectores de giro.
2- Electrovlvulas.
3- Contactores.
4- Rels.
5- Protecciones.
6- Fuente de alimentacin.
7- Variador de frecuencia.
8- Autmata programable.
9- Armarios.
10-Ordenador PC.
26
Memoria Descriptiva
Figura:
BN/1
+
BK/4
PNP
-
BU/3
Los detectores sern puestos en tensin por la salida del autmata que activa la
mquina controlada.
27
Memoria Descriptiva
1.5.2.2 Electrovlvulas.
Figura:
Y1 Y2
Los cilindros de los despedregadores son de simple efecto, la fuerza ejercida por
el aire comprimido solo acta en un sentido del movimiento del embolo, el otro
movimiento de embolo tiene lugar por la accin 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 Rels.
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.
Magnetotrmico principal Tetrapolar 380 V, 100 A.
Magnetotrmico maniobra Bipolar 220 V, 20 A.
Armario variador:
Interruptor diferencial principal Tetrapolar 380 V, 63 A/300 mA.
Magnetotrmico principal Tetrapolar 380 V, 63 A.
Armario enfriador:
Interruptor diferencial principal Tetrapolar 380 V, 100 A/300 mA.
Magnetotrmico principal Tetrapolar 380 V, 100 A.
Todos los motores, salvo el del aspirador, estarn protegidos por medio de rels
trmicos.
El aspirador estar protegido por el variador.
Habr de ponerse a tierra todas las partes metlicas de las mquinas que no se
encuentren sometidas a tensin, 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 ms efectivo que un arranque estrella-tringulo para
disminuir las puntas de corriente que se producen durante el arranque.
Regulacin de la velocidad:
32
Memoria Descriptiva
33
Memoria Descriptiva
Caractersticas:
Limite de Corriente Rpida (Fast Current Limit, FCL) para operacin 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 aceleracin/deceleracin.
Todos los productos hacen uso del mismo interfaz de usuario estndar 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
Mdulo 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
Mdulo 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
Operacin.
Identificador del parmetro.
:U E 32.0
Parmetro.
45
Memoria Descriptiva
se podr saltar desde un mdulo a otro (anidado), siempre que no superemos los
16 niveles de salto que permite como mximo el autmata.
Otras limitaciones son:
- El salto de un mdulo 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 mxima.
46
Memoria Descriptiva
8 kB de longitud mxima.
Los mdulos DB1 y DB2 se emplean para definir las condiciones internas
del autmata, por lo que no deben emplearse.
1.5.2.9 Armarios.
Se instalarn 3 armarios:
47
Memoria Descriptiva
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 gua
GEMMA (Guide dEtude des Modes de Marches et dArrts).
En funcionamiento.
En interrupcin o defecto.
La gua GEMMA representa cada una de las cuatro situaciones: sin alimentar, en
funcionamiento, en parada y en interrupcin o defecto; mediante sendos
rectngulos-estado y la produccin mediante un quinto rectngulo-estado que
interseca con los tres rectngulos-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 podrn relacionarse con parte de los
que propone la gua 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
vendrn marcadas por el valor de las variables del sistema.
1.5.3.2 GRAFCET.
Un Grafcet es una sucesin 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 transicin. Una transicin es una funcin booleana que
expresa la condicin lgica necesaria para poder pasar la transicin y activar la
siguiente etapa.
El cumplimiento de la funcin no es condicin suficiente para pasar la transicin,
es necesario adems que la etapa anterior est activa.
52
Memoria Descriptiva
- Secuencia:
- Seleccin de secuencia:
- Salto de etapas:
53
Memoria Descriptiva
- Repeticin de secuencia:
- Paralelismo interpretado:
- Paralelismo interpretado:
- Regla 1: Inicializacin.
54
Memoria Descriptiva
Prestaciones:
55
Memoria Descriptiva
1.5.4.1.1 Comunicacin.
La aplicacin SCADA se comunicar con el autmata por medio del puerto serie
del ordenador y el procesador de comunicaciones CP 521SI acoplado al
autmata.
La comunicacin utilizar como interface fsica la propia del puerto serie del
ordenador, es decir la RS-232, y como cdigo el ASCII.
56
Memoria Descriptiva
57
Memoria Descriptiva
Filosofa de LabVIEW:
El Panel Frontal es el interfaz que el usuario esta viendo y puede ser totalmente
parecido al instrumento del cual se estn recogiendo los datos, de esta manera el
58
Memoria Descriptiva
Adems estos Sub-VIs son muy tiles por ejemplo en el campo de clculos
numricos complejos que no se encuentran incluidos en las libreras de
LabVIEW.
Se podra 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 sera
muy difcil entenderla.
Para realizar la aplicacin SCADA primero se crearon todo los Vis encargados
de la comunicacin, el control y gestin de datos, la supervisin y gestin de
alarmas, la gestin de los diferentes paneles de control y visualizacin, los
programas auxiliares, etc.
Una vez todos los mdulos fueron unidos la aplicacin 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 cntimos.
El ingeniero tcnico:
64
APLICACIN EN LABVIEW PARA EL CONTROL
DE UNA PLANTA DESHIDRATADORA DE
ALFALFA MEDIANTE AUTMATA
PROGRAMABLE
2 Memoria de clculo
2 MEMORIA DE CLCULO:
I
Memoria de clculo
II
Memoria de clculo
III
Memoria de clculo
IV
Memoria de clculo
2 MEMORIA DE CLCULO.
1
Memoria de clculo
SALTO INCONDICIONAL
SALTO CONDICIONAL
RETORNO DE SALTO
LECTURA Y ADAPTACIN DE
LAS ENTRADAS ANALGICAS
ALARMA
GUIA GEMMA
COMUNICACIN
2
Memoria de clculo
2.1.1.1.4 Alarma.
2.1.1.1.6 Comunicacin.
Este subprograma realiza la lectura de los tres canales analgicos de entradas del
autmata utilizados en el proceso, adems de tratar los valores para su posterior
anlisis y envo al ordenador.
3
Memoria de clculo
2.1.1.1.4 Alarma.
4
Memoria de clculo
2.1.1.1.6 Comunicacin.
5
Memoria de clculo
2.1.2.1 Entradas.
6
Memoria de clculo
7
Memoria de clculo
8
Memoria de clculo
9
Memoria de clculo
2.1.2.2 Salidas.
De igual forma que las entradas, este tipo de variables lo pdenos dividir en 2
grupos:
Salidas fsicas: son las seales enviadas por parte del autmata al
proceso.
Salidas virtuales: son las seales enviadas por parte del autmata al
ordenador.
10
Memoria de clculo
11
Memoria de clculo
12
Memoria de clculo
13
Memoria de clculo
14
Memoria de clculo
15
Memoria de clculo
Cada pulsador fsico (Px) tiene un pulsador virtual asociado (PxS), as las
funciones que realiza un pulsador fsico son realizados de igual forma por su
homnimo virtual.
Adems de las parejas pulsador fsico virtual existen 4 pulsadores virtuales sin
su correspondiente pareja fsica, ya que realizan funciones exclusivas de la
aplicacin SCADA. Estos pulsadores son el de Prueba de comunicacin (PPCS)
el de Cambio en la consigna (PCCS), el de Funcionamiento manual (P3S) y el de
Funcionamiento automtico (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 excepcin a esto que es el pulsador de Parada de emergencia (P5S), ya
que igual que su homnimo fsico presenta la caracterstica 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 actan en el subprograma
Funcionamiento Manual.
16
Memoria de clculo
Este subprograma realiza la lectura de los tres canales analgicos de entradas del
autmata utilizados en el proceso, adems de tratar los valores para su posterior
anlisis y envo al ordenador.
Est constituido por el mdulo FB 2, y es procesado cclicamente por el
autmata.
En el proceso existen tres funciones analgicas que actan como entradas para el
autmata:
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 informacin, por esto el
subprograma una vez ledo el valor lo modifica haciendo un desplazamiento de la
17
Memoria de clculo
18
Memoria de clculo
Primera funcin:
19
Memoria de clculo
Segunda funcin:
Como el estado de deteccin de baja velocidad durar un scan del programa sera
imposible informar sobre l al ordenador, as no podramos 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
almacenarn 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 asociacin es por una
accin de set el estado de estas marcas permanecer hasta que no sean reseteadas,
esto suceder cuando se accione uno de los siguientes pulsadores (tanto fsico
como virtual):
Alarma tratada.
20
Memoria de clculo
PB 1 Alarma general:
Para desactivar la alarma se actuar sobre los pulsador (tanto virtual como fsico)
Alarma Tratada, desactivndose a la vez las sealizaciones luminosa y acstica.
Los pulsadores de reset de las sealizaciones actan de igual forma con la alarma
y su respectiva sealizacin.
FB 4 Alarma deshidratador:
En este mdulo se analizan todas las causas que pueden representar un peligro
para la actividad del grupo deshidratador, as se analiza el estado de:
Rels trmicos.
Detectores de giro.
Finales de carrera de inspeccin.
Detectores de avera.
Sondas de temperatura.
Temporizador Watchdog del arranque
del grupo deshidratador.
21
Memoria de clculo
FB 5 Alarma enfriador:
En este mdulo se analizan todas las causas que pueden representar un peligro
para la actividad del grupo enfriador, as se analiza el estado de:
Rels trmicos.
Detectores de giro.
Finales de carrera de inspeccin.
Detectores de avera.
Temporizador Watchdog del arranque
del grupo enfriador.
22
Memoria de clculo
23
Memoria de clculo
1- Etapa F4 Arranque grupo deshidratador, una vez que todas las mquinas del
grupo enfriador estn activas y no estn activas las del grupo deshidratador,
esto ltimo indicado por la conformidad del quemador (E 75.7).
2- Etapa F1 Produccin con enfriador, una vez que todas las mquinas del
grupo enfriador estn activas y tambin estn activas las del grupo
deshidratador.
1- Etapa F1 Produccin con enfriador, una vez que todas las mquinas del
grupo deshidratador estn activas y tambin estn activas las del grupo
enfriador, esto ltimo indicado por la conformidad de la empacadora (E 75.6).
2- Etapa F2 Produccin sin enfriador, una vez que todas las mquinas del grupo
deshidratador estn activas y no estn activas las del grupo enfriador.
24
Memoria de clculo
planta de forma individual por medio de sus pulsadores (PMS1, ..., PMS23;
PPS1, ..., PPS21; PAS1, PAS2; PCS1 y PCS2).
25
Memoria de clculo
26
m
Memoria de clculo
r
Gua 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 clculo
7
Gua GEMMA, transiciones operativas:
4
7
*
*
E
E
M
*
*
E
E
M
M
M
M
M
28
Memoria de clculo
Este mdulo contiene el Grafcet que controla la puesta en marcha de todas las
mquinas que forman el grupo enfriador.
La puesta en marcha de las mquinas 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 mquinas al final
de la lnea de produccin son las primeras en ponerse en marcha y, por el
contrario, las mquinas en cabeza de la lnea de produccin son conectadas al
final.
Grafcet nivel 1:
29
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
30
Memoria de clculo
Este mdulo contiene el Grafcet que controla la puesta en marcha de todas las
mquinas que forman el grupo deshidratador.
La puesta en marcha de las mquinas 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 mquinas al final
de la lnea de produccin son las primeras en ponerse en marcha y, por el
contrario, las mquinas en cabeza de la lnea de produccin son conectadas al
final.
La transicin que sigue a la etapa inicial consiste en una bifurcacin 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 clculo
Grafcet nivel 1:
32
Memoria de clculo
Grafcet nivel 2:
33
Memoria de clculo
Grafcet nivel 3:
34
Memoria de clculo
Este mdulo realiza funciones sencillas, por lo que no haremos uso de ningn
Grafcet:
35
Memoria de clculo
Al igual que el anterior, este mdulo realiza funciones sencillas, por lo que no
haremos uso de ningn Grafcet:
36
Memoria de clculo
Este mdulo 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 clculo
Grafcet nivel 2:
Grafcet nivel 3:
38
Memoria de clculo
Grafcet nivel 1:
39
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
40
Memoria de clculo
Grafcet nivel 1:
Grafcet nivel 2:
41
Memoria de clculo
Grafcet nivel 3:
42
Memoria de clculo
Este Grafcet evaluar las condiciones que provocaran una desactivacin directa
del aspirador de finos, la esclusa de finos y el transporte de cadenas.
As cualquier situacin que represente un peligro para la integridad de estas
mquinas provocar como reaccin la activacin de esta parada.
Est parada no afectar al resto de mquinas 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 clculo
Grafcet nivel 3:
44
Memoria de clculo
Este Grafcet evaluar las condiciones que provocaran una desactivacin directa
de la empacadora, la esclusa del enfriador, el enfriador y la rosca salida
enfriador.
As cualquier situacin que represente un peligro para la integridad de estas
mquinas provocar como reaccin la activacin 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 clculo
Grafcet nivel 3:
46
Memoria de clculo
Este Grafcet evaluar las condiciones que provocaran una desactivacin directa
del aspirador del enfriador.
As cualquier situacin que represente un peligro para la integridad de esta
mquina provocar como reaccin la activacin 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 clculo
Grafcet nivel 3:
48
Memoria de clculo
Este Grafcet evaluar las condiciones que provocaran una desactivacin directa
del erizo del enfriador.
As cualquier situacin que represente un peligro para la integridad de esta
mquina provocar como reaccin la activacin 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 clculo
Grafcet nivel 3:
50
Memoria de clculo
Este Grafcet evaluar las condiciones que provocaran una desactivacin directa
de la rosca de alimentacin del enfriador.
As cualquier situacin que represente un peligro para la integridad de esta
mquina provocar como reaccin la activacin 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 clculo
Grafcet nivel 3:
52
Memoria de clculo
Este Grafcet evaluar las condiciones que provocaran una desactivacin directa
del tapiz, el erizo del tapiz, la rosca de salida del tapiz y el quemador .
As cualquier situacin que represente un peligro para la integridad de estas
mquinas provocar como reaccin la activacin 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 clculo
Grafcet nivel 3:
54
Memoria de clculo
Este Grafcet evaluar las condiciones que provocaran una desactivacin directa
del trommel.
As cualquier situacin que represente un peligro para la integridad de esta
mquina provocar como reaccin la activacin 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 clculo
Grafcet nivel 3:
56
Memoria de clculo
Este Grafcet evaluar las condiciones que provocaran una desactivacin directa
de la alimentacin 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 clculo
Grafcet nivel 2:
58
Memoria de clculo
Este Grafcet evaluar las condiciones que provocaran una desactivacin directa
del aspirador.
As cualquier situacin que represente un peligro para la integridad de esta
mquina provocar como reaccin la activacin 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 clculo
Grafcet nivel 3:
60
Memoria de clculo
Este Grafcet evaluar las condiciones que provocaran una desactivacin directa
de la esclusa del cicln.
As cualquier situacin que represente un peligro para la integridad de esta
mquina provocar como reaccin la activacin 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 clculo
Grafcet nivel 3:
62
Memoria de clculo
Este Grafcet evaluar las condiciones que provocaran una desactivacin directa
de la rosca de salida del cicln.
As cualquier situacin que represente un peligro para la integridad de esta
mquina provocar como reaccin la activacin 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 clculo
Grafcet nivel 3:
64
Memoria de clculo
Este Grafcet evaluar las condiciones que provocaran una desactivacin directa
de la rosca del sobradero.
As cualquier situacin que represente un peligro para la integridad de esta
mquina provocar como reaccin la activacin 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 clculo
Grafcet nivel 3:
66
Memoria de clculo
Grafcet nivel 1:
Grafcet nivel 2:
67
Memoria de clculo
Grafcet nivel 3:
68
Memoria de clculo
_____________________
NOTA: En la siguiente figura se indica la estructura los Grafcets de nivel 1 ya que esta es
idntica para todos.
_____________________
69
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
70
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
71
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
72
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
73
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
74
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
75
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
76
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
77
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
78
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
79
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
80
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
81
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
82
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
83
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
84
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
85
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
86
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
87
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
88
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
89
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
90
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
91
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
92
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
93
Memoria de clculo
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 transicin que sigue a la etapa inicial consiste en una bifurcacin 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 clculo
Grafcet nivel 1:
95
Memoria de clculo
Grafcet nivel 2:
96
Memoria de clculo
Grafcet nivel 2:
E 75.7 * M 90.5
97
Memoria de clculo
Este mdulo contiene un Grafcet que realizar una evaluacin del estado de la
planta y segn el resultado se realizar una parada controlada de todas las
mquinas para lograr vaciar de producto el circuito.
Como esta etapa de la gua 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
seleccin 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 marcarn la sucesin
de activacin de etapas.
98
Memoria de clculo
Grafcet nivel 1:
99
Memoria de clculo
Grafcet nivel 2:
100
Memoria de clculo
Grafcet nivel 3:
101
Memoria de clculo
2.1.2.8.10 - PB 12 Salidas:
Este mdulo 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 clculo
l D
l D
103
Memoria de clculo
l KlM KDM
l D
Grafcets nivel 3:
104
Memoria de clculo
Grafcets nivel 3:
Grafcets nivel 3:
105
Memoria de clculo
Grafcets nivel 1:
Grafcets nivel 2:
Grafcets nivel 2:
106
Memoria de clculo
Grafcets nivel 1:
Se ha accionado el pulsador
virtual de cierre de los
despedregadores o ha
transcurrido la temporizacin
de apertura o est activa la
etapa 31.
Grafcets nivel 2:
Grafcets nivel 3:
107
Memoria de clculo
Grafcets nivel 3:
Grafcets nivel 3:
108
Memoria de clculo
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 clculo
110
Memoria de clculo
Grafcets nivel 3:
Grafcets nivel 1:
111
Memoria de clculo
Grafcets nivel 2:
Grafcets nivel 3:
Grafcets nivel 3:
112
Memoria de clculo
Grafcets nivel 3:
Grafcets nivel 3:
113
Memoria de clculo
Grafcets nivel 3:
Grafcets nivel 3:
114
Memoria de clculo
Grafcets nivel 3:
Grafcets nivel 3:
115
Memoria de clculo
Grafcets nivel 3:
Grafcets nivel 3:
116
Memoria de clculo
Grafcets nivel 3:
Grafcets nivel 3:
117
Memoria de clculo
Grafcets nivel 1:
Grafcets nivel 2:
Grafcets nivel 2:
118
Memoria de clculo
Grafcet nivel 1:
119
Memoria de clculo
Grafcets nivel 2:
Grafcets nivel 3:
120
Memoria de clculo
Grafcet nivel 1:
Grafcet nivel 2:
121
Memoria de clculo
Grafcet nivel 3:
Grafcet nivel 1:
122
Memoria de clculo
Grafcet nivel 2:
Grafcet nivel 3:
123
Memoria de clculo
2.1.2.8.11 - PB 13 Despedregadores:
124
Memoria de clculo
Desplazamiento
125
Memoria de clculo
PB 3 Comunicacin.
FB 6 CP-Parmetros.
FB 7 Pulso.
FB 8 Distribuidor.
FB 9 Enviar.
FB 10 Recibir.
FB 14 Preparacin datos bloque 1.
FB 15 Preparacin datos bloque 2.
FB 16 Preparacin datos bloque 3.
2.1.2.9.1 - PB 3 Comunicacin:
Este mdulo gestiona los saltos a los dems mdulos y controla el valor de la
marca M 90.4 Comunicacin con el ordenador activa.
126
Memoria de clculo
2.1.2.9.2 - FB 6 CP-Parmetros:
Este mdulo solo se leer una vez y su funcin ser la de cargar en el CP 521 SI
los valores de configuracin para la comunicacin:
Data format: Este valor indica el formato de cada byte de comunicacin, a cada
byte de informacin se le aade 1 bit de Start, 1 bit de paridad y 1 bit de Stop.
127
Memoria de clculo
Message length: Tamao, en bytes, del paquete de datos que se recibir del
ordenador.
2.1.2.9.3 - FB 7 Pulso:
Este mdulo crea un pulso de un scan cada 2 segundos (M 161.0), este pulso ser
utilizado por el mdulo FB 8 Distribuidor para iniciar el mdulo FB 9 Enviar o
FB 10 Recibir. Estos 2 segundos sern el periodo entre envos de datos al
ordenador; dicho de otro modo, la informacin enviada al SCADA ser
refrescada cada 2 segundos.
2.1.2.9.4 - FB 8 Distribuidor:
128
Memoria de clculo
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 clculo
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:
= Relacin entre bits de datos y el total de bits por carcter.
Fu = Bits de datos por carcter.
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 transmisin (9.600 baudios).
t = Tiempo en realizar el envo CP 521 SI - Ordenador.
130
Memoria de clculo
2.1.2.9.6 - FB 10 Recibir:
El ordenador enva al autmata, 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 clculo
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:
= Relacin entre bits de datos y el total de bits por carcter.
Fu = Bits de datos por carcter.
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 transmisin (9.600 baudios).
t = Tiempo en realizar el envo Ordenador CP 521 SI.
132
Memoria de clculo
133
Memoria de clculo
2.1.2.10.1 OB 1:
1- Adaptacin de pulsadores.
4- Alarma.
5- Gua GEMMA.
6- Comunicacin.
2.1.2.10.2 OB 21:
Este mdulo se ejecuta una sola vez y en primer lugar despus de un rearranque:
STOP RUN.
En nuestro caso activa las etapa inicial de la gua GEMMA y la de los Grafcets
de Salida.
134
Memoria de clculo
2.1.2.10.3 OB 22:
135
Memoria de clculo
AI 0:
Este valor indica que el autmata no lee ninguna entrada analgica, 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
autmata, por defecto son tratados los 128 temporizadores de los que dispone.
136
Memoria de clculo
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 Mdulo conexin manual (STOP RUN).
:
:
:BE
2.1.3.3 OB 1.
SEGMENTO 1
137
Memoria de clculo
138
Memoria de clculo
139
Memoria de clculo
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 clculo
141
Memoria de clculo
142
Memoria de clculo
2.1.3.7 PB 1 Alarma.
SEGMENTO 1
:SPA FB 4 Salto al mdulo Alarma Deshidratador.
:
:UN M 100.2 Gua GEMMA, Produccin Sin Enfriador.
:SPB FB 5 Salto al mdulo 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 Acstica.
:
:U M 80.7 Reset Sealizacin 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 Sealizacin Acstica adaptado.
:R M 91.2 Desactivar Marca Alarma Acstica.
:R M 108.0 Desactivar Alarma General.
:S M 91.4 Activar marca auxiliar Alarma Acstica.
:
: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 Acstica.
:
: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 Acstica.
:S M 91.2 Activar Marca Alarma Acstica.
:
: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 clculo
144
Memoria de clculo
145
Memoria de clculo
: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. Inspeccin 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. Inspeccin Cicln.
146
Memoria de clculo
147
Memoria de clculo
148
Memoria de clculo
:
: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 clculo
150
Memoria de clculo
151
Memoria de clculo
:
:U M 100.1 Marca asociada a Produccin 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 Automtica.
:R M 100.1 Desact. Produccin con Enfriador.
:
:***
152
Memoria de clculo
153
Memoria de clculo
154
Memoria de clculo
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 clculo
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 Cicln.
:U E 74.5 Conformidad R. S. Cicln.
:U E 78.1 Conformidad Alimentacin Variador.
:U A 6.4 Salida Esclusa Cicln .
:U A 6.7 Salida R. S. Cicln .
: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 clculo
157
Memoria de clculo
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 Comunicacin con Ordenador activa.
:U A 32.3 Salida Anular Consig. Analgica.
:= M 90.6 Activar Consigna Analgica.
:
: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 Produccin con Enfriador.
:L KT 120.3 Tiempo 1200 seg.
:SE T 1 Temporizacin 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 Temporizacin 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 Mdulo Despedregadores.
:
:
:U M 90.4 Comunicacin con Ordenador activa.
:U M 81.3 Cambio en la Consigna Analgica adaptado.
:SPB FB 11 Mdulo Salida Analgica Aspirador.
:
:
:BE
158
Memoria de clculo
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 Comunicacin con Ordenador activa.
:U A 32.3 Salida Anular Consig. Analgica.
:= M 90.6 Activar Consigna Analgica.
:
: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 Mdulo Despedregadores.
:
:U M 90.4 Comunicacin con Ordenador activa.
:U M 81.3 Cambio en la Consigna Analgica adapt.
:SPB FB 11 Mdulo Salida Analgica Aspirador.
:
:
:BE
159
Memoria de clculo
160
Memoria de clculo
161
Memoria de clculo
162
Memoria de clculo
:***
163
Memoria de clculo
164
Memoria de clculo
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 clculo
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 clculo
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. Inspeccin 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 clculo
SEGMENTO 13 ASPIRADOR
:U M 151.0 SCADA Marcha Alimentacin Variador.
:= M 112.0 Marcha virtual Alimentacin Variador.
:
:UN E 78.4 Averia Grupo Variador-Aspirador.
:O E 79.4 F.C. Inspeccin Cicln.
:O E 79.5 F.C. Inspeccin Aspiracin.
:O M 80.4 Paro Emergencia adaptado.
:O M 151.1 SCADA Paro Alimentacin Variador.
:= M 112.1 Paro virtual Alimentacin 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 (Alimentacin 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 clculo
169
Memoria de clculo
170
Memoria de clculo
:
:***
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 clculo
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 Temporizacin 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 clculo
173
Memoria de clculo
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 Temporizacin 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 clculo
175
Memoria de clculo
:
:
:BE
176
Memoria de clculo
2.1.3.19 PB 12 Salidas.
177
Memoria de clculo
178
Memoria de clculo
179
Memoria de clculo
180
Memoria de clculo
181
Memoria de clculo
182
Memoria de clculo
:
:***
183
Memoria de clculo
184
Memoria de clculo
185
Memoria de clculo
186
Memoria de clculo
187
Memoria de clculo
188
Memoria de clculo
189
Memoria de clculo
190
Memoria de clculo
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 Temporizacin Despedregadores abiertos.
:
:U T 3 Temporizador Despedregadores abiertos.
:L KT 100.1 Tiempo 10 seg.
:SE T 4 Temporizacin Despedregadores cerrados.
:
:
:BE
191
Memoria de clculo
SEGMENTO 1
:L MW 146 Cargar Consigna Analgica 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 clculo
2.1.3.22 PB 3 Comunicacin.
193
Memoria de clculo
2.1.3.23 FB 6 CP-Parmetros.
194
Memoria de clculo
:
:L KH 9071 Iniciar carga siguientes
:T AW 64 valores de configuracin al CP 521.
:L KH 0001 Carcter 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 parmetros ya cargado.
:
:***
195
Memoria de clculo
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 comunicacin.
:
:UN T 22
:UN M 161.1 Marca auxiliar del pulso.
:U(
:O M 81.1 01 Prueba de comunicacin adaptada activa.
:O M 81.0 01 Comunicacin con Ordenador adaptada activa.
:) 01
:= M 161.1 Activar marca auxiliar del pulso.
:S M 161.0 Activar marca pulso.
:
:
:BE
196
Memoria de clculo
2.1.3.25 FB 8 Distribuidor.
197
Memoria de clculo
2.1.3.26 FB 9 Enviar.
198
Memoria de clculo
199
Memoria de clculo
M002:L EW 64 Ha terminado
:L KH F00F
:UW el envio
:L KH 5000
:><F
:SPB =M005 de los datos?.
:
:UN E 66.0 Se ha producido
:SPB =M006 un error?.
:
:UN M 162.1
:S M 162.1 Activar marca indic. Error en envio.
M006:R M 162.2 Desactivar marca indic. Envio iniciado.
:R M 162.0 Desactivar marca indic. Iniciar envio.
:
:L KH 0000 Enviar al CP 521 el mensaje
:T AW 64 final de transmisin.
:
:
M005:BE
200
Memoria de clculo
2.1.3.27 FB 10 Recibir.
201
Memoria de clculo
M002:L EW 64 Es el actual
:L KH F0FF
:UW bloque de datos
:LKH6002
:><F
:SPB =M003 el 2 bloque?.
:
:L EW 66 Leer la 4 palabra de datos.
:T MW 150 Almacenar la 4 palabra de datos.
:L EW 68 Leer la 5 palabra de datos.
:T MW 152 Almacenar la 5 palabra de datos.
:L EW 70 Leer la 6 palabra de datos.
:T MW 154 Almacenar la 6 palabra de datos.
:
:L KH C002 Confirmar recepcin
:T EW 64 del 2 bloque de datos.
:BEA
:
M003:L EW 64 Ha terminado
:L KH F00F
:UW la recepcin
:L KH 5000
:><F
:SPB =M004 de los datos?.
:
:UN E 66.0 Se ha producido
:SPB =M005 un error?.
:
:UN M 162.5
:S M 162.5 Activar marca indic. Error en recepcin.
M005:R M 162.6 Desactivar marca indic. Recepcin iniciada.
:R M 162.4 Desactivar marca indic. Iniciar recepcin.
:
:L KH 0000 Enviar al CP 521 el mensaje
:T EW 64 final de transmisin.
:
:
M004:BE
202
Memoria de clculo
203
Memoria de clculo
204
Memoria de clculo
205
Memoria de clculo
206
Memoria de clculo
207
Memoria de clculo
208
Memoria de clculo
209
Memoria de clculo
P006 = 2:
P007 = 0:
P012 = 23:
P025 = 5:
P041 = 23:
P042 = 39:
P053 = 13:
210
Memoria de clculo
P080 = 0,92:
P082 = 2975:
P083 = 275:
P084 = 380:
P085 = 160:
211
Memoria de clculo
7- Aplicacin definitiva.
212
Memoria de clculo
P-General.vi
P-Deshidratador.vi
P-Enfriador.vi
P-Datos-Auxiliares.vi
Prueba-Comunicacin.vi
213
Memoria de clculo
Cambio-Contrasea.vi
Cambio-Puerto-Serie.vi
Leer-Datos-Autmata.vi
Enviar-Datos-Autmata.vi
Resetear-Datos-Pantallas.vi
Alarma.vi
Grabar-Alarma.vi
Gestin-Datos-Mantenimiento.vi
NArranques.vi
Tiempo-Funcionamiento.vi
Gemma.vi
Gestin-Datos-Control.vi
Las variables globales son un tipo especial de programa que almacena datos y
nos permiten compartirlos entre los programas autnomos. En nuestra aplicacin
utilizamos 6 variables globales:
Consigna-Aspirador.gbl
Datos-Autmata-Pantallas.gbl
Descripcin-Alarma.gbl
Emergencia.gbl
Datos-Entre-Pantallas.gbl
Pantalla.gbl
214
Memoria de clculo
Iconos:
En Labview cada programa y variable global est asociado a un icono, este icono
lo utilizaremos tanto en la representacin de los niveles de jerarqua como en la
explicacin del desarrollo y funcionamiento de cada programa o funcin.
Base.vi
P-General.vi
P-Deshidratador.vi
P-Enfriador.vi
P-Datos-Auxiliares.vi
215
Memoria de clculo
Programas (SubVis):
Prueba-Comunicacin.vi
Cambio-Contrasea.vi
Cambio-Puerto-Serie.vi
Funciones (SubVis):
Leer-Datos-Autmata.vi
Enviar-Datos-Autmata.vi
Resetear-Datos-Pantallas.vi .
Alarma.vi
Grabar-Alarma.vi
Gestin-Datos-Mantenimiento.vi
Tiempo-Funcionamiento.vi
NArranques.vi
Gemma.vi
Gestin-Datos-Control.vi
216
Memoria de clculo
Funciones (SubVis):
Consigna-Aspirador.gbl
Datos-Autmata-Pantallas.gbl
Descripcin-Alarma.gbl
Emergencia.gbl
Datos-Entre-Pantallas.gbl
Pantalla.gbl
217
Memoria de clculo
Programa Base.vi :
218
Memoria de clculo
Programa P-General.vi:
Programa P-Deshidratador.vi :
219
Memoria de clculo
Programa P-Enfriador.vi :
Programa P-Datos-Auxiliares.vi :
220
Memoria de clculo
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-Comunicacin.vi
2.3.1.1.7 - Cambio-Contrasea.vi
2.3.1.1.8 - Cambio-Puerto-Serie.vi
2.3.1.1.9 - Leer-Datos-Autmata.vi
2.3.1.1.10 - Enviar-Datos-Autmata.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 - Gestin-Datos-Mantenimiento.vi
2.3.1.1.15 - NArranques.vi
2.3.1.1.16 - Tiempo-Funcionamiento.vi
2.3.1.1.17 - Gemma.vi
2.3.1.1.18 - Gestin-Datos-Control.vi
2.3.1.1.19 - Consigna-Aspirador.gbl
2.3.1.1.20 - Datos-Autmata-Pantallas.gbl
221
Memoria de clculo
2.3.1.1.21 - Descripcin-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 aplicacin.
Grabacin de estos datos tratados para que los tengan disponibles las
pantallas de control y visualizacin.
222
Memoria de clculo
2.1.1.1.2 P-General.vi
Lectura de los datos que provienen del autmata y han sido tratados en
Base.vi .
223
Memoria de clculo
2.3.1.1.3 - P-Deshidratador.vi
Lectura de los datos que provienen del autmata y han sido tratados en
Base.vi .
224
Memoria de clculo
2.3.1.1.4 - P-Enfriador.vi
Lectura de los datos que provienen del autmata y han sido tratados en
Base.vi .
225
Memoria de clculo
2.3.1.1.5 - P-Datos-Auxiliares.vi
Lectura de los datos que provienen del autmata y han sido tratados en
Base.vi .
2.3.1.1.6 - Prueba-Comunicacin.vi
Si lo activamos nos pedir permiso para realizar una prueba de comunicacin con
el autmata.
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 clculo
2.3.1.1.7 - Cambio-Contrasea.vi
2.3.1.1.8 - Cambio-Puerto-Serie.vi
2.3.1.1.9 - Leer-Datos-Autmata.vi
227
Memoria de clculo
2.3.1.1.10 - Enviar-Datos-Autmata.vi
Esta funcin es utilizada directamente tanto por los programas que controlan las
pantallas como por Base.vi , ya que el al tener que activar/desactivar la aplicacin
SCADA tambin tiene que comunicarse con el autmata.
2.3.1.1.11 - Resetear-Datos-Pantallas.vi
2.3.1.1.12 - Alarma.vi
228
Memoria de clculo
2.3.1.1.13 - Grabar-Alarma.vi
Esta es utilizada directamente por los programas que controlan las pantallas y por
la funcin Alarma.vi .
2.3.1.1.14 - Gestin-Datos-Mantenimiento.vi
Esta funcin es la encargada de grabar y leer los datos sobre las horas de
funcionamiento y el nmero de ciclos de arranque de cada mquina de la planta.
Estos datos son grabados/ledos del archivo dtm.rtl situado en la carpeta Datos.
2.3.1.1.15 - NArranques.vi
229
Memoria de clculo
2.3.1.1.16 - Tiempo-Funcionamiento.vi
2.3.1.1.17 - Gemma.vi
2.3.1.1.18 - Gestin-Datos-Control.vi
230
Memoria de clculo
2.3.1.1.19 - Consigna-Aspirador.gbl
2.3.1.1.20 - Datos-Autmata-Pantallas.gbl
231
Memoria de clculo
2.3.1.1.21 - Descripcin-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 clculo
2.3.1.1.24 - Pantalla.gbl
233
Memoria de clculo
2.3.2.1 Base.vi
Panel frontal:
234
Memoria de clculo
________________
Controles utilizados:
________________
235
Memoria de clculo
Diagrama:
Case 0: Ningn control ha sido pulsado, el programa realizar una pausa de 250
milisegundos para no sobrecargar el procesador del ordenador.
236
Memoria de clculo
237
Memoria de clculo
12
10
11
238
Memoria de clculo
13
14
15
16
17
18
13 Case 4 - Frame 1:
239
Memoria de clculo
240
Memoria de clculo
241
Memoria de clculo
19
20
21
22
242
Memoria de clculo
23
243
Memoria de clculo
2.3.2.2 P-General.vi
Panel frontal:
1
2
3
4
5
7 6
8 8
10
8
244
Memoria de clculo
Automtico (P11S).
Manual (P3S).
Emergencia (P5S).
________________
245
Memoria de clculo
246
Memoria de clculo
247
Memoria de clculo
ConLogin Decoracin.
________________
248
Memoria de clculo
Diagrama:
8
7
9
4
2
5
6
3
249
Memoria de clculo
2 Se inicia una estructura del tipo While Loop, se mantendr activa mientras no
decida ir a otra pantalla o desactivar la aplicacin SCADA.
Dentro del While Loop se realizar de forma cclica las siguientes tareas:
Frame 0:
Frame 1:
4a
4c 4e
4d
4b
250
Memoria de clculo
Frame 0:
Frame 1:
251
Memoria de clculo
252
Memoria de clculo
2.3.2.3 P-Deshidratador.vi
Panel frontal:
2
7
11
9
4
8
10
3
6
1
253
Memoria de clculo
Emergencia (P5S).
254
Memoria de clculo
255
Memoria de clculo
________________
256
Memoria de clculo
257
Memoria de clculo
ContAsp Decoracin.
258
Memoria de clculo
ContPM Decoracin
________________
259
Memoria de clculo
Diagrama:
11
1
4
2
8
5
6
7
9
3
10
1
260
Memoria de clculo
1 Inicializacin del estado del pulsador de emergencia, del nombre del operario
del estado de la comunicacin con el autmata 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 cclica las siguientes tareas:
Frame 1:
Frame 2:
261
Memoria de clculo
Frame 3:
262
Memoria de clculo
263
Memoria de clculo
2.3.2.4 P-Enfriador.vi
Panel frontal:
2
7
4
9
3
6
1
264
Memoria de clculo
Emergencia (P5S).
265
Memoria de clculo
________________
266
Memoria de clculo
267
Memoria de clculo
268
Memoria de clculo
________________
269
Memoria de clculo
Diagrama:
6
4
11
1
2
8
9
3
10
1
270
Memoria de clculo
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 cclica las siguientes tareas:
Frame 1:
Frame 2:
271
Memoria de clculo
272
Memoria de clculo
2.3.2.5 P-Datos-Auxiliares.vi
Panel frontal:
6
3
1
273
Memoria de clculo
________________
274
Memoria de clculo
Dec-Des Decoracin.
Dec-Asp Decoracin.
Dec-Nor Decoracin.
275
Memoria de clculo
Diagrama:
4
5
2
3
1
276
Memoria de clculo
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 cclica las siguientes tareas:
277
Memoria de clculo
278
Memoria de clculo
2.3.2.5 Prueba-Comunicacin.vi
Panel frontal:
1 Cuadro donde aparece las indicaciones del inicio (funcin 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 clculo
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 evala cclicamente una estructura del tipo Case con 2
posibles situaciones:
Case True: Se ejecuta una estructura del tipo Sequence con 4 frames:
280
Memoria de clculo
2a
2b
281
Memoria de clculo
2c
2d
282
Memoria de clculo
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 clculo
2.3.2.7 Cambio-Contrasea.vi
Panel frontal:
1 Indicaciones.
________________
________________
284
Memoria de clculo
Diagrama:
1
3
285
Memoria de clculo
2 Se inicia una estructura del tipo While Loop, se mantendr activa mientras no
se accione el pulsador Cancelar, se halla tecleado la actual contrasea o se ha
tecleado 3 veces una contrasea errnea:
3 Dentro del While Loop se evala cclicamente una estructura, que depende
del pulsador Cancelar, del tipo Case con 2 posibles situaciones:
Frame 1:
286
Memoria de clculo
287
Memoria de clculo
288
Memoria de clculo
2.3.2.8 Cambio-Puerto-Serie.vi
Panel frontal:
________________
289
Memoria de clculo
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 condicin
True que depende del pulsador Aceptar.
290
Memoria de clculo
2.3.2.9 Leer-Datos-Autmata.vi
Diagrama:
5
3
4
2
291
Memoria de clculo
________________
________________
1 Son ledos los datos enviados por el autmata, estos datos son suministrados
por el programa Base.vi .
Conformidades.
Rels trmicos.
Varios:
292
Memoria de clculo
Conformidades.
Rels trmicos.
293
Memoria de clculo
Rels trmicos.
Varios:
294
Memoria de clculo
2.3.2.10 Enviar-Datos-Autmata.vi
Diagrama:
4
3
2
1
295
Memoria de clculo
________________
Controles utilizados:
________________
Case 1:
296
Memoria de clculo
Case 2:
Case 3:
297
Memoria de clculo
Case 4:
Frame 1:
298
Memoria de clculo
2.3.2.11 Resetear-Datos-Pantallas.vi
Diagrama:
299
Memoria de clculo
2.3.2.12 - Alarma.vi
Diagrama:
5
3
2
4
1
300
Memoria de clculo
________________
Controles utilizados:
________________
2 Evaluacin 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 notificacin
interna.
301
Memoria de clculo
2 3a
True:
3a True:
No es la primera notificacin sobre un
paro de emergencia accionado (Aux-
Emergencia = True).
3a
302
Memoria de clculo
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 enva a la
funcin Grabar-Alarma.vi un
4b
determinado valor.
303
Memoria de clculo
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 clculo
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 sern almacenados en un fichero con extensin .xls (hoja de
clculo para EXCEL), este archivo se encontrar la carpeta Alarmas en el
subdirectorio donde se encuentre la aplicacin SCADA.
305
Memoria de clculo
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 CICLN
7 DISPARO DETECTOR GIRO R. S. CICLN
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 clculo
VALOR AVISO
13 DISPARO DETECTOR GIRO R. S. ENFRIADOR
14 DISPARO DETECTOR GIRO TRANSPORTE CADENAS
15 DISPARO DETECTOR GIRO ESCLUSA FINOS
16 DISPARO REL TRMICO TAPIZ
17 DISPARO REL TRMICO ERIZO TAPIZ
18 DISPARO REL TRMICO R. S. TAPIZ
19 DISPARO REL TRMICO TROMMEL
20 DISPARO REL TRMICO ESCLUSA CICLN
21 DISPARO REL TRMICO R. S. CICLN
22 DISPARO REL TRMICO R. SOBRADERO
23 DISPARO REL TRMICO R. A. ENFRIADOR
24 DISPARO REL TRMICO ENFRIADOR
25 DISPARO REL TRMICO ERIZO ENFRIADOR
26 DISPARO REL TRMICO ASPIRADOR ENFRIADOR
27 DISPARO REL TRMICO ASPIRADOR FINOS
28 DISPARO REL TRMICO ESCLUSA ENFRIADOR
29 DISPARO REL TRMICO R. S. ENFRIADOR
30 DISPARO REL TRMICO TRANSPORTE CADENAS
31 DISPARO REL TRMICO ESCLUSA FINOS
32 AVERIA EN EL GRUPO VARIADOR - ASPIRADOR
33 INSPECCIN R. S. TAPIZ ABIERTA
34 INSPECCIN CICLN ABIERTA
35 INSPECCIN ASPIRACIN ABIERTA
36 INSPECCIN R. S. CICLN ABIERTA
37 INSPECCIN 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 clculo
5 Dependiendo del valor enviado a la funcin se ejecuta una estructura del tipo
Case:
True:
308
Memoria de clculo
2.3.2.14 Gestin-Datos-Mantenimiento.vi
Diagrama:
________________
________________
309
Memoria de clculo
Case Grabar:
310
Memoria de clculo
2.3.2.15 - NArranques.vi
Diagrama:
2
1
________________
________________
311
Memoria de clculo
Case Leer:
312
Memoria de clculo
Case Borrar:
Case Grabar:
313
Memoria de clculo
Case Inicializar:
314
Memoria de clculo
2.3.2.16 Tiempo-Funcionamiento.vi
Diagrama:
2
1
________________
________________
315
Memoria de clculo
Case Leer:
316
Memoria de clculo
Case Borrar:
Case Grabar:
317
Memoria de clculo
Case Inicializar:
318
Memoria de clculo
2.3.2.17 Gemma.vi
Diagrama:
1 2
________________
________________
1 Son ledos los datos que el autmata ha enviado sobre el estado de las etapas
de la gua Gemma.
319
Memoria de clculo
Case 1:
Case 2:
Case 3:
Case 4:
Case 5:
Case 6:
320
Memoria de clculo
Case 7:
Case 8:
Case 9:
321
Memoria de clculo
2.3.2.18 Gestin-Datos-Control.vi
Diagrama:
3
2
1
322
Memoria de clculo
________________
N Puerto L. Valor del n del puerto serie ledo del archivo dtc.rtl.
________________
323
Memoria de clculo
Case NPuerto:
Case Leer:
324
Memoria de clculo
Case NPuerto:
325
Memoria de clculo
2.3.2.19.1 Consigna-Aspirador.gbl
Control utilizado:
2.3.2.19.2 Datos-Autmata-Pantallas.gbl
Controles utilizados:
326
Memoria de clculo
2.3.2.19.3 Descripcin-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 clculo
Al ser ejecutada esta funcin abre el panel del programa VI indicado en VI name,
siempre que el programa este cargado en memoria.
328
Memoria de clculo
329
Memoria de clculo
El ingeniero tcnico:
330
APLICACIN EN LABVIEW PARA EL CONTROL
DE UNA PLANTA DESHIDRATADORA DE
ALFALFA MEDIANTE AUTMATA
PROGRAMABLE
3 Planos
3 PLANOS:
I
Planos
El ingeniero tcnico:
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 sealizacin ........................................................ 4
4.1.7- Partida de programacin .................................................... 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 marrn. 1000
4.10 m Conductor de cobre UNE 0.6/1 kV de 1,5 mm2 color verde y amarillo. 200
Lmparas de sealizacin.
6.02 u Lampar de sealizacin 220 V AC - 60 W. 3
4
Presupuesto
Montaje de la instalacin.
9.01 h 120
Montaje, cableado, conexionado, etc., necesarios para llevar a cabo el proyecto.
5
Presupuesto
PRECIO
CDIGO UNIDADES DESCRIPCIN
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 presin sobre perfil
DIN.
Interruptor magnetotrmico 100 A (IV).
1.03 u Interruptor magnetotrmico de 100 A tetrapolar fijado a 58.457 351,334
presin sobre perfil DIN.
Interruptor magnetotrmico 20 A (II).
1.04 u Interruptor magnetotrmico de 20 A bipolar fijado a presin 13.107 78,775
sobre perfil DIN.
Fuente de alimentacin 230/115 V c.a - 24 V c.c./ 15 A.
Fuente de alimentacin 230/115 V AC - 24 V DC./ 15 A,
1.05 u 25.789 154,995
para autmata, sensores y maniobra; fijada a presin sobre
perfil DIN.
Autmata S5-95U, 6ES5 095-8MA04.
1.06 u Autmata SIEMENS, modelo SIMATIC S5-95U, fijado a 110.388 663,445
presin sobre perfil DIN.
Mdulo de entradas digitales 6ES5, 422-8MA11.
1.07 u Mdulo para el autmata S5-96U de 16 entradas digitales de 19.769 118,814
24 V DC.
Mdulo de salidas digitales, 6ES5 451-8MA11 .
1.08 u Mdulo para el autmata 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 autmata SIMATIC S5.
Procesador de comunicaciones CP 521SI, 6ES5 521-
8MA22.
1.10 u 68.305 410,521
Mdulo interface para comunicar un autmata S5-95U con
una lnea RS-232.
Batera tampn, 6ES5 980-0MA11.
1.11 u 2.514 15,109
Batera de litio para el autmata S5-95U
1.12 m Perfil DIN de soporte de 35 mm. 984 5,914
Cable conexin CP-521SI - Ordenador.
1.13 m Cable de conexin 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
tensin nominal 220 V, tensin de mando 24 DC.
Contactor A30-30-10.
1.17 u Contactor ABB para la conexin de motores de hasta 15 kW 11.935 71,731
y 380 V, tensin de mando 24 V DC.
6
Presupuesto
PRECIO
CDIGO UNIDADES DESCRIPCIN
PESETAS EUROS
Contactor A9-30-10.
1.18 u Contactor ABB para la conexin de motores de hasta 4 4.090 24,581
kW y 380 V, tensin de mando 24 V DC.
Contactor A26-30-10.
1.19 u Contactor ABB para la conexin de motores de hasta 9,2 8.375 50,335
kW y 380 V, tensin de mando 24 V DC.
Contactor A40-30-10.
1.20 u Contactor ABB para la conexin de motores de hasta 18,5 13.725 82,489
kW y 380 V, tensin de mando 24 V DC.
Rel trmico TA42DU-42.
1.21 u Rel trmico ABB para proteger motores entre 29 y 42 A, 10.600 63,707
380 V.
Rel trmico TA25DU-11.
1.22 u Rel trmico ABB para proteger motores entre 7,5 y 11 A, 6.175 37,112
380 V.
Rel trmico TA25DU-25.
1.23 u Rel trmico 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 metlico 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
CDIGO UNIDADES DESCRIPCIN
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 presin 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 conexin de motores de hasta 160 140.985 847,337
kW y 380 V, tensin de mando 24 V DC.
Contactor A12-30-10.
2.06 u Contactor ABB para la conexin de motores de hasta 5,5 kW 4.500 27,046
y 380 V, tensin de mando 24 V DC.
Contactor A16-30-10.
2.07 u Contactor ABB para la conexin de motores de hasta 7,5 kW 6.145 36,932
y 380 V, tensin de mando 24 V DC.
Rel trmico TA25DU-14.
2.08 u Rel trmico ABB para proteger motores entre 10 y 14 A, 6.665 40,057
380 V.
Rel trmico TA25DU-19.
2.09 u Rel trmico ABB para proteger motores entre 13 y 19 A, 6.665 40,057
380 V.
Rel trmico TA25DU-25.
2.10 u Rel trmico 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 metlico 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
CDIGO UNIDADES DESCRIPCIN
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 presin sobre perfil
DIN.
Interruptor magnetotrmico 100 A (IV).
3.02 u Interruptor magnetotrmico de 100 A tetrapolar fijado a 58.457 351,334
presin 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 conexin de motores de hasta 4 kW y 4.090 314,251
380 V, tensin de mando 24 V DC.
Contactor A16-30-10.
3.05 u Contactor ABB para la conexin de motores de hasta 7,5 kW 6.145 314,251
y 380 V, tensin de mando 24 V DC.
8
Presupuesto
PRECIO
CDIGO UNIDADES DESCRIPCIN
PESETAS EUROS
Contactor A40-30-10.
3.06 u Contactor ABB para la conexin de motores de hasta 18,5 13.725 314,251
kW y 380 V, tensin de mando 24 V DC.
Contactor A12-30-10.
3.07 u Contactor ABB para la conexin de motores de hasta 5,5 kW 4.500 27,046
y 380 V, tensin de mando 24 V DC.
Rel trmico TA25DU-5,0.
3.08 u Rel trmico ABB para proteger motores entre 3,5 y 5 A, 6.175 37,112
380 V.
Rel trmico TA25DU-19.
3.09 u Rel trmico ABB para proteger motores entre 13 y 19 A, 6.665 40,057
380 V.
Rel trmico TA42DU-42.
3.10 u Rel trmico ABB para proteger motores entre 29 y 42 A, 10.600 63,707
380 V.
Rel trmico TA25DU-4,0.
3.11 u Rel trmico ABB para proteger motores entre 2,8 y 4 A, 6.175 37,112
380 V.
Rel trmico TA25DU-14.
3.12 u Rel trmico 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 metlico 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
CDIGO UNIDADES DESCRIPCIN
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
marrn.
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
CDIGO UNIDADES DESCRIPCIN
PESETAS EUROS
Detector de giro.
5.01 u Sensor Telemecanique XSA-V11373 de induccin para el 23.791 142,987
control de rotocin.
Final de carrera inspeccin.
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 termoplstica.
Electrovlvula 5/2 vas.
5.04 u 19.575 117,648
Electrovvula NORGREN, mando a 24 V DC.
Electrovlvula 3/2 vas.
5.05 u 9.740 58,539
Electrovvula NORGREN, mando a 24 V DC.
PRECIO
CDIGO UNIDADES DESCRIPCIN
PESETAS EUROS
Sirena.
6.01 u 4.300 25,844
Sirena alimentacin 220 V AC.
Lmparas de sealizacin.
6.02 u 2.175 13,072
Lampar de sealizacin 220 V AC - 60 W.
PRECIO
CDIGO UNIDADES DESCRIPCIN
PESETAS EUROS
Estudio y desarrollo de la programacin del autmata.
7.01 h Estudio y desarrollo de la programacin del autmata S5- 5.700 34,258
95U.
Estudio y desarrollo de la programacin de la aplicacin
SCADA.
7.02 h 5.700 34,258
Estudio y desarrollo de la programacin de la aplicacin
SCADA desarrollada en LabVIEW 5.0.
Instalacin del software.
7.03 h Instalacin del software desarrollado para el control y 5.700 34,258
automatizacin de la planta, y pruebas del mismo.
10
Presupuesto
PRECIO
CDIGO UNIDADES DESCRIPCIN
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 grfica SVGA, monitor de 17", ratn, teclado,...
PRECIO
CDIGO UNIDADES DESCRIPCIN
PESETAS EUROS
Montaje de la instalacin.
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
termoplstica.
426.749 ptas.
TOTAL DE LA PARTIDA DE SENSORES Y ACTUADORES:
2,564,813
10.825 ptas.
TOTAL DE LA PARTIDA DE SEALIZACIN:
65,059
17
Presupuesto
Montaje de la instalacin.
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 ejecucin 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 cntimos.
El ingeniero tcnico:
20
APLICACIN EN LABVIEW PARA EL CONTROL
DE UNA PLANTA DESHIDRATADORA DE
ALFALFA MEDIANTE AUTMATA
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
ejecucin de la obra, an cuando no se halle explcitamente expresado en el
pliego de condiciones o en los documentos del Proyecto.
5.1.8 Modificaciones.
4
Pliego de condiciones
Sern de cuenta del Contratista todos los medios y mquinas auxiliares que sean
precisas para la ejecucin 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 proteccin a sus operarios.
5
Pliego de condiciones
- Plazo de entrega.
- Garantas.
6
Pliego de condiciones
5.1.14.2 Presentacin:
Las empresas seleccionadas para dicho concurso debern presentar sus Proyectos
en sobre lacrado, durante los 15 das siguientes a la publicacin de la oferta en
los medios que la Propiedad haya considerado adecuados.
5.1.14.3 Seleccin:
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 garanta, la
Propiedad podr ordenar ejecutarlas a un tercero, abonando su importe con cargo
a la retencin 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 podrn establecer tablas de
penalizacin cuyas cuantas y demoras se fijarn 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 presentacin del
correspondiente poder acreditativo.
Todos los gastos e impuestos de cualquier orden, que por disposicin del Estado,
Provincia o Municipio se deriven del contrato, y estn vigentes en la fecha de
firma del mismo, sern por cuenta del Contratista con excepcin 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 renan 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, sern por cuenta del
Contratista.
5.3.4 Ensayos.
5.3.4.2 - Todos los ensayos sern presenciados por el Ingeniero que representa el
Tcnico Director de obra.
13
Pliego de condiciones
5.3.4.8 Todo rel de proteccin que sea ajustable ser calibrado y ensayado,
usando contador de ciclos, caja de carga, ampermetro y voltmetro, segn se
necesite.
5.3.4.13 Se comprobarn todas las alarmas del equipo elctrico para comprobar
el funcionamiento adecuado, hacindolas activar simulando condiciones
anormales.
14
Pliego de condiciones
5.3.4.16 Todos los motores debern ponerse en marcha sin estar acoplados y se
medir la intensidad consumida. Despus de acoplarlos al equipo mecnico
accionado por el motor se medir la intensidad consumida en funcionamiento en
vaco.
5.3.4.17 Se tendr que verificar y supervisar la totalidad del sistema para dejar
en condiciones de funcionamiento toda la instalacin. Por lo tanto ser necesario:
15
Pliego de condiciones
16
Pliego de condiciones
5.4.1 Generalidades.
17
Pliego de condiciones
18
Pliego de condiciones
Todos los rels auxiliares sern 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 proteccin contra choque elctrico ser prevista, y se cumplir con las normas
UNE 20-383 y MI-BT021.
Los conductores elctricos usarn los colores distintivos segn normas UNE, y
sern etiquetados y numerados para facilitar su fcil localizacin e interpretacin
en los planos y en la instalacin.
Los aparatos de maniobra como por ejemplo los sensores, finales de carrera, ...;
han de ser fcilmente accesibles y poder ser sustituidos sin herramientas
especiales.
19
Pliego de condiciones
- Interruptores automticos.
20
Pliego de condiciones
La distribucin del cuadro ser de tal forma que la alimentacin sea la celda
central y a ambos lados se vayan situando las celdas o salidas cuando sea
necesario.
Se indicarn los fabricantes de cada uno de los elementos que componen los
cuadros y el tipo de los mismos.
5.4.1.2.1 Caractersticas.
- Proteccin contra agentes exteriores: IP-54, segn IEC, UNE, UTE y DIN.
5.4.2 Autmata.
21
Pliego de condiciones
5.4.3 Software.
Las unidades que hayan de permanecer ocultas habrn de ser medidas antes de la
ocultacin. Si la medida no es realizada cuando corresponda, el Contratista habr
de realizar las operaciones pertinentes para llevarlas a cabo.
Habr de ponerse a tierra todas las partes metlicas de las mquinas que no se
encuentren sometidas a tensin, a fin de evitar posibles contactos.
22
Pliego de condiciones
5.4.6 Indicaciones.
El ingeniero tcnico:
23
APLICACIN EN LABVIEW PARA EL CONTROL
DE UNA PLANTA DESHIDRATADORA DE
ALFALFA MEDIANTE AUTMATA
PROGRAMABLE
I
Manual del usuario
6.1 INTRODUCCIN.
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 vdeo SVGA capaz de una resolucin de 1024 x 768 pxeles y una
profundidad de color de 16 bits.
Monitor de 15 pulgadas.
3
Manual del usuario
Para iniciar la aplicacin 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.
Automtico.
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 irn creando las alarmas.
Los avisos de alarma sern almacenados en un fichero con extensin .xls (hoja de
clculo para EXCEL), este archivo se encontrar la carpeta Alarmas en el
subdirectorio donde se encuentre la aplicacin SCADA.
13
APLICACIN EN LABVIEW PARA EL CONTROL
DE UNA PLANTA DESHIDRATADORA DE
ALFALFA MEDIANTE AUTMATA
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 60C
Permissible blocks:
(140F)
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 Oto60C
- Vertical mounting oto40c
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
Signal state 0
Signal state 1
Signal state 0
Signal state 1
Signal state 0
Signal state 1
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
Signal state 0
Signal state 1
Signal state 0
Signal state 1
Signal state 0
Signal state 1
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 handshakeON,
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 theXON 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.