Você está na página 1de 14

Licensed to pedro carvalho - p.carvalhosa000@gmail.

com

Totally Integrated
Automation Portal

Program blocks
Main [OB1]
Main Properties
General
Name Main Number 1 Type OB Language LAD
Numbering Automatic
Information
Title "Main Program Sweep (Cy‐ Author Comment Family
cle)"
Version 0.1 User-defined ID

Name Data type Default value


Input
Initial_Call Bool
Remanence Bool
Temp
Constant

Network 1:

%FC1
"Condições Iniciais"
EN ENO

Network 2:

%FC2
"Controle Nivel"
EN ENO

Network 3:

%FC3
"Acionamentos Digitais"
EN ENO

Network 4:

%FC4
"Automatico Transportador"
EN ENO

Network 5:
Licensed to pedro carvalho - p.carvalhosa000@gmail.com

Totally Integrated
Automation Portal

Program blocks
Condições Iniciais [FC1]
Condições Iniciais Properties
General
Name Condições Iniciais Number 1 Type FC Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value


Input
Output
InOut
Temp
Constant
Return
Condições Iniciais Void

Network 1: Condições Iniciais OK - Pronto para Partir

%M5.2 %M6.4 %M7.0 %M5.0 %M5.1


"Seletora_ "Sensor_em_ %M6.5 "Sensor_Nivel_ "Bo_ "Bo_ %M15.0
Automatica" Cima" "Sensor_Carga" Maximo" Emergencia_1" Emergencia_2" "Cond_Inicial_OK"

Network 2: Liga Ciclo Automatico do Processo de Tratamento

%M5.3 %M15.0 %M15.1


"Bo_Inicio_Ciclo" "Cond_Inicial_OK" "Em_Ciclo"
S

Network 3: Desliga o Ciclo do Processo de Tratamento

%M15.2 %M15.1
"Fim_Ciclo" "Em_Ciclo"
R

%M5.0
"Bo_
Emergencia_1"

%M5.1
"Bo_
Emergencia_2"

Network 4: Solicita a Finalização do Ciclo do Processo


Servira para finalizar o Ciclo Automático. Quando pressionado ele deixa o transportador terminar todo o ciclo atual e então finaliza o processo.

%M5.4 %M15.3
"Bo_Fim_Ciclo" "Finalizar_Ciclo"
S

Network 5: Reseta a Solicitação do Fim de Ciclo

%M15.1 %M15.3
"Em_Ciclo" "Finalizar_Ciclo"
R

%M15.2
"Fim_Ciclo"
R

Network 6: Executa uma Pausa no Processo sem desligar o Ciclo Atual


Licensed to pedro carvalho - p.carvalhosa000@gmail.com

Totally Integrated
Automation Portal

%M5.2
%M5.6 "Seletora_ %M15.1 %M15.4
"Bo_Stop" Automatica" "Em_Ciclo" "Pausa_Ciclo"
S

Network 7: Reseta o estado de Pausa no Processo

%M5.5 %M15.4
"Bo_Start" "Pausa_Ciclo"
R

%M15.1
"Em_Ciclo"
Licensed to pedro carvalho - p.carvalhosa000@gmail.com

Totally Integrated
Automation Portal

Program blocks
Controle Nivel [FC2]
Controle Nivel Properties
General
Name Controle Nivel Number 2 Type FC Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value


Input
Output
InOut
Temp
Constant
Return
Controle Nivel Void

Network 1: Acionamento do Motor da Bomba

%M5.2
"Seletora_ %M10.4
Automatica" "Retardo Nivel".Q "Motor_Bomba"

Network 2: Sensor de Nivel Máximo para Desligar a Bomba

%DB1
"Retardo Nivel"
%M7.0
"Sensor_Nivel_ TON
Maximo" Time
IN Q
T#5s PT ET T#0ms
Licensed to pedro carvalho - p.carvalhosa000@gmail.com

Totally Integrated
Automation Portal

Program blocks
Acionamentos Digitais [FC3]
Acionamentos Digitais Properties
General
Name Acionamentos Digitais Number 3 Type FC Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value


