Está en la página 1de 3

Totally Integrated

Automation Portal

Proyecto5 / PLC_1 [CPU 1214C AC/DC/Rly] / Bloques de programa


Main [OB1]
Main Propiedades
General
Nombre Main Número 1 Tipo OB Idioma KOP
Numeración Automático
Información
Título "Main Program Sweep (Cy‐ Autor Comentario Familia
cle)"
Versión 0.1 ID personaliza‐
da

Main
Nombre Tipo de datos Valor predet. Comentario
Input
Initial_Call Bool Initial call of this OB
Remanence Bool =True, if remanent data are available
Temp
Constant

Segmento 1: inicio

%I0.0 %M0.0
"marcha" "inicio"
S

%M1.0
"aux_MARCHA"

Segmento 2: Active el tope de salida

%DB1
"cxn_tope_salida"
%M0.1
%M0.0 TON "DXN_TOPE_ %Q0.2
"inicio" Time SALIDA" "Tope_salida"
IN Q
T#5S PT ET ...

Segmento 3: activar la banda trasportadora

%DB2
"cxn_banda"
%M0.2
"cxn_tope_ "DXN_BANDA_ TON %Q0.0
salida".IN TRANSPRTADORA" Time "motor_banda"
IN Q
T#4S PT ET ...

Segmento 4:

%DB3
"cxn_t_e"
%M0.3
%Q0.0 "DXN_TOPE_ TON %Q0.1
"motor_banda" ENTRADA" Time "Tope_entrada"
IN Q
T#4S PT ET ...

Segmento 5:

%DB5
"dxn_t_s"
%M0.1
TON "DXN_TOPE_
"cxn_t_e".IN Time SALIDA"
IN Q S
T#6S PT ET ...

Segmento 6:
Totally Integrated
Automation Portal

%DB9
"filtro_conteo"
%M0.6
%MW14 TON "AUX_RESET_
"CONTADOR_1" Time CONTEO"
>=
Int IN Q
4 T#2S PT ET ...

Segmento 7:

%DB4
"conteo_
envases"

%I0.2 CTU
"s_contador" Int
CU Q
%MW14
%M0.5 CV "CONTADOR_1"
"AUX_CONTEO"

%M0.6
"AUX_RESET_
CONTEO"
R
4 PV

Segmento 8:

%M0.2
%MW14 "DXN_BANDA_
"CONTADOR_1" TRANSPRTADORA"
>=
S
Int
4
%M0.3
"DXN_TOPE_
ENTRADA"
S

Segmento 9:

%DB6
"cxn_cab_val"
%M0.3 %M0.4 %Q0.3
"DXN_TOPE_ "DXN_CABEZAL_ TON "Cabezal_
ENTRADA" LLENADO" Time llenado"
IN Q
T#4S PT ET ...

Segmento 11:

%DB7
"llenado"
%M0.4 %M0.4
"DXN_CABEZAL_ TON "DXN_CABEZAL_
"cxn_cab_val".IN LLENADO" Time LLENADO"
IN Q S
T#7S PT ET ...

Segmento 12:
Totally Integrated
Automation Portal

%DB8
"REININIO"
%M0.4 %M0.1
"DXN_CABEZAL_ TON "DXN_TOPE_
LLENADO" Time SALIDA"
IN Q R
T#10S PT ET ...

%M0.2
"DXN_BANDA_
TRANSPRTADORA"
R

%M0.4
"DXN_CABEZAL_
LLENADO"
R

%M0.3
"DXN_TOPE_
ENTRADA"
R

%M0.6
"AUX_RESET_
CONTEO"

Segmento 13:

%I0.1 %M0.0
"paro" "inicio"
R

%M0.7 %M0.1
"aux_parada" "DXN_TOPE_
SALIDA"
R

%M0.2
"DXN_BANDA_
TRANSPRTADORA"
R

%M0.4
"DXN_CABEZAL_
LLENADO"
R

%M0.3
"DXN_TOPE_
ENTRADA"
R

%M0.6
"AUX_RESET_
CONTEO"

Segmento 14:

NORM_X
Int to Real
EN ENO
0 MIN
%MD6
%MW4 "conv_señal_
"señal_nivel" VALUE OUT nivel"
26748 MAX

Segmento 15:

SCALE_X
Real to Real
EN ENO
0.0 MIN %MD10
OUT "nivel"
%MD6
"conv_señal_
nivel" VALUE
100.0 MAX

También podría gustarte