Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Automation Portal
Segmento 1: ENCLAVAMIENTO
Se realiza el enclavamiento con 2 sensores
%Q0.0
"BOBINA_A"
%I0.0 %Q0.1
"SENSOR_A" "BOBINA 2"
S
%I0.1 %Q0.1
"SENSOR_B" "BOBINA 2"
R
%M0.0
%I0.0 "Tag_1"
"SENSOR_A" RS
R Q
%I0.1
"SENSOR_B"
S1
%M0.1
%I0.1 "Tag_2"
"SENSOR_B" SR
S Q
%I0.0
"SENSOR_A"
R1
%DB2
"IEC_Timer_0_DB"
%I0.0 TON
"SENSOR_A" Time
IN Q
T#10s PT ET #Tiempo
%DB1
"Temporizador3"
%I0.1 TOF
"SENSOR_B" Time
IN Q
T#10s PT ET #Tiempo2
%DB3
"Temporizador4"
%I0.0 TP
"SENSOR_A" Time
IN Q
T#10s PT ET #Tiempo3
%DB4
"CONTADOR1"
%I0.0 CTU
"SENSOR_A" Int
CU Q
CV #Conteo1
%I0.1
"SENSOR_B"
R
5 PV
%DB5
"CONTADOR2"
%I0.0 CTD
"SENSOR_A" Int
CD Q
CV #Conteo2
%I0.1
"SENSOR_B"
LD
5 PV
%DB6
"CONTADOR3"
%I0.0 CTUD
"SENSOR_A" Int
CU QU
QD false
%I0.1 CV #Conteo3
"SENSOR_B"
CD
%I0.2
"SENSOR_C"
R
%I0.3
"SENSOR_D"
LD
10 PV
Totally Integrated
Automation Portal
%M10.0
10
"Tag_4"
>
Int
10
%M10.1
10
"Tag_5"
>
Int
5
%DB7
"CAJAS"
%I0.0 CTU
"SENSOR_A" Int
CU Q
%I0.1 CV #ContadorCajas
"SENSOR_B" R
20 PV
%M0.2
#ContadorCajas #ContadorCajas "AMARILLO"
>= <
Int Int
10 15
%DB8
"CONTADOR5"
TOF %M0.3
#ContadorCajas #ContadorCajas Time "ROJO"
>= <
IN Q
Int Int
15 20 T#3s PT ET #Tiempo4