Input
Output
InOut
Temp
Constant
Return
Acionamentos Digitais Void

Network 1: Acionamento do Motor Horizontal AVANÇA

%M10.0
%M5.2 %M5.0 %M5.1 %M6.4 %M6.7 "Motor_
%M6.1 "Seletora_ "Bo_ "Bo_ "Sensor_em_ "Sensor_ Horizontal_
"Bo_Avança" Automatica" Emergencia_1" Emergencia_2" Cima" Descarga" Avança"

%M16.3
%M5.2 "Aux_Motor_
"Seletora_ %M15.4 Horizontal_
Automatica" "Pausa_Ciclo" Avança1"

%M16.4
"Aux_Motor_
Horizontal_
Avança2"

Network 2: Acionamento do Motor Horizontal RECUO

%M10.1
%M5.2 %M5.0 %M5.1 %M6.4 "Motor_
%M6.2 "Seletora_ "Bo_ "Bo_ "Sensor_em_ %M6.5 Horizontal_
"Bo_Recua" Automatica" Emergencia_1" Emergencia_2" Cima" "Sensor_Carga" Recua"

%M16.5
%M5.2 "Aux_Motor_
"Seletora_ %M15.4 Horizontal_
Automatica" "Pausa_Ciclo" Recua1"

Network 3: Acionamento do Motor Vertical DESCE

%M5.2 %M5.0 %M5.1 %M6.3 %M10.2


%M6.0 "Seletora_ "Bo_ "Bo_ %M6.5 "Sensor_em_ "Motor_Vertical_
"Bo_Desce" Automatica" Emergencia_1" Emergencia_2" "Sensor_Carga" Baixo" Desce"

%M6.6
%M15.5
"Sensor_Central"
%M5.2 "Aux_Motor_
"Seletora_ %M15.4 Vertical_
Automatica" "Pausa_Ciclo" Desce1"

%M6.7
"Sensor_
Descarga"
%M15.6
"Aux_Motor_
Vertical_
Desce2"

%M15.7
"Aux_Motor_
Vertical_
Desce3"

Network 4: Acionamento do Motor Vertical SOBE


Licensed to pedro carvalho - p.carvalhosa000@gmail.com

Totally Integrated
Automation Portal

%M5.2 %M5.0 %M5.1 %M6.4 %M10.3


%M5.7 "Seletora_ "Bo_ "Bo_ %M6.5 "Sensor_em_ "Motor_Vertical_
"Bo_Sobe" Automatica" Emergencia_1" Emergencia_2" "Sensor_Carga" Cima" Sobe"

%M5.2 %M16.0 %M6.6


"Seletora_ %M15.4 "Aux_Motor_ "Sensor_Central"
Automatica" "Pausa_Ciclo" Vertical_Sobe1"

%M6.7
%M16.1 "Sensor_
"Aux_Motor_ Descarga"
Vertical_Sobe2"

%M16.2
"Aux_Motor_
Vertical_Sobe3"
Licensed to pedro carvalho - p.carvalhosa000@gmail.com

Totally Integrated
Automation Portal

Program blocks
Automatico Transportador [FC4]
Automatico Transportador Properties
General
Name Automatico Transportador Number 4 Type FC Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value


Input
Output
InOut
Temp
Constant
Return
Automatico Transportador Void

Network 1: Zera variavel de controle de PASSO

%M15.1
"Em_Ciclo" MOVE
EN ENO
0 IN %MW50
OUT1 "PASSO"

Network 2: PASSO #0 - Desce transportador para pegar a peça

%M15.5
"Aux_Motor_
%M15.1 %M15.3 %MW50 Vertical_
"PASSO" Desce1"
"Em_Ciclo" "Finalizar_Ciclo"
==
Int
0
%M6.3
"Sensor_em_ INC
Baixo" Int
EN ENO
%MW50
"PASSO" IN/OUT

Network 3: PASSO #1 - Sobe transportador com a peça.

