aula plc
TRANSCRIPT
![Page 1: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/1.jpg)
PLC 5 – NÍVEL IPLC 5 – NÍVEL IAutomação
![Page 2: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/2.jpg)
ROCKWELL Automation do Brasil 2
CLP 5Nível 1Nível 1
CLP 5 NÍVEL ICLP 5 NÍVEL I
PROGRAMA DO CURSO
![Page 3: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/3.jpg)
ROCKWELL Automation do Brasil 3
CLP 5Nível 1Nível 1
SISTEMAS DE NUMERAÇÃO
O que será ?
![Page 4: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/4.jpg)
ROCKWELL Automation do Brasil 4
CLP 5Nível 1Nível 1
TABELA GERAL
DECIMAL HEXA OCTAL BINÁRIO BCD BCD
0 0 0 00000000 0000 0000
1 1 1 00000001 0000 0001
2 2 2 00000010 0000 0010
3 3 3 00000011 0000 0011
4 4 4 00000100 0000 0100
5 5 5 00000101 0000 0101
6 6 6 00000110 0000 0110
7 7 7 00000111 0000 0111
8 8 10 00001000 0000 1000
9 9 11 00001001 0000 1001
10 A 12 00001010 0001 0000
11 B 13 00001011 0001 0001
12 C 14 00001100 0001 0010
13 D 15 00001101 0001 0011
14 E 16 00001110 0001 0100
15 F 17 00001111 0001 0111
![Page 5: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/5.jpg)
ROCKWELL Automation do Brasil 5
CLP 5Nível 1Nível 1
DEFINIÇÃO DE CONTROLADOR LÓGICO PROGRAMAVEL
UNIDADE CENTRAL DE PROCESSAMENTO
DISPOSITIVOS DE PROGRAMAÇÃO/ COMUNICAÇÃO
MEMÓRIAPROGRAMA / DADOS
FONTE DE ALIMENTAÇÃO
C D I ERC EU N I TT R O A S D A
ISOLAMENTO ÓPTICO
ISOLAMENTO ÓPTICO
I >
C DI ERC SU A I Í T DO A S
P
X
![Page 6: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/6.jpg)
ROCKWELL Automation do Brasil 6
CLP 5Nível 1Nível 1
1 2 3
5
4
SAÍDAS
OUTPUT
Fonte de Alimentação
ENTRADAS
INPUT
CPU
MEMÓRIAS
IHMIHM
2
3 4
1
5
Dispositivos de S
aída
Dispositivos de entrada
![Page 7: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/7.jpg)
ROCKWELL Automation do Brasil 7
CLP 5Nível 1Nível 1
HISTÓRICO DOS CLP’s
Como surgiu os Controladores Lógico
Programáveis ?
![Page 8: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/8.jpg)
ROCKWELL Automation do Brasil 8
CLP 5Nível 1Nível 1
HISTÓRICO DOS CLP’s
• O desenvolvimento dos clp’s começou em 1968 em resposta a uma requisição da divisão hidramáticca da General Motors.
• Naquela época, a General Motors passava dias, semanas alterando sistemas de controle baseados em relés. Para reduzir o alto custo de instalação a especificação de controle da GM necessitava de um sistema de estado sólido, com a flexibilidade de um computador, mas que pudesse ser programado e mantido pelos engenheiros e técnicos na fábrica.
• Também era preciso que suportasse o ar poluído, a vibração, o ruído elétrico e os extremos de umidade e temperatura encontrados num ambiente industrial.
![Page 9: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/9.jpg)
ROCKWELL Automation do Brasil 9
CLP 5Nível 1Nível 1
HISTÓRICO DOS CLP’s
• Os primeiros CLP’s foram instalados em 1969, fazendo sucesso quase imediato.
• Funcionando como substitutos de relés, até mesmos estes primeiros CLP’s eram mais confiáveis do que os sistemas baseados em relés, principalmente devido à robustez de seus componentes de estado sólido quando comparados às peças moveis dos relés eletromecânicos.
• Os CLP’s permitiram reduzir os custos de materiais, mão-de-obra, instalação e localização de falhas ao reduzir a necessidade de fiação e os erros associados.
• Os CLP’s ocupam menos espaço do que os contadores, temporizadores e outros
![Page 10: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/10.jpg)
ROCKWELL Automation do Brasil 10
CLP 5Nível 1Nível 1
HISTÓRICO DOS CLP’S
• Talvez a razão principal da aceitação dos CLP’s pela indústria foi que a linguagem inicial de programação era baseada nos diagramas ladder é símbolos elétricos usados normalmente pelos eletricistas.
• A maior parte do pessoal de fábrica já estava treinada em lógica ladder.
• Na verdade, a lógica ladder ainda tem papel importante na programação e localização de falhas, mesmo com as linguagem mais “ avançadas “ de programação desenvolvidas posteriormente.
![Page 11: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/11.jpg)
ROCKWELL Automation do Brasil 11
CLP 5Nível 1Nível 1
CONCEITOS BÁSICOS
• Para entendermos o funcionamento dos controladores, vamos relembrar alguns conceitos básicos de vital importância como :
• BIT• BYTE• PALAVRA• MNEMÔNICO• SOFTWARE• HARDWARE
![Page 12: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/12.jpg)
ROCKWELL Automation do Brasil 12
CLP 5Nível 1Nível 1
CONCEITOS BÁSICOS
BIT , o que será?
![Page 13: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/13.jpg)
ROCKWELL Automation do Brasil 13
CLP 5Nível 1Nível 1
CONCEITOS BÁSICOS
PODE ASSUMIR APENAS DOIS VALORES:
BIT É O MENOR ESPAÇO DE ARMAZENAMENTO NA MEMÓRIA
“1” (ENERGIZADO/ VERDADEIRO )
“0” (DESENERGIZADO/FALSO ).
![Page 14: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/14.jpg)
ROCKWELL Automation do Brasil 14
CLP 5Nível 1Nível 1
CONCEITOS BÁSICOS
Bom BIT eu entendi...
mas o que é BYTE ?
![Page 15: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/15.jpg)
ROCKWELL Automation do Brasil 15
CLP 5Nível 1Nível 1
CONCEITOS BÁSICOS
• BEM, BYTE É UM GRUPO DE BIT’S ADJACENTES NORMALMENTE OPERADO COMO UMA UNIDADE.
• EXISTEM OITO BIT’S EM UM BYTE.
• UM BYTE É CAPAZ DE ARMAZENAR E MOSTRAR UM VALOR NUMÉRICO EQUIVALENTE ENTRE 0 E 255
• 0 0 0 0 0 0 0 0 ATÉ 1 1 1 1 1 1 1 1
![Page 16: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/16.jpg)
ROCKWELL Automation do Brasil 16
CLP 5Nível 1Nível 1
CONCEITOS BÁSICOS
Legal, BYTE é um conjunto de 8 bit’s...
Mas o que é PALAVRA ?
![Page 17: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/17.jpg)
ROCKWELL Automation do Brasil 17
CLP 5Nível 1Nível 1
CONCEITOS BÁSICOS
• PALAVRA É UMA UNIDADE DE MEMÓRIA COMPOSTA DE 16 BIT’S INDIVIDUAIS.
• AS PALAVRAS OU PARTES DE PALAVRAS SÃO USADAS NA PROGRAMAÇÃO DE INSTRUÇÕES OU NA REALIZAÇÃO DE OPERAÇÕES MATEMÁTICAS.
0 00 0 0 00 0 0 00 0 0 00 0
11 11 11 11 11 11 11 11
![Page 18: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/18.jpg)
ROCKWELL Automation do Brasil 18
CLP 5Nível 1Nível 1CONCEITOS BÁSICOS
O que é MNEMÔNICO?
![Page 19: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/19.jpg)
ROCKWELL Automation do Brasil 19
CLP 5Nível 1Nível 1
CONCEITOS BÁSICOS
• UM BOM MNEMÔNICO É COMO UM APELIDO PARA NOMES EXTENSOS
EX: UNIDADE CENTRAL DE PROCESSAMENTO
O MNEMÔNICO PARA ESTE NOME É
“ CPU ”
![Page 20: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/20.jpg)
ROCKWELL Automation do Brasil 20
CLP 5Nível 1Nível 1
CONCEITOS BÁSICOS
O que é SOFTWARE ?
![Page 21: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/21.jpg)
ROCKWELL Automation do Brasil 21
CLP 5Nível 1Nível 1
CONCEITOS BÁSICOS
• SÃO OS PROGRAMAS EM LINGUAGEM LADDER ARMAZENADO NO CLP.
• SÃO OS PACOTES DE PROGRAMAÇÃO EXECUTÁVEL, USADO PARA DESENVOLVER OS PROGRAMAS EM LINGUAGEM LADDER.
![Page 22: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/22.jpg)
ROCKWELL Automation do Brasil 22
CLP 5Nível 1Nível 1
CONCEITOS BÁSICOS
O que posso entender como HARDWARE ?
![Page 23: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/23.jpg)
ROCKWELL Automation do Brasil 23
CLP 5Nível 1Nível 1
CONCEITOS BÁSICOS
• HARDWARE INCLUI TODOS OS COMPONENTES FÍSICOS DO SISTEMA DE CONTROLE.
• CONTROLADOR
• PERIFÉRICOS
• FIAÇÃO DE CONEXÃO
![Page 24: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/24.jpg)
ROCKWELL Automation do Brasil 24
CLP 5Nível 1Nível 1
O SISTEMA CLP-5 CONSISTE DE
CHASSISCHASSISOU RACKOU RACK
CONTROLADORCONTROLADOR CARTÕES DE ENTRADA/SAÍDACARTÕES DE ENTRADA/SAÍDA
![Page 25: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/25.jpg)
ROCKWELL Automation do Brasil 25
CLP 5Nível 1Nível 1
LED’S DE INDICAÇÃO DE STATUS DO CLP
![Page 26: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/26.jpg)
ROCKWELL Automation do Brasil 26
CLP 5Nível 1Nível 1
INSTALANDO A EEPROMINSTALANDO A EEPROM
![Page 27: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/27.jpg)
ROCKWELL Automation do Brasil 27
CLP 5Nível 1Nível 1CICLO DE OPERAÇÃO
CICLO DE OPERAÇÃO
5
1
2
3
4
ENTRADAS
PROGRAMA
SAÍDAS
SERVIÇOSCOMUNS
HOUSEKEEPING
![Page 28: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/28.jpg)
ROCKWELL Automation do Brasil 28
CLP 5Nível 1Nível 1CICLO DE OPERAÇÃO
• 1- TEMPO REQUERIDO PELO PROCESSADOR PARA SCANEAR E LER TODAS AS ENTRADAS.
• 2- TEMPO REQUERIDO PELO PROCESSADOR PARA EXECUTAR TODAS AS INSTRUÇÕES PRESENTES NO PROGRAMA , ESTE TEMPO DEPENDE DAS INSTRUÇÕES UTILIZADAS.
• 3- TEMPO REQUERIDO PELO PROCESSADOR PARA SCANEAR E ESCREVER EM TODAS AS SAÍDAS.
• 4- PARTE DO CICLO DE OPERAÇÃO EM QUE A COMUNICAÇÃO TROCA DADOS COM OS OUTROS DISPOSITIVOS COMO O COMPUTADOR PESSOAL.
• 5- HOSEKEEPING É O TEMPO GASTO COM ATUALIZAÇÃO DOS REGISTROS INTERNOS.
![Page 29: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/29.jpg)
ROCKWELL Automation do Brasil 29
CLP 5Nível 1Nível 1ENDEREÇAMENTO DE
ENTRADA/SAÍDA
• GRUPO DE ENTRADA/SAÍDA : Unidade de endereçamento que corresponde a uma palavra da tabela imagem de entrada ( 16 bit’s ) e uma palavra na tabela imagem da saída ( 16 bit’s ) . Um grupo pode assumir até 16 entradas e 16 saídas, podendo ocupar 1/2, 1 ou 2 ranhuras( slot ) do módulo para endereçamento.
![Page 30: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/30.jpg)
ROCKWELL Automation do Brasil 30
CLP 5Nível 1Nível 1
ENDEREÇAMENTO DE ENTRADA/SAÍDA
I:000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
O:000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0GRUPO{
ENTRADA
SAÍDA
17 16 15 14 13 12 11 10 7 6 5 4 3 2 1 0
BIT’S
![Page 31: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/31.jpg)
ROCKWELL Automation do Brasil 31
CLP 5Nível 1Nível 1
00 00
treminais de treminais de entradaentrada
treminais de treminais de saídasaída
entradaentradaou saídaou saída
2 slots /grupo2 slots /grupo 1 slot /grupo1 slot /grupo
![Page 32: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/32.jpg)
ROCKWELL Automation do Brasil 32
CLP 5Nível 1Nível 1ENDEREÇAMENTO DE
ENTRADA/SAÍDA
• RACK LÓGICO ( GAVETA DE E/S ) : unidade de endereçamento que corresponde a 8 palavras da tabela de entrada e 8 palavras da tabela imagem de saída.
• Um rack lógico é um conjunto de 8 grupos ( 0 - 7)
![Page 33: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/33.jpg)
ROCKWELL Automation do Brasil 33
CLP 5Nível 1Nível 1
00 11 22 33 44 55 66 77
![Page 34: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/34.jpg)
ROCKWELL Automation do Brasil 34
CLP 5Nível 1Nível 1
ENDEREÇAMENTO DE ENTRADA/SAÍDA
• ENDEREÇAMENTO DE 2 RANHURAS ( SLOT’S )
• Ao selecionar o endereçamento de 2 ranhuras, o controlador endereça duas ranhuras físicas como um grupo de entrada/saída.
• MÓDULOS DE I/O ( ENTRADA/SAÍDA ) DE 8 BITS ( PONTOS ) : Os módulos de entrada/ saída discreta de 8 bits possuem no máximo, 8 entradas ou 8 saídas.
• Como esses módulos não interferem na tabela imagem de entrada/saída dos outros módulos , pode-se realizar qualquer combinação de 8 bits, em qualquer ordem.
![Page 35: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/35.jpg)
ROCKWELL Automation do Brasil 35
CLP 5Nível 1Nível 1
ENDEREÇAMENTO DE ENTRADA/SAÍDA
• MÓDULOS DE I/O ( ENTRADA/ SAÍDA ) DE 16 BITS ( PONTOS ) :
• Os módulos de entrada/saída de 16 bits (pontos ) possuem, no máximo 16 entradas ou 16 saídas.
• Um módulo de entrada/saída de 16 bits utiliza uma palavra completa na tabela imagem de entrada ou saída.
• MÓDULOS DE I/O ( ENTRADA/SAÍDA ) DE 16 BITS ( PONTOS ) DEVEM SER USADOS AOS PARES
• MÓDULOS DE I/O DE ( ENTRADA/SAÍDA ) DE 32 BITS ( PONTOS ) NÃO PODEM SER UTILIZADOS NESTE TIPO DE ENDEREÇAMENTO.
![Page 36: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/36.jpg)
ROCKWELL Automation do Brasil 36
CLP 5Nível 1Nível 1
terminais de entradaterminais de entradaterminais de entradaterminais de entrada
1771- IB1771- IB8 bits8 bits
2 slots/ranhuras físicos2 slots/ranhuras físicosformam 1 grupoformam 1 grupo
tabela imagem referente a saídatabela imagem referente a saída
tabela imagem referente a entradatabela imagem referente a entrada
não utilizadanão utilizada
![Page 37: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/37.jpg)
ROCKWELL Automation do Brasil 37
CLP 5Nível 1Nível 1
00001771- IB1771- IB1771- OB1771- OB
terminais de saídaterminais de saída terminais de entradaterminais de entrada
tabela imagem de entradatabela imagem de entrada
utilizada não utilizadautilizada não utilizadatabela imagem de saídatabela imagem de saída
não utlizada utilizadanão utlizada utilizada
![Page 38: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/38.jpg)
ROCKWELL Automation do Brasil 38
CLP 5Nível 1Nível 100
1771 - IBD1771 - IBD 1771 - OBD1771 - OBD
terminais de entradaterminais de entrada terminais de saídaterminais de saída
tabela imagem de saídatabela imagem de saída
tabela imagem de entradatabela imagem de entrada
![Page 39: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/39.jpg)
ROCKWELL Automation do Brasil 39
CLP 5Nível 1Nível 1
designação do grupo de entrada/saídadesignação do grupo de entrada/saída
chassis de entrada e saída comchassis de entrada e saída commódulos de 16 bitsmódulos de 16 bits
Designação de entrada/saídaDesignação de entrada/saída
palavra #palavra #tabela imagem de entradatabela imagem de entrada
palavra #palavra # tabela imagem de saídatabela imagem de saída
![Page 40: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/40.jpg)
ROCKWELL Automation do Brasil 40
CLP 5Nível 1Nível 1
ENDEREÇAMENTO DE ENTRADA/SAÍDA
• ENDEREÇAMENTO DE 1 RANHURA ( SLOT ) POR GRUPO
• Ao selecionar o endereçamento de 1 ranhura, o controlador endereça uma ranhura do módulo de entrada e saída como um grupo de entrada e saída.
• cada ranhura física no chassi corresponde a uma palavra na tabela imagem de entrada e de saída.
• O tipo ( unidirecional ou bidirecional ) e a densidade do módulo instalado determinam o número de bits utilizados nessas palavras.
![Page 41: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/41.jpg)
ROCKWELL Automation do Brasil 41
CLP 5Nível 1Nível 1
ENDEREÇAMENTO DE ENTRADA/SAÍDA
• Módulos de entrada/saida de 8 bits pode ser utilizado em qualquer combinação no endereçamento de 1 ranhura.
• Módulos de entrada/saída de 16 bits também podem ser utilizados em qualquer combinação.
• Módulos de entrada/saída de 32 bits devem ser utilizados aos pares.
![Page 42: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/42.jpg)
ROCKWELL Automation do Brasil 42
CLP 5Nível 1Nível 1
OUOU
1771 - IBD1771 - IBD
TERMINAIS DE ENTRADATERMINAIS DE ENTRADA
1771 - OBD1771 - OBD
TERMINAIS DE SAIDATERMINAIS DE SAIDA
TABELA IMAGEM DE SAÍDATABELA IMAGEM DE SAÍDA
TABELA IMAGEM DE ENTRADATABELA IMAGEM DE ENTRADA
![Page 43: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/43.jpg)
ROCKWELL Automation do Brasil 43
CLP 5Nível 1Nível 1
![Page 44: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/44.jpg)
ROCKWELL Automation do Brasil 44
CLP 5Nível 1Nível 1
![Page 45: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/45.jpg)
ROCKWELL Automation do Brasil 45
CLP 5Nível 1Nível 1
![Page 46: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/46.jpg)
ROCKWELL Automation do Brasil 46
CLP 5Nível 1Nível 1
![Page 47: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/47.jpg)
ROCKWELL Automation do Brasil 47
CLP 5Nível 1Nível 1ENDEREÇAMENTO DE I/O
___:___ ___ ___/ ___ ___
NÚMERO DO GRUPO
BIT ( 0-17 )
I = ENTRADAO = SAÍDA
I 0 1 2 1 5
OBS : ENDEREÇAMENTO EM OCTAL
NÚMERO DO RACK LÓGICO
![Page 48: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/48.jpg)
ROCKWELL Automation do Brasil 48
CLP 5Nível 1Nível 1ENDEREÇAMENTO DE I/O
___:___ ___ ___/ ___ ___
NÚMERO DO GRUPO
BIT ( 0-17 )
I = ENTRADAO = SAÍDA
I 0 1 2 1 5
OBS : ENDEREÇAMENTO EM OCTAL
NÚMERO DO RACK LÓGICO
![Page 49: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/49.jpg)
ROCKWELL Automation do Brasil 49
CLP 5Nível 1Nível 1
INSTRUÇÕES TIPO RELÉ
• --| |--, XIC ; EXAMINA SE ENERGIZADO.
• --| |--, XIO ; EXAMINA SE DESENERGIZADO.
• --( )--, OTE ; ENERGIZA SAÍDA
• --( L )--, OTL ; ENERGIZA SAÍDA COM RETENÇÃO
• --( U )--, OTU ; DESENERGIZA SAÍDA COM RETENÇÃO
![Page 50: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/50.jpg)
ROCKWELL Automation do Brasil 50
CLP 5Nível 1Nível 1
DISPOSITIVO DE CAMPO
FONTE DE ALIMENTAÇÃODOCLIENTE
![Page 51: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/51.jpg)
ROCKWELL Automation do Brasil 51
CLP 5Nível 1Nível 1
ACTIVE00 10 01 1102 1203 1304 1405 1506 1607 17FUSE
![Page 52: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/52.jpg)
ROCKWELL Automation do Brasil 52
CLP 5Nível 1Nível 1
ACTIVE00 1001 1102 1203 1304 1405 1506 1607 17
![Page 53: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/53.jpg)
ROCKWELL Automation do Brasil 53
CLP 5Nível 1Nível 1
TABELA IMAGEM DE SAÍDA
O:000: 0000 0000 0000 0000O:001: 0000 0000 0000 0000O:002: 0000 0000 0000 0000O:003: 0000 0000 0000 0000O:004: 0000 0000 0000 0000O:005: 0000 0000 0000 0000O:006: 0000 0000 0000 0000O:007 0000 0000 0000 0000
RACKLÓGICOZERO
SAÍDA GRUPO
17 16 15 14 13 12 11 10 7 6 5 4 3 2 1 0
![Page 54: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/54.jpg)
ROCKWELL Automation do Brasil 54
CLP 5Nível 1Nível 1TABELA IMAGEM DE ENTRADA
I:000: 0000 0000 0000 0000 I:001: 0000 0000 0000 0000 I:002: 0000 0000 0000 0000 I:003: 0000 0000 0000 0000 I:004: 0000 0000 0000 0000 I:005: 0000 0000 0000 0000 I:006: 0000 0000 0000 0000 I:007 0000 0000 0000 0000
RACKLÓGICOZERO
ENTRADA GRUPO
17 16 15 14 13 12 11 10 7 6 5 4 3 2 1 0
![Page 55: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/55.jpg)
ROCKWELL Automation do Brasil 55
CLP 5Nível 1Nível 1
ARQUIVO DE DADOS
T4:0EN TT DN
PRESETADO
ACUMULADO
Isto é uma palavra !
Isto é uma palavra !
Isto é uma palavra !
I:000 0000 0000 0000 0000
ELEMENTO
![Page 56: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/56.jpg)
ROCKWELL Automation do Brasil 56
CLP 5Nível 1Nível 1
NECESSITO DEIXAR UMA LÂMPADA LIGADA DURANTE 2 MINUTOS ?
![Page 57: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/57.jpg)
ROCKWELL Automation do Brasil 57
CLP 5Nível 1Nível 1
TEMPORIZADORES• Existem aplicações que devem ocorrer durante
um certo tempo ou depois de um certo tempo.• No CLP-5 temos:• TON :Timer on ( temporizador na energização).• TOF :Timer off ( temporizador na
desenergização).• RTO :Retentive Timer on : ( temporizador na
energização retentivo ).
![Page 58: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/58.jpg)
ROCKWELL Automation do Brasil 58
CLP 5Nível 1Nível 1TEMPORIZADORES
] [TIMER ON DELAY
TimerTime BasePresetAccum
( EN )
( DN )
TONI:002
10
TON ( T emporizador na energização ) : Vamos ver como parametrizar esta instrução.
![Page 59: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/59.jpg)
ROCKWELL Automation do Brasil 59
CLP 5Nível 1Nível 1TEMPORIZADORES
] [TIMER ON DELAY
TimerTime BasePresetAccum
( EN )
( DN )
TONI:002
10T4:0
No CLP-5 existe um arquivo dentro da área de DADOS especifico para temporizadores observe na figura a seguir :
![Page 60: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/60.jpg)
ROCKWELL Automation do Brasil 60
CLP 5Nível 1Nível 1TEMPORIZADORES
DADOS
ORGANIZAÇÃO DA MEMÓRIA O 0 SAÍDA
I 1 ENTRADAS 2 STATUS
B 3 BINÁRIOT 4 TEMPORIZA.
T4:0EN TT DN ESTADO
PRESETEACUMULADO
SOMENTE OS BITS
PALAVRA
PALAVRA
![Page 61: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/61.jpg)
ROCKWELL Automation do Brasil 61
CLP 5Nível 1Nível 1TEMPORIZADORES
] [TIMER ON DELAY
TimerTime BasePresetAccum
( EN )
( DN )
TONI:002
10T4:0
1. 0
EXISTEM DUAS BASES DE TEMPO PARA TEMPORIZADORES
1. 0 SEGUNDO0.01 SEGUNDOS
![Page 62: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/62.jpg)
ROCKWELL Automation do Brasil 62
CLP 5Nível 1Nível 1TEMPORIZADORES
] [TIMER ON DELAY
TimerTime BasePresetAccum
( EN )
( DN )
TONI:002
10T4:0
1. 0
120
Valor de presete multiplicado pela base de tempo, determina o valor total da operação do temporizador.
O maior valor para o preset é de 32.767 positivo
![Page 63: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/63.jpg)
ROCKWELL Automation do Brasil 63
CLP 5Nível 1Nível 1TEMPORIZADORES
] [TIMER ON DELAY
TimerTime BasePresetAccum
( EN )
( DN )
TONI:002
10T4:0
1. 0
120
0
O valor de acumulado será incrementado de 1.0 em 1.0 segundo a partir do valor estipulado para o acumulado, no momento em que a condição de entrada for satisfeita, lembrando que depois da operação ou durante a mesma se a condição passar a ser falsa o valor de acumulado é zerado e dos bits de controle.
![Page 64: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/64.jpg)
ROCKWELL Automation do Brasil 64
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [TIMER ON DELAY
TimerTime BasePresetAccum
( EN )
( DN )
TONI:002
10T4:0
1. 0
120
1
![Page 65: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/65.jpg)
ROCKWELL Automation do Brasil 65
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [TIMER ON DELAY
TimerTime BasePresetAccum
( EN )
( DN )
TONI:002
10T4:0
1. 0
120
2
ATENÇÃO
![Page 66: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/66.jpg)
ROCKWELL Automation do Brasil 66
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [TIMER ON DELAY
TimerTime BasePresetAccum
( EN )
( DN )
TONI:002
10T4:0
1. 0
120
3
![Page 67: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/67.jpg)
ROCKWELL Automation do Brasil 67
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [TIMER ON DELAY
TimerTime BasePresetAccum
( EN )
( DN )
TONI:002
10T4:0
1. 0
120
4
![Page 68: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/68.jpg)
ROCKWELL Automation do Brasil 68
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [TIMER ON DELAY
TimerTime BasePresetAccum
( EN )
( DN )
TONI:002
10T4:0
1. 0
120
120
ESTES SÃO OS BITS DE CONTROLE
![Page 69: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/69.jpg)
ROCKWELL Automation do Brasil 69
CLP 5Nível 1Nível 1
TEMPORIZADORES
VEJA COMO OS BITS DE CONTROLE FUNCIONAM
T4:0 neste elemento temos 3 bits disponíveis são eles:
ENABLE ( EN ): enquanto a condição de entrada for verdadeira este bit ficará em 1 caso contrário 0
DONE ( DN ) : quando o valor de acumulado for igual ao valor presetado este bit irá para 1 permanecendo assim até a condição de entrada passar para 0, ou T4:0 ser resetado.
TIMER TIMING ( TT ): quando o temporizador estiver habilitado, e o valor de acumulado estiver sendo incrementado este bit estará em 1 caso contrário 0
![Page 70: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/70.jpg)
ROCKWELL Automation do Brasil 70
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
TIMER ON DELAY
TimerTime BasePresetAccum
( EN )
( DN )
TON
T4:0
1. 0
120
120
] [T4:0
EN( )
O:003
15
] [T4:0
DN( )
O:003
17
![Page 71: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/71.jpg)
ROCKWELL Automation do Brasil 71
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [T4:0
TT( )
O:003
07
] [I:002
10
TIMER ON DELAY
TimerTime BasePresetAccum
( EN )
( DN )
TON
T4:0
1. 0
120
100
![Page 72: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/72.jpg)
ROCKWELL Automation do Brasil 72
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
RETENTIVE TIMER ON
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
0
RTO
![Page 73: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/73.jpg)
ROCKWELL Automation do Brasil 73
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
RETENTIVE TIMER ON
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
1
RTO
![Page 74: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/74.jpg)
ROCKWELL Automation do Brasil 74
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
RETENTIVE TIMER ON
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
3
RTO
![Page 75: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/75.jpg)
ROCKWELL Automation do Brasil 75
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
RETENTIVE TIMER ON
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
4
RTO
![Page 76: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/76.jpg)
ROCKWELL Automation do Brasil 76
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
RETENTIVE TIMER ON
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
4
RTO
![Page 77: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/77.jpg)
ROCKWELL Automation do Brasil 77
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
RETENTIVE TIMER ON
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
5
RTO
![Page 78: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/78.jpg)
ROCKWELL Automation do Brasil 78
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
RETENTIVE TIMER ON
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
120
RTO
![Page 79: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/79.jpg)
ROCKWELL Automation do Brasil 79
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
RETENTIVE TIMER ON
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
120
RTO
Mesmo que a condição de entrada passe a ser falsa o valor de acumulado ficará retido. Dessa forma será necessário se utilizar de uma instrução denominada por resete ( RES ), no endereço do temporizador
![Page 80: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/80.jpg)
ROCKWELL Automation do Brasil 80
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
RETENTIVE TIMER ON
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
120
RTO
] [ ( res )T4:1
DN
T4:1
![Page 81: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/81.jpg)
ROCKWELL Automation do Brasil 81
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
TIMER OFF DELAY
TimerTime BasePresetAccum
( EN )
( DN )
T4:2
1. 0
120
0
TOF
O temporizador na desenergização necessita que a condição da linha passe de verdadeira para falsa, neste momento o temporizador passa a incrementar o acumulado de acordo com a base de tempo definida no time base.
![Page 82: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/82.jpg)
ROCKWELL Automation do Brasil 82
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
TIMER OFF DELAY
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
0
TOF
Observe que o bit de executado já esta energizado ou seja 1 e irá a zero quando o valor de acumulado for igual ao valor presetado.
![Page 83: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/83.jpg)
ROCKWELL Automation do Brasil 83
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
TIMER OFF DELAY
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
1
TOF
![Page 84: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/84.jpg)
ROCKWELL Automation do Brasil 84
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
TIMER OFF DELAY
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
2
TOF
![Page 85: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/85.jpg)
ROCKWELL Automation do Brasil 85
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
TIMER OFF DELAY
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
2
TOF
![Page 86: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/86.jpg)
ROCKWELL Automation do Brasil 86
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
TIMER OFF DELAY
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
3
TOF
![Page 87: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/87.jpg)
ROCKWELL Automation do Brasil 87
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
TIMER OFF DELAY
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
4
TOF
![Page 88: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/88.jpg)
ROCKWELL Automation do Brasil 88
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
TIMER OFF DELAY
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
5
TOF
![Page 89: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/89.jpg)
ROCKWELL Automation do Brasil 89
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
TIMER OFF DELAY
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
6
TOF
![Page 90: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/90.jpg)
ROCKWELL Automation do Brasil 90
CLP 5Nível 1Nível 1
TEMPORIZADORES
] [I:002
10
TIMER OFF DELAY
TimerTime BasePresetAccum
( EN )
( DN )
T4:1
1. 0
120
120
TOF
![Page 91: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/91.jpg)
ROCKWELL Automation do Brasil 91
CLP 5Nível 1Nível 1EXERCÍCIO
![Page 92: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/92.jpg)
ROCKWELL Automation do Brasil 92
CLP 5Nível 1Nível 1
Criar um arquivo de programa de 4 nomear como semáfaro, tornar o mesmo MCP.Elaborar um programa em lógica ladder para controlar um semáfaro.A lâmpada vermelha = O:003/7 e deverá permanecer acessa durante 20 segundos.A lâmpada verde = O:003/0 e deverá permanecer acessa durante 15 segundos.A lâmpada amarela = O:003/4 e deverá permanecer acessa durante 7segundos.
![Page 93: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/93.jpg)
ROCKWELL Automation do Brasil 93
CLP 5Nível 1Nível 1
![Page 94: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/94.jpg)
ROCKWELL Automation do Brasil 94
CLP 5Nível 1Nível 1
![Page 95: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/95.jpg)
ROCKWELL Automation do Brasil 95
CLP 5Nível 1Nível 1
![Page 96: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/96.jpg)
ROCKWELL Automation do Brasil 96
CLP 5Nível 1Nível 1
![Page 97: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/97.jpg)
ROCKWELL Automation do Brasil 97
CLP 5Nível 1Nível 1
![Page 98: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/98.jpg)
ROCKWELL Automation do Brasil 98
CLP 5Nível 1Nível 1
CONTADORES
![Page 99: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/99.jpg)
ROCKWELL Automation do Brasil 99
CLP 5Nível 1Nível 1
CONTADORES
Existem dois tipos de contadores nos CLP-5 são eles :
COUNTER UP ( CTU ): Contador crescente
COUNTER DOWN ( CTD ): Contador decrescente
![Page 100: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/100.jpg)
ROCKWELL Automation do Brasil 100
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER UP
CounterPresetAccum
( CU )
( DN )
C5:0
CTU
Dentro da organização de memória do CLP-5, existe um arquivo destinado para contadores veja a seguir :
![Page 101: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/101.jpg)
ROCKWELL Automation do Brasil 101
CLP 5Nível 1Nível 1
CONTADORES
SOMENTE OS BITS
ORGANIZAÇÃO DA MEMÓRIA O 0 SAÍDA
I 1 ENTRADAS 2 STATUS
B 3 BINÁRIOT 4 TEMPORIZA.
C5:0CU CD DN OV UN
PRESETE ACUMULADO
PALAVRA
PALAVRA
C 5 CONTADOR.
DADOS
![Page 102: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/102.jpg)
ROCKWELL Automation do Brasil 102
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER UP
CounterPresetAccum
( CU )
( DN )
C5:0
CTU
100
1
A cada transição de falsa para verdadeira da linha, o valor de acumulado incrementará
![Page 103: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/103.jpg)
ROCKWELL Automation do Brasil 103
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER UP
CounterPresetAccum
( CU )
( DN )
C5:0
CTU
100
2
![Page 104: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/104.jpg)
ROCKWELL Automation do Brasil 104
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER UP
CounterPresetAccum
( CU )
( DN )
C5:0
CTU
100
3
![Page 105: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/105.jpg)
ROCKWELL Automation do Brasil 105
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER UP
CounterPresetAccum
( CU )
( DN )
C5:0
CTU
100
4
![Page 106: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/106.jpg)
ROCKWELL Automation do Brasil 106
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER UP
CounterPresetAccum
( CU )
( DN )
C5:0
CTU
100
100
Quando o valor de acumulado for igual ao valor de presetado o bit de ( DN ) irá para 1
![Page 107: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/107.jpg)
ROCKWELL Automation do Brasil 107
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER UP
CounterPresetAccum
( CU )
( DN )
C5:0
CTU
100
101
Mesmo que o valor de acumulado tenha atingido o valor presetado se a condição de entrada transicionar de falsa para verdadeira o contador continuará incrementando até o valor de 32.767 positivo.
![Page 108: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/108.jpg)
ROCKWELL Automation do Brasil 108
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER UP
CounterPresetAccum
( CU )
( DN )
C5:0
CTU
10032.767
Quando o valor de acumulado estiver em 32.767, se a condição de entrada continuar transicionando, então o valor de acumulado gira para o maior valor negativo -32.768 e passará o bit de OVERFLOW ( OV ) para 1 permanecendo até o contador ser resetado
![Page 109: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/109.jpg)
ROCKWELL Automation do Brasil 109
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER UP
CounterPresetAccum
( CU )
( DN )
C5:0
CTU
100
-32.768
![Page 110: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/110.jpg)
ROCKWELL Automation do Brasil 110
CLP 5Nível 1Nível 1
CONTADORES
Para resetar o contador utilize-se da instrução de RESETE
( RES )C5:0
![Page 111: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/111.jpg)
ROCKWELL Automation do Brasil 111
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER DOWN
CounterPresetAccum
( CD )
( DN )
C5:1
CTD
-100
0
![Page 112: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/112.jpg)
ROCKWELL Automation do Brasil 112
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER DOWN
CounterPresetAccum
( CD )
( DN )
C5:1
CTD
-100
-1
![Page 113: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/113.jpg)
ROCKWELL Automation do Brasil 113
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER DOWN
CounterPresetAccum
( CD )
( DN )
C5:1
CTD
-100
-2
![Page 114: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/114.jpg)
ROCKWELL Automation do Brasil 114
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER DOWN
CounterPresetAccum
( CD )
( DN )
C5:1
CTD
-100
-3
![Page 115: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/115.jpg)
ROCKWELL Automation do Brasil 115
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER DOWN
CounterPresetAccum
( CD )
( DN )
C5:1
CTD
-100
-100
Quando o valor de acumulado se torna menor que o valor presetado o bit de ( DN ) irá a 0
![Page 116: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/116.jpg)
ROCKWELL Automation do Brasil 116
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER DOWN
CounterPresetAccum
( CD )
( DN )
C5:1
CTD
-100
-101
Se a condição de entrada continuar transicionando o valor de acumulado irá decrescer até atingir o maior
valor negativo -32.768
![Page 117: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/117.jpg)
ROCKWELL Automation do Brasil 117
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER DOWN
CounterPresetAccum
( CD )
( DN )
C5:1
CTD
-100
-32.768
Quando o maior valor negativo para o acumulado for atingido, e se a condição de entrada continuar transicionando o bit de UNDERFLOW ( UV ) irá a 1, e o acumulado gira para o valor
máximo positivo 32.767 e continuará a ser decrementado.
![Page 118: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/118.jpg)
ROCKWELL Automation do Brasil 118
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER DOWN
CounterPresetAccum
( CD )
( DN )
C5:1
CTD
-100
32.767
![Page 119: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/119.jpg)
ROCKWELL Automation do Brasil 119
CLP 5Nível 1Nível 1
CONTADORES
] [I:002
05
COUNTER DOWN
CounterPresetAccum
( CD )
( DN )
C5:1
CTD
-100
32.766
![Page 120: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/120.jpg)
ROCKWELL Automation do Brasil 120
CLP 5Nível 1Nível 1
ARITMÉTICAS
CHAVE THUMBWEEL
BCD0 0 1 0
0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1771-IBD
BIT17 16 15 14 13 12 11 10 7 6 5 4 3 2 1 0
1 x 24 = 16
VALOR EM DECIMAL
![Page 121: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/121.jpg)
ROCKWELL Automation do Brasil 121
CLP 5Nível 1Nível 1
ARITMÉTICAS
] [I:002
05
FROM BCD
Source
Dest
I:000
FRD
Endereço a nível de PALAVRA, da origem do valor a ser convertido para decimal ex: chave thumbweel
![Page 122: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/122.jpg)
ROCKWELL Automation do Brasil 122
CLP 5Nível 1Nível 1
ARITMÉTICAS
FRD
] [I:002
05
FROM BCD
Source
Dest
I:000
N7: 0
A CONVERSÃO DE UM NUMERO INTEIRO EM BCD DEVEORIGINAR UM OUTRO NÚMERO INTEIRO EM DECIMAL, VISTODESTA MANEIRA, O ARQUIVO DE DADOS N7 JÁ PREDEFINIDOPARA ARMAZENAR NÚMEROS INTEIROS
FRD
![Page 123: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/123.jpg)
ROCKWELL Automation do Brasil 123
CLP 5Nível 1Nível 1
ARITMÉTICAS
] [I:002
05
FROM BCD
Source
Dest
I:000
N7: 0
FROM BCD
Source
Dest
I:012
N7: 1
TW1FRD
TW2
FRD
![Page 124: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/124.jpg)
ROCKWELL Automation do Brasil 124
CLP 5Nível 1Nível 1
ARITMÉTICAS
] [I:002
10
ADDSource
Source
Dest
N7:0
ADD
N7:1
N7:2
O resultado de uma operação de soma com números inteiros é umterceiro número inteiro deve ser armazenado no arquivo de númerosinteiros
![Page 125: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/125.jpg)
ROCKWELL Automation do Brasil 125
CLP 5Nível 1Nível 1
ARITMÉTICAS
TO BCD
Source
Dest
N7:2
TOD
O:001
ENDEREÇO DO DISPLAY, LEMBRE-SE O DISPLAY E UM DISPOTIVO BCD, DESTA FORMA SERÁ NECESSÁRIO A CONVERSÃO DE DECIMAL PARA BCD
![Page 126: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/126.jpg)
ROCKWELL Automation do Brasil 126
CLP 5Nível 1Nível 1
ARITMÉTICAS
] [I:002
11
SUBTRACTSource
Source
Dest
N7:0
SUB
N7:1
N7:2
![Page 127: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/127.jpg)
ROCKWELL Automation do Brasil 127
CLP 5Nível 1Nível 1
ARITMÉTICAS
] [I:002
12
MULTIPLYSource
Source
Dest
N7:0
MUL
N7:1
N7:2
![Page 128: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/128.jpg)
ROCKWELL Automation do Brasil 128
CLP 5Nível 1Nível 1
ARITMÉTICAS
] [I:002
12
DIVIDESource
Source
Dest
N7:0
DIV
N7:1
N7:2
![Page 129: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/129.jpg)
ROCKWELL Automation do Brasil 129
CLP 5Nível 1Nível 1OFF - LINE
• O modo de programação OFF - LINE determina que a operação esta sendo realizada na memória CMOSRAM do microcomputador.
• Dessa forma o micro não esta conectado a memória do CLP.
• A operação SAVE irá salvar o programa que esta na memória RAM do micro, para a winchester ( arquivo ).
• A operação RESTORE irá transportar o conteúdo da WINCHESTER para a memória do MICRO, possibilitando assim desenvolver programas sem a necessidade do CLP.
• Veja a figura a seguir :
![Page 130: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/130.jpg)
ROCKWELL Automation do Brasil 130
CLP 5Nível 1Nível 1OFF - LINE
OPEN
CMOSRAM
winchester
SAVE
![Page 131: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/131.jpg)
ROCKWELL Automation do Brasil 131
CLP 5Nível 1Nível 1OFF - LINE
OFFLINE
PROGRAM
CMOSRAM
winchester
SAVE
WORK
![Page 132: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/132.jpg)
ROCKWELL Automation do Brasil 132
CLP 5Nível 1Nível 1
ON - LINE
• O modo de operação ON - LINE determina que as operações estão sendo realizadas na memória CMOSRAM de do CLP.
• Dessa forma as modificações deveram ser salvas para a winchester após o termino.
• veja a figura a seguir :
![Page 133: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/133.jpg)
ROCKWELL Automation do Brasil 133
CLP 5Nível 1Nível 1
ON -LINE
winchester
CMOSRAMCMOSRAM
DOWNLOAD
UPLOAD
![Page 134: Aula PLC](https://reader035.vdocuments.mx/reader035/viewer/2022062313/5572143f497959fc0b9419fe/html5/thumbnails/134.jpg)
ROCKWELL Automation do Brasil 134
CLP 5Nível 1Nível 1
ON -LINE
winchester
CMOSRAMCMOSRAM
RESTORE
SAVE