%M16.0
%MW50
%M15.1 "Aux_Motor_
"Em_Ciclo" "PASSO" Vertical_Sobe1"
==
Int
1
%M6.4
"Sensor_em_ INC
Cima" Int
EN ENO
%MW50
"PASSO" IN/OUT

Network 4: PASSO #2 - Avança para posição Centra, na posição do Tanque


saindo da posição de carga e indo em direção a posição central

%M16.3
"Aux_Motor_
%M15.1 %MW50 Horizontal_
"PASSO" Avança1"
"Em_Ciclo"
==
Int
2
%M6.6 INC
"Sensor_Central" Int
EN ENO
%MW50
"PASSO" IN/OUT

Network 5: PASSO #3 - Desce com a peça no Tanque


Licensed to pedro carvalho - p.carvalhosa000@gmail.com

Totally Integrated
Automation Portal

%M15.6
"Aux_Motor_
%M15.1 %MW50 Vertical_
"PASSO" Desce2"
"Em_Ciclo"
==
Int
3
%M6.3
"Sensor_em_ INC
Baixo" Int
EN ENO
%MW50
"PASSO" IN/OUT

Network 6: PASSO #4 - Contar o Tempo de Tratamento dentro do Tanque (tempo de 15 segundos)

%DB2
"Tempo de
Tratamento"
%MW50 TON INC
%M15.1
"Em_Ciclo" "PASSO" Time Int
==
IN Q EN ENO
Int
4 T#15s PT ET T#0ms %MW50
"PASSO" IN/OUT

Network 7: PASSO #5 - Sobe transportador com a peça já Tratada

%M16.1
%MW50
%M15.1 "Aux_Motor_
"Em_Ciclo" "PASSO" Vertical_Sobe2"
==
Int
5
%M6.4
"Sensor_em_ INC
Cima" Int
EN ENO
%MW50
"PASSO" IN/OUT

Network 8: PASSO #6 - Avança para posição de Descarte

%M16.4
"Aux_Motor_
%M15.1 %MW50 Horizontal_
"PASSO" Avança2"
"Em_Ciclo"
==
Int
6
%M6.7
"Sensor_ INC
Descarga" Int
EN ENO
%MW50
"PASSO" IN/OUT

Network 9: PASSO #7 - Desce Transportador para descarregar a peça

%M15.7
"Aux_Motor_
%M15.1 %MW50 Vertical_
"PASSO" Desce3"
"Em_Ciclo"
==
Int
7
%M6.3
"Sensor_em_ INC
Baixo" Int
EN ENO
%MW50
"PASSO" IN/OUT

Network 10: PASSO #8 - Sobe Transportador


Licensed to pedro carvalho - p.carvalhosa000@gmail.com

Totally Integrated
Automation Portal

%M16.2
%MW50
%M15.1 "Aux_Motor_
"Em_Ciclo" "PASSO" Vertical_Sobe3"
==
Int
8
%M6.4
"Sensor_em_ INC
Cima" Int
EN ENO
%MW50
"PASSO" IN/OUT

Network 11: PASSO #9 - Recua para área de Carga, a posição Inicial

%M16.5
"Aux_Motor_
%M15.1 %MW50 Horizontal_
"PASSO" Recua1"
"Em_Ciclo"
==
Int
9
%M6.5 INC
"Sensor_Carga" Int
EN ENO
%MW50
"PASSO" IN/OUT

Network 12: PASSO #10 - Recua para área de Carga, a posição Inicial

%MW50
%M15.1 %M15.3
"Em_Ciclo" "PASSO" "Finalizar_Ciclo" MOVE
==
EN ENO
Int
10 0 IN %MW50
OUT1 "PASSO"

%M15.3
"Finalizar_Ciclo" MOVE
EN ENO
0 IN %MW50
OUT1 "PASSO"

%M15.2
"Fim_Ciclo"
S
Licensed to pedro carvalho - p.carvalhosa000@gmail.com

Totally Integrated
Automation Portal

Program blocks
Espelhamento das Entradas e Saidas [FC5]
Espelhamento das Entradas e Saidas Properties
General
Name Espelhamento das Entradas Number 5 Type FC Language LAD
e Saidas
Numbering Automatic
Information
Title ESPELHAMENTO DAS EN‐ Author Comment Family
TRADAS E SAIDAS DIGITAIS
Version 0.1 User-defined ID

Name Data type Default value


Input
Output
InOut
Temp
Constant
Return
Espelhamento das Entradas e Saidas Void

Network 1:

%I0.0 %M5.0
"IN_Bo_ "Bo_
Emergencia_1" Emergencia_1"

Network 2:

%I0.1 %M5.1
"IN_Bo_ "Bo_
Emergencia_2" Emergencia_2"

Network 3:

%I0.2 %M5.2
"IN_Seletora_ "Seletora_
Automatica" Automatica"

Network 4:

%I0.3
"IN_Bo_Inicio_ %M5.3
Ciclo" "Bo_Inicio_Ciclo"

Network 5:

%I0.4 %M5.4
"IN_Bo_Fim_Ciclo" "Bo_Fim_Ciclo"

Network 6:

%I0.5 %M5.5
"IN_Bo_Start" "Bo_Start"

Network 7:
Licensed to pedro carvalho - p.carvalhosa000@gmail.com

Totally Integrated
Automation Portal

%I0.6 %M5.6
"IN_Bo_Stop" "Bo_Stop"

Network 8:

%I0.7 %M5.7
"IN_Bo_Sobe" "Bo_Sobe"

Network 9:

%I1.0 %M6.0
"IN_Bo_Desce" "Bo_Desce"

Network 10:

%I1.1 %M6.1
"IN_Bo_Avança" "Bo_Avança"

Network 11:

%I1.2 %M6.2
"IN_Bo_Recua" "Bo_Recua"

Network 12:

%I1.3 %M6.3
"IN_Sensor_ "Sensor_em_
em_Baixo" Baixo"

Network 13:

%I1.4 %M6.4
"IN_Sensor_ "Sensor_em_
em_Cima" Cima"

Network 14:

%I1.5
"IN_Sensor_ %M6.5
Carga" "Sensor_Carga"

Network 15:

%I2.0
"IN_Sensor_ %M6.6
Central" "Sensor_Central"

Network 16:
Licensed to pedro carvalho - p.carvalhosa000@gmail.com

Totally Integrated
Automation Portal

%I2.1 %M6.7
"IN_Sensor_ "Sensor_
Descarga" Descarga"

Network 17:

%I2.2 %M7.0
"IN_Sensor_ "Sensor_Nivel_
Nivel_Maximo" Maximo"

Network 18:

%M10.0 %Q0.0
"Motor_ "OUT_Motor_
Horizontal_ Horizontal_
Avança" Avança"

Network 19:

%M10.1 %Q0.1
"Motor_ "OUT_Motor_
Horizontal_ Horizontal_
Recua" Recua"

Network 20:

%M10.2 %Q0.2
"Motor_Vertical_ "OUT_Motor_
Desce" Vertical_Desce"

Network 21:

%M10.3 %Q0.3
"Motor_Vertical_ "OUT_Motor_
Sobe" Vertical_Sobe"

Network 22:

%Q0.4
%M10.4 "OUT_Motor_
"Motor_Bomba" Bomba"
Licensed to pedro carvalho - p.carvalhosa000@gmail.com

Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


Retardo Nivel [DB1]
Retardo Nivel Properties
General
Name Retardo Nivel Number 1 Type DB Language DB
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain


Static
PT Time T#0ms False
ET Time T#0ms False
IN Bool false False
Q Bool false False
Licensed to pedro carvalho - p.carvalhosa000@gmail.com

Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


Tempo de Tratamento [DB2]
Tempo de Tratamento Properties
General
Name Tempo de Tratamento Number 2 Type DB Language DB
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain


Static
PT Time T#0ms False
ET Time T#0ms False
IN Bool false False
Q Bool false False

Você também pode gostar