Logo Passei Direto
Buscar
Material

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Prévia do material em texto

SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 BRESIMAR AUTOMAÇÃO MANUAL COM EXPLICAÇÕES GRÁFICAS DA PROGRAMAÇÃO SIEMENS S7-1200 COM "STEP 7 Basic" Primeiro programa em S7-1200 v1.1-03/2010) TIA Portal Hardware PLC HMI Process asarek www.bresimar.pt 1SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 PORTAL DO S7-1200 Siemens - Pasteurization_Station Totally Integrated Automation PORTAL Start 1 2 Open existing project 3 Recently used Devices & Open existing project Networks Project Path Last Create new project Documents and 8/4/2 Documents and 8/4/2 PLC Migrate project Documents and Programming Documents and 8/4/2 Documents and Visualization Documents and Documents and Documents and Online & First steps Diagnostics Installed products Help Browse Open 4 Project view 5 Opened project: C:\Documents and Setting...asteurization_Station Project View (4, na fig. acesso a todos os componentes do projecto Siemens Pasteurization Station Project Edit View 1 it Online Options Tools Totally Integrated Automation Save project X - 2 PORTAL Project tree Pasteurization_Station PLC_1 Program blocks Main Devices + 3 ?? Instructions PLC Programming Add new device Block title: "Main Program 4 Devices 5 Network 1: Comment Device sting Online & diagno ON OFF Switch blocks Add new block Main Tasks "DFF" Technological PLC tags Watch tables ON_OFF_Switch Properties Info Diagnostics Textlists Libraries General Details view Tag 6 7 Tag General Name: ON_OFF_Switch Address: 8 Portal view Overview Main Project Pasteunzation_Station www.bresimar.pt 2SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 CAPITULO 01 : Crie seu programa + PB1 PB2 KO KO %0.1 "PB_2" "KO" "KO" Irá criar um programa , em LAD "ladder", com o circuito discontactor" como o representado na figura anterior Neste exercício serão executados os seguintes passos : 1.1 Criação do projecto 1.2 Inserção de instruções em LAD ("Ladder") no programa 1.3 - Associar as instruções em LAD com as da CPU 1.4 - Configurar a CPU 1.5 - Descarregar programa para a CPU 1.6 - Testar funcionamento do programa e respectivo automatismo www.bresimar.pt 3SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 1.1 - Crie seu projecto Start [Start] Create Devices Open existing project - Create project Commerc project [Create new Deline & First steps Open existing project successfully Please the step: project Start project [Create a PLC program] program Para Iniciar com 0 First an "STEP 7 Basic" click 2 vezes neste "icon" installed Open the Start Show all objects Devices Show all Abra de seguida 0 bloco "Main". "Click"2 vezes nele Add new PLC [Main] De seguida , o "STEP7 Basic" mudará para a janela "Project View" e apresentará a 1ª "network" do bloco de programa "Main". - Depois de abrir o Project View poderá começar a introduzir as instruções do em LAD ("ladder"), , na "network" www.bresimar.pt 4SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 1.2 - Construa seu programa ?? ++ H/H ?? 4 "Click" primeiro no simbolo de contacto NA de seguida no contacto NF e por ultimo numa bobine ("coil") De seguida crie , um segundo "ramo" na 1ª "network". i ?? A partir desse 2° ramo será colocado um contacto normalmente aberto (NA) em paralelo com outro elemento De seguida "click" no botão de [Save Project] www.bresimar.pt 5SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 1.3 - Atribua endereços as "tags" Atribua a cada contacto e bobine um endereço ("10.0", "10.1" e "Q0.0") Caso queira renomear as "tags" poderá faze-lo com um "click" com a tecla direita na "tag" que pretende alterar Alt+Shift+D Rename tag Rename tag Rewire tag X Cut Copy Paste Mude as seguintes "tags": X Delete Del "Tag_1" (10.0) para "On" Rename F2 "Tag_2" (10.1) para "Off" "Tag_3" (10.2) para "Run" Go to Showusage Cross-references Rename tag Insert network Name Section Address Data type Comment Global Input %10.0 Bod Insert empty box Change Cancel Properties %000 "On" "Run" "off" ["Off"] ["On"] [Run] %000 No final terá este circuito "On" "Off" "Run" %00.0 "Run" De seguida "click" no botão de [Save Project] . www.bresimar.pt 6SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 1.4- Configure CPU Descarregue a configuração da CPU do PLC para projecto aberto anteriormente Project tree Devices No "Project tree" "click"2 vezes no "Device configuration" para mostrar a CPU 0 "STEP 7 Basic" cria uma CPU, sem especificações ("unspecified") quando abre a janela do Add new device editor LAD ("Ladder") . Devices & Networks PLC_1 [Unspecific CPU 1200] Caso pretenda colocar a CPU com que vai trabalhar e se Device configuration ela estiver em "online" "click" em"detect". Program blocks Add new block [Device configuration] Main o "STEP7 Basic" detecta qualquer CPU ligada ao seu computador 101 The device is not specified. Please hardware catalog to specify the CPU or detect of the connected device [Detect] Seleccione a CPU e "click" no botão [Load] "Load" para descarregar do PLC a configuração para 0 seu projecto Configure as propriedades da CPU do seu PLC. Properties General interface Status 101 [Status mode) Statup of Startup] 103 and time Communic addresses "Click" na figura do PLC para poder alterar as suas propriedades (modifique o "Startup" para "Warm Resart RUN" ) Isto significa que quando o PLC iniciar, passa para modo de funcionamento RUN Anteriormente, quando se executou descarregar da configuração da CPU do PLC, este não tinha atribuído qualquer endereço IP De seguida deverá atribuir um endereço IP ao seu PLC. www.bresimar.pt 7SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 PROFINET Properties Gener 1 [Ethernet [Properties] addresses - [Ethernet addresses] connected with Not connected protocol] 103 protocol address] address 192 0 1 mask 255 255 255 0 IF router address "Click" na porta PROFINET na figura da CPU, de maneira a apresentar a janela das propriedades da porta de comunicação PROFINET. Poderá também seleccionar a propriedade "General" na pasta [PROFINET interface]. IP indicado é o que foi por defeito pelo STEP7 Basic 1.5- Descarregue programa para CPU Descarregue as parametrizações efectuadas anteriormente para o PLC. 1. Seleccione a CPU 2. "Click" no botão "Download" das ferramentas preview ? Check before loading Target program [Load] Depois da ligação feita ao PLC deverá aparecer a janela "Load preview" "Click" em [Load] para descarregar o programa para a CPU Antes do "click" do botão [Finish] seleccione a opção "Start All" para assegurar que a CPU passe a modo RUN quando iniciar De seguida "click" no botão de [Save Project] 1.6- Teste programa e seu automatismo Utilizando uma caixa de simulação com interruptores ("switch") ligados as entradas do PLC, teste o programa e o seu automatismo . www.bresimar.pt 8SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 CAPITULO 02 : Monitorização em "on-line" da CPU 2.1 Monitorização das variáveis ("tags") com "watch table" A melhor maneira de testar o programa é utilizar o programa STEP7 Basic em modo monitor e utilizarmos uma tabela de visualização ("watch table") com as variáveis ("tags") pretendidas Crie uma tabela de visualização ("watch table") Na pasta "watch tables" "clik" 2 vezes no comando [Add new watch table] PLC CPU DC/DC/DC] Device configuration Online & diagnostics Program blocks Add new block Mein Technological Objects tables] Watch tables Add new Watch table [Add new Watch table] F F. Name Address Monitor value "On" Bool 2 "Off" Bool Run Depois de criar a tabela deverá monitorizar os dados ("tags") na CPU, em "on-line". Para monitorizar as "tags" deverá estar ligado ao PLC pela rede PROFINET (Ethernet) "Click" no botão da barra de ferramentas em [Online] e [Go online] A indicação de diversos "círculos a verde" , que aparece na arvore do projecto indica que a CPU e o projecto estão sincronizados www.bresimar.pt 9SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 Edit Online Options Tools Window Project Go online] Save project Go online Devices Online diagni Start runtime Simulate Add new device to Devices Extended download to TLC 12120 Hardware detection Device Device [Program blocks]- Program Accessible devices. Start CPU [Main Stop CPU Objects station online [PLC Local modules data GettingStarted_ 1 PLC_1 Watch tables Watch table F F. Name Address value 1 "On" Bool 2 %0.1 Bool "Run" Bool Para monitorizar programa e as respectivas "tags" "click" no botão "Monitor all" da barra de ferramentas campo "Monitor value" mostra 0 estado de cada 1 PLC_1 Watch tables Watch table_1 F. F. Name Address Display format Modify value 1 "On" Bool FALSE Bool FALSE "Run" FALSE 2.2 Monitorização do programa em LAD Também pode monitorizar o programa das "tags" no editor do programa em LAD ("ladder") PLC_1 Program blocks Main + ?? www.bresimar.pt 10SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 Main Watch table_1 "Click" no botão "Monitoring on/off" para mostrar 0 estado do programa "On" "Off" "Run" 0 editor em LAD indica "a verde" as linhas activas "Run" 2.3 Forçar estados das "tags" Com a tabela de visualização ("watch table") podemos "forçar" valores que serão sobrepostos aos valores das entradas e saídas nas "peripheral input" ou "peripheral output address" A CPU aplica estes valores "forçados" no "input process image" antes da execução do programa e no "output process image"antes dos valores serem escritos nos módulos de saída Main Watch table_1 Utilize a barra do editor para abrir a tabela de visualização ("watch table") F. 8 value "On"P Bool FALSE Bool FALSE "Fun" Bool FALSE Como não podemos forçar as entradas (%I) directamente, devemos colocar um comando [:P] no endereço ou nome da variável que pretendemos forçar Este comando vai permitir "forçar" indirectamente através do valor na imagem do periférico das entradas Input Image") www.bresimar.pt 11SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 "Click" no botão [Show/hide force columns] para mostrar a coluna "Force value". F. F. Name format value value F "off" FALSE "Click" (tecla direita) na célula da coluna "Force value". 8 Monitor all now [Forçe] Force to Force to 1] to Cut Del Rename F2 Seleccione 0 comando [Force to 1] para colocar a variável Expanded mode (ex. "On:P" a "1" ou "True". Force to 1 (0610:007) Devido a que 0 valor forçado fica ! The selected item will be forced to "1". gravado na CPU e não na tabela "watch table", 0 editor STEP7-Basic CAUTION with pede para contirmar Do to start "Click" em [Yes] Yes No F. F. Use 0 botão [Start or replace forcing] para forçar 0 valor da entrada "On:P" a "1". "Click" no botão [Stop forcing] para forçar a entrada a "0". F. F. Display format Monitor value Force value F Bool TRUE TRUE PALSE TRUE Quando uma entrada ou saída é forçada na tabela de visualização ("watch table"), essa fará parte do programa que se encontra a "correr" no PLC Se fechar o editor STEP7 Basic os elementos forçados matem-se activos no programa a correr na CPU Para anular essas acções deverá de novo ligar-se á CPU do seu PLC e através do editor STEP7 Basic, na tabela de visualização ("Watch table"), coloque a "0" ("false") os elementos que pretender Para desligar a monitorização basta tocar no botão [Go offline] Go offline www.bresimar.pt 12SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 2.4 Colocar PLC em modo RUN / STOP (modo "online") Neste PLC não existe um interruptor externo que permita comutar o modo de funcionamento de STOP para RUN e vice-versa Por isso, esse passo terá de ser efectuado através do editor de programa STEP7 Basic primeiro passo é aceder à CPU do PLC, em "on-line" Online access Intel(R) PRO/1 000 D-Link DUB-F 100 USB "Click" 2 vezes no comando [Update accessible nodes] Update accessible de 168 De seguida "click" em [Online & Diagnostic] Online & diagnostics Technological A pasta [Online tools] fornece uma gama variada de ferramentas para poder monitorizar a performance da CPU, o "buffer" de diagnostico a medição do tempo de "scan" do programa o espaço de memoria utilizado , etc Online tools Utilize 0 painel de operação da CPU para mudar 0 modo de CPU operator panel operação. "Click" no botão de RUN e STOP para essa mudança PLC_1 NOTA : Se carregar no botão [MRES] apagará a memoria completa RUN STOP RUN fazendo um "reset" geral à CPU ERROR STOP MAINT MRES www.bresimar.pt 13SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 01 Primeiro programa no S7-1200 FIM www.bresimar.pt 14SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 BRESIMAR AUTOMAÇÃO MANUAL COM EXPLICAÇÕES GRÁFICAS DA PROGRAMAÇÃO SIEMENS S7-1200 USANDO "STEP 7 Basic" Nível I - Iniciação (j.andril@bresimar.pt , v1.1-03/2010) TIA Portal Hardware PLC HMI Process asarek www.bresimar.pt 1SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 PORTAL DO S7-1200 Siemens Pasteurization_Station Totally Integrated Automation PORTAL Start 1 2 Open existing project 3 Recently used Devices & Open existing project Networks Project Path Last Create new project Pasteurcab Documents and 8/4/2 Documents and 8/4/2 PLC Migrate project Documents and Programming Documents and 8/4/2 Documents and Visualization Documents and Documents and Documents and Online & First steps Diagnostics Installed products Help Browse Open 4 Project view 5 Opened project: C:\Documents and Project View (4, na fig. acesso a todos os componentes do projecto Siemens Pasteurization Station Project Edit View 1 it Online Options Tools Totally Integrated Automation Save project - X 2 Go online PORTAL Project tree Pasteurization_Station PLC_1 Program blocks Main Devices 3 + ?? PLC Programming Instructions Add new device Block title: "Main Program 4 Devices 5 Network 1: Device configura sting Online & diagno OFF "ON" blocks Add new block Main Tasks "DFF" Technological PLC tags Watch tables ON_OFF_Switch Properties Info Diagnostics Textlists Libraries General Details view Tag 6 7 Tag General Name: ON_OFF_Switch Address: 8 Portal view Overview Main Project Pasteunzation_Station opened www.bresimar.pt 2SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 CAPITULO 01 : Carregar um projecto para PLC, já existente ("Loading a project") Totally integrated Automation PORTAL [Start] Start Upen project [Open existing project] Recently used Devices Upen existing project eject PLC 1 Programming 2 Visualization First steps Diagnostics Installed products [Browse] [Open] Help 3 Seleccione o projecto que se encontra guardado no seu PC. Open an existing project. ? Simple_Example IM My Documents Portal System TMP Station [Open] File name: Station My Network of 1 2 Abra o Project View e configure a linguagem das instruções em mnemónicas no editor de programa Project Edit View Online Tools Window Help Save project Y Settings Go online Show refere [Options] / [Settings] Globallibrari 1 www.bresimar.pt 3SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Settings General [General] / [Mnemonic] / [English] General Handware PLC General settings User interface English (USA) Mnemonic German Show all message windows Fren Show Spanish 2 Start settings Start most cent project 3 Show list of cently used Load most recent window De seguida configure o idioma do texto no programa (comentários, texto dos blocos etc.) Online Options Tools Help Seve project [Tools] / [Project languages] Dependen Resources Compare Station Languages & Resources Project languages General [General] / [Editing language] Editing language English (USA) Reference language: English (USA) Chinese (South Africa) Fre (France) English Alb anian (Albania) English English 1 English English Basque sque 2 English lippines) English outh English (Trinidad and Tobago) (Cate Engli sh (Australia) English Chinese (HongKong SAR) Engli English Chinese Engli sh (Canada) Estoni No Project View seleccione o idioma no [Runtime settings] para o texto na HMI. Project time Station Panel Bottlestation Runtime settings Devices [Runtime settings] / [Language & font] Screen: Language & Font User administration on Runtime language and selection new device Language Language name Fixed 0 Devices English (USA) Bottlestation Online diagnostics rench (France) man Tahoma Screen 2 Tahoma Screen 3 1 www.bresimar.pt 4SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 CAPITULO 02 : Criar um projecto novo no PLC Create new project Project name: on Station Open existing project Path: Create new project user AI 2 1 [Create new project] Project name **** Create Create 3 2.1 Inserir / escolher um PLC e sua configuração Start [Device & Networks] / [Add new device] Devices & Show all devices Networks Add new device PLC Program Visualiza 1 2 Online & Diagnostics Configure networks Add new device PLC S7-1200 CPU CPU 12110 SIMATIC PLC CPU 12120 PLC to PLC CPU 12140 [Add] Add SIMATIC 1 2 www.bresimar.pt 5SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Pasta da [Network view] e [Device view] Pasteurization Station > Devices & Networks Hardware catalog 1 Network view Device view Catalog Networks Connections 100% 2 WT Filter Devices & Networks PLC 7 Hardware catalog 3 4 Online tools Network overview Connections 5 Device SIMATIC 120. SIMATIC 1200 V1.0 Tasks 1 DODO HML1 KTP1000 6AV6 III PLC Properties Info Diagnostics 6 General Information General General PROFINET interface Device Project High speed counters (HSC) Name: Pulse PLC_1 Pasteurization Station>PLC Hardware catalog 1 Network view Device view Catalog 100% 2 Filter Devices & Networks 3 CPU Hardware catalog Signal board 7 103 1 DI rack DO DI/DO 101 Al - Online tools 103 4 Device overview 5 Module Slot address addre Type Orderno PLC_1 11 0.1 Libraries - III Information PLC Properties Info Diagnostics Device: 6 ral General Project information III www.bresimar.pt 6SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Configure no PLC em [Graphic View] / [Device view] a interface PROFINET No final execute o "Save Project" Network view Device view 100% 57-1200 rack 101 PROFINET Properties Info Diagnostics General General [Ethernet / [IP protocol] IP protocol Ethernet addresses Advanced IF address: 192 168 0 time Subnet mask Use router AI 1 Router address: 0 2 2.2 - Criar um programa ("Main" [OB1] foi criado automaticamente ) Project tree Project tree Devices Devices Add new device Add new device Devices & Networks Devices & Networks PLC_7 [CPU [CPU Device configura Device configuration Online & diagno Online diagnostics Program blocks Program blocks Add new ] 1 Main[OB1] Obje Technold Objects 2 Watch Textlists Lo cal modules Local de seguida deverá construir o programa em "Ladder" (LAD), no editor www.bresimar.pt 7SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Siemens Pasteurization Station Project View Insert Online Options Tools Totally Integrated Automation Save project Go online PORTAL Project tree Station PLC_1 am blocks Main Devices PLC Programming Block title: Program Sweep (Cycle Devices Network: Comment PLC_1 DCD Janela de EDIÇÃO do PROGRAM Instructions Addnew device Device configuration Online & diagnostics Network 1: Testing Program blocks Comment Add new block Main Technological Objects Tasks tables III Text lists Main Properties Info Diagnostics Common data General Languages & Resources General Online General SIMATIC Card Reader Time Compilation Name Main Details view Protection Portal view Overview PLC_1 Main Proje Station created Station PLC_1 Program blocks Main Instructions 7 Favorites + 1 3 77 Interface Name 2 Data type Comment Instructions 1 Temp 2 Instructions 8 General III 5 Timers Testing 77 3 Counters Block title: Program Sweep (Cycle)" Compare Comment Math Extended instructions Tasks Network 1: lock Calendar 6 Comment Char Program control 4 Communications Libraries Interrupts PID Motion Control Pulse Colocação de um contacto NA (Normalmente Aberto) na "Network 1" www.bresimar.pt 8SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Station PLC_1 Program blocks Main Interface "Main Program Sweep 2 Station PLC_1 Program blocks Main [Instructions] 1 Interface Block title: Program Sweep Instructions Network 1: Comment Tasks Inserção de uma bobine ("coil") tion_Station PLC_1 Program blocks Main Instructions Favorites Instructions Interface Bitlogic HI Instructions HI HI Block title: Sweep X Network 1: Comment 0 1 SR RS ≡ HI E HI Network 2: Comment 2 Libraries P_TRIG N_TRIG Timers Counters www.bresimar.pt 9SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Uma nova ramificação na "Network 1" para colocação de uma nova bobine ("Coil") Interface 77 Block title: "Main Progr Network 1: Comment 2 1 Uma bobine com o estado lógico negado ("Coil") Instructions Interface Bitlogic 77 HI HI Block title: Program Sweep H) Netzwerk 1: Comment H T 1 HI HI Network 2: Comment 2 P_TRIG Network 1: Comment www.bresimar.pt 10SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Ligação das "tags" aos objectos (contactos e bobines) criados na "Network 1" ON_OFF_Swixh AI Network 1: Comment [Define Define Rename tag tag 1 2 X Delete Rename F2 Define tag Go to Name Section Address Data type Comment Showusage Glob al Memory Bool - [Define] Define Cancel Insert empty box Properties Network 1: Comment [Define ON Define Alt+Shift+D Rename tag. tag... 1 2 Define tag X Delete Rename F2 Name Section Address Datatype Comment Global Memory Bool Goto - Show usage [Define] Define Cancel Cross-references Insertnetwork Properties www.bresimar.pt 11SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 programa terá , no final o seguinte esquema em "Ladder" Network 1: Comment "ON_OFF_Switch" "ON" Para podermos programar as "tags" em "formato símbolo" (como o executado anteriormente ) não nos devemos esquecer de parametrizar o editor para isso Pasteurization Station PLC_1 Program blocks Main Interface 1 Pasteurization Station PLC_1 Program blocks Main Interface [Symbolic] Symbolic Symbolic ++ ?? Absolute Block title: "Main Program Sweep (Cycle) Comment 2 www.bresimar.pt 12SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 2.3 - Carregar programa no PLC e testar Project tree Devices [PLC(CPU n_Station Add new device Devices & Networks 12C configuration Open Open in Cut Copy Paste 1 Delete Del PLCtags Rename F2 Watch tables Go to device Text lists library Local modules Goto Common data [Download to device] Languages & Resource Online access Download device All Go Card Reader Go [Software (all blocks)] Onlin Software Call blocks) Com Show 2 Call structure 3 Extended download to device access nodes of "PLC" Device Device type Type Address PLC 12120 PG/PC interface for loading AMD PCNet Adapter Conne to Please PCNet Adapter gateway Show all accessible Accessible devices in target Show all accessible devices Device Device type Type 1 2 Flash LED 3 Refresh [Load] Loading includes hardware configuration data Load Cancel 4 www.bresimar.pt 13SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Deverá seleccionar a opção "Show all acessible devices" de maneira a permitir detectar todas as máquinas (PLC, HMI, etc) que existam "penduradas" na rede PROFINET De seguida deverá seleccionar PLC em que pretende descarregar ("download") o programa , anteriormente executado (0124:000066) [Do you want to stop the selected PLC(s)?] Do you want to stop the selected PLC(s)? A download can onlybe donein OK Cancel Load preview ? before loading Status Target Message Action PLC Accept all] Different modules Differences between configured and target modules (online) Accept all Program blocks Download program consistently? 1 [Load] Finish Load Cancel 2 Se existirem diferenças de configuração com a parametrização anteriormente gravada no PLC e desejar que as novas configurações sejam descarregadas apagando as anteriores , deverá seleccionar o campo "Accept all" www.bresimar.pt 14SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Load results ? Status actions after downloading to device Status Into Target Action PLC Downloading to device completed without error Start all] Start modules Start modules after downloading to Start all [Finish] Finish 1 2 Depois de finalizar o "download", active a ligação em "Online" e teste o programa Edit View Online Options Window Help Project tree Go online [Go online] Save project Go online Devices Go Online & diagni D Start runtime Stop on Station Simulate Add new device Download to devic Extended download to FLC 12120 Hardware detection Device Device maintenance Onine Program b ocks Accessible devices. Start CPU Stop CPU cal Contigure online PLC tags Warch Local modules data Station PLC_1 Program blocks Main + www.bresimar.pt 15SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 CAPITULO 03 : Criar um projecto novo na HMI Project tree Devices [Add new device] Station [Add new device] Devices Add new device Common Device name [Device name :] Language ne acces AI Panels 1 play SIMATIC PLC Display KIP1000 PN Disp Order no.: Version SIMATIC 3 Description IFT color 480 256 touch function ce for and PLC 2 communication Start device OK Cancel 4 3.1 - Configuração de um "template" HMI Device P.C [PLC connections] System 000 [Browse] 1 [Next] 2 3 www.bresimar.pt 16SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 HMI Device KTP1000 PN Screen layout the objects to be displayed PLC connections Screen layout] Screen layout Previow Alams Resolution Background color Screens System screens header Date/time 2 1 3 [Next] Save settings Back Finish Cancel 4 Poderá desactivar os "Alarms" caso não necessite HMI Device Wizard: KTP1000 PN the PLC connections Screen Preview Alarms Alarms Active Screens Active system events System screens Buttons [Next] Seve settings Cancel www.bresimar.pt 17SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Renomeie o ecrã em que será criada a "interface" gráfica HMI Device Wizard: KTP1000 PN Screen Add new by this button + Add screen screen Rename Delete PLC connections Screen layout Alarms 2 Screens Screens System screens Buttons + 1 AI 3 Save settings Back - Finish 4 Poderá desactivar os ecrãs de sistema e de seguida na área das active o "System Buttons" HMI Device Wizard: KTP1000 PN System screens Select the system screens PLC connections Screen layout Project information Alarms modes [System screens] System User System information Select all [Next] Save settings Back Finish Cancel www.bresimar.pt 18SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 HMI Device Wizard: PN Buttons Add with by on able system PLC connections Screen layout [System buttons] System Preview Alarms Screens Start screen Log on Language System screens 2 [Button area] / [Bottom] area Left 3 all Finish 1 settings Back Next Finish Cancel 4 No final "click" em [Save Project] 3.2 - Criação e configuração da "interface" gráfica ple_NEU Screens HMI Objects 16 A + Basic objects SIEMENS HMI Elements simatic hmi 0.12 Text 1 2 Apague "Welcome to e coloque uma tecla/botão com o texto "Machine www.bresimar.pt 19SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Tahoma 16 SIEMENS HMI simatic hmi Machine ON/OFF Button 1 Properties Info Diagnostics General 1 Properties [InvertBit] Animations Events System functions All system functions Press Alarms Calculation En Edit bits 3 Rese 2 [Events] / [Press] [System functions] / [Edit bits] / [InvertBit] 4 Coloque nos "Events" a tarefa "Press" com a função "InvertBit" e ligue de seguida a uma "tag" Pane LB [KTP1000 PN] Name Address HMI tags None PLC_1 DC/DC/DC] OFF Program blocks ON Techno 1 OFF Switch PLC General Add X Properties 3 Animations 2 Events Click [Events 1/ [Press] Tag functions Press Release Enable 1 Coloque 2 símbolos de LED por baixo do botão anterior www.bresimar.pt 20SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 mple_Example . Screens HMI Toolbox Objects Basic objects SIEMENS HMI simatic hmi A Machine ON/OFF 1 2 A SIEMENS HMI sima:ic hmi Diagnostics General 1 Background [Width] [Color] 4 [Properties] / Appearance] AI 2 3 5 SIEMENS HMI simatic hmi ON/OFF Circle General 1 Background 4 Border [Width] Color [Properties [Appearance] AI 2 3 5 De seguida, no LED "verde", crie uma "Animations" do tipo "Appearance" e ligue a uma "tag" (bit). www.bresimar.pt 21SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 ! + SIEMENS HMI simatic hmi ON/OFF III Circle Properties Info Diagnostics General 1 Properties Add Diagonal movement Direct movement movement Appearance Appearance] 2 [Animations] / [New animation] 3 Bottlestation on Name Address : - Circle Technolo gical General Appearance tags Properties Tag Ad X Name 3 Appearance 2 [Appearance] bit : Range Foreground Backgrou thing 1 Circle_1 Properties Info Diagnostics General Appearance Properties Tag Type Animations [Range] New animation Name ON_OFF_Switch Range Appearance [Appearance] Range Foreground color Background color 1 1 0,255,31 Yes No AI [Yes] AI 2 3 4 5 www.bresimar.pt 22SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Colocação de uma figura importada , utilizando a ferramenta [Graphics] da [Toolbox] Graphics graphics folder My graphics folder [My graphics folder] / [Link] Link Rename Remove Update 1 Open 2 WinCC Engineering System Graphics Create link to folder WinCC graphics folder Name graphics folder Path Docum [Graphics] Graphics Browse For Folder AI [Conveyor Simple.wmf] ConveyorMotion Desktop 1 My Documents Open My Computer 2 Edit graphic My Network Places Copy Recycle Bn Update F5 [WinCC Graphics] 5 1 Make OK Cancel icons] 3 2 4 Objects B Basic objects SIEMENS HMI Elements simatic hmi Controls Graphics Machine ON/OFF WinCC graphics My graphics folder Graphics III 2 1 www.bresimar.pt 23SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Colocação de uma figura da livraria "SymbolFactory 256 Colors / Food" com simulação de movimento Objects Basic objects SIEMENS HMI Elements simatic hmi Controls Graphics Machine ON/OFF Flow Meters Food 3 1 2 Criar movimento na figura da "garrafa" Graphic view 2 Info Diagnostics 1 General Properties Add Animations Animations + Diagonal movement New animation Direct movement + Horizontal movement Vertical [New animation + Appearance Visibility 2 [Horizontal movement 3 www.bresimar.pt 24SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 1 2 Graphic view Properties In General Horizontal movement Properties Process Animations New animation Tag: Honzontal movement Range from: [Horizontal movement] To: 100 Panel_Bottlestation Name Address [HMI tags None PLC_1 Program Graphic view_2 General III 2 Horizontal [Add new] Properties Add new Process X Animations New animation [Tag] Tag: Honzontal movement Range from: [Horizontal movement] To: 100 3 1 Colocação da "tag" "Position_Bottle" do tipo "short" na propriedade "Horizontal Position Bottle General [Properties] / [General] General Properties General Bottle] Settings General Limits [Name] Position_Bottle Length: Linear scaling Connection Address: Data type Short Comment Multiplexing Acquisition mode Bool AI Events Acquisition cycle Double 1 Array elements Float Long [Short] Short [OK] OK Cancel ULong UShort WString 2 3 www.bresimar.pt 25SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Colocar a "tag" na propriedade da figura da "garrafa" 1 Graphic Properties Info Diagnostics General Animations Add Animations Animacions New Direct movement movement Vertical movement Appearance 2 Visibility] 3 Panel Name Address None 12120 OFF Graphic view 2 Program blocks ON General Technological Objects tags Properties Animations Add New animation 3 movement 2 Range [Visibility] To: 100 1 Graphic view 2 Properties Info Diagnostics General Visibility Properties Process Visibility Animations New animation Tog: Visible ≡ Horizontal movement ON_OFF_Switch Invisible Visibility Range From: 0 [Visibility] To: 0 [Invisible 2 AI 1 www.bresimar.pt 26SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Colocação de uma "tag" "SimulateTag" na propriedade "Events / Loaded" do ecrã Machine Cut Copy Paste X Delete Del Dynamization 1 Cross-references Properties [Properties] 2 HMI Properties Diagnostics General Properties Animations SimulateTag Events [Events] Edit bits Loaded Other functions Simulate Tag] [Loaded] 4 3 5 6 on Name Address tags [HMI tags] None [Position Bottle] PLC_1 [CP Position Bottle Program Techno HMI PLC General 2 III 3 Add new... X Properties Animations SimulateTag Tag] / [Tag (Input/output)] Events [Loaded] Tag Loaded Cycle 1 Cleared Maximum value 100 Minimum value Value 1 1 E por fim salve o projecto da HMI www.bresimar.pt 27SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 CAPITULO 04 : Teste da "interface" gráfica e do automatismo Será descarregado , se o desejar o projecto para a HMI e de seguida teste no "hardware" Project tree Devices Simple_Example Add new device Devices & Networks Pane Bottlestati Open Online & diagn editor Runtime setting Screens evice Screen manag Ctrl+C 1 Ctrl+V Connections (1 X Del HMI alarms Rename F2 Recipes (0) Goto networkview 5 Scheduled task Text & graphic Compile Download to device] User administr to device All PLC_1 [CPU 1212 configuration Common data Software Languages & oftware (all) Show Online access Cross Card Reader 2 Print [Software (all)] Properties. Alt+Enter 3 Load preview Load preview ? Check before loading Status Into Target Message Action Panel_Bottlestation Overwrite Objects exist Overwrite? Overwrite all Overwrite all] 1 sh [Load] Finish Load Cancel 2 www.bresimar.pt 28SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Poderá simular a aplicação gráfica usando [Simulate runtime] não necessitando do "hardware" da HMI como anteriormente foi demonstrado Edit View Online Options Tools Window Help [Online] Save project Go offline Online &diagnostics Start Stop runtime Runtime With simulator Extended dow Hardware dete Simulate runtime evice mainte 1 Accessible devil 2 Start Stop CPU [With tag Configure online RT Simulator [70%] SIEMENS SIMATIC BASIC PANEL SIEMENS HMI simatic hmi Machine ON/OFF TOUCH F1 F2 F3 F4 F5 F6 F7 F8 www.bresimar.pt 29SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 02 Nível I - Iniciação FIM www.bresimar.pt 30SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 03 BRESIMAR AUTOMAÇÃO MANUAL COM EXPLICAÇÕES GRÁFICAS DA PROGRAMAÇÃO SIEMENS S7-1200 COM "STEP 7 Basic" Nível II - Aperfeiçoamento (j.andril@bresimar.pt , v1.1-03/2010) TIA Portal Hardware PLC HMI Process www.bresimar.pt 1SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 03 PORTAL DO S7-1200 Siemens Totally Integrated Automation PORTAL Start 1 2 Open existing project 3 Recently used Devices & Open existing project Networks Project Path Last Create new project Documents and 8/4/2 Documents and 8/4/2 PLC Migrate project Documents and Programming Documents and 8/4/2 Documents and Visualization Documents and Documents and Documents and Online & First steps Diagnostics Installed products Help Browse Open 4 Project view 5 Opened project: C:\Documents and Setting...Pasteurization_Station Project View (4, na fig. acesso a todos os componentes do projecto Siemens Pasteurization Station Project Edit View 1 Online Options Tools Totally Integrated Automation Save project - X 2 Go online PORTAL Project tree Pasteurization_Station PLC_1 Program blocks Main Devices + 3 ?? Instructions PLC Programming Add new device Block title: Program 4 Devices 5 Network 1: Comment Device configura sting Online & diagno OFF Switch blocks Add new block Main Tasks "DFF" Technological PLC tags Watch tables ON_OFF_Switch Properties Info Diagnostics Textlists Libraries General Details view Tag 6 7 Tag General Name: ON_OFF_Switch Address: III 8 Portal view Overview Main Project Pasteunzation_Station www.bresimar.pt 2SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 03 CAPITULO 01 : Alteração e ampliação do programa executado no Nível I - Iniciação 1.1 - Criação de novo automatismo a seguir á "Network 1"( "Main" [OB1]) Network 1: Comment "ON_OFF_Switch" "ON" ) Definição de novas "tags" para o novo programa Project tree [Project tree] Devices Devices Add new device Devices & Networks Panel_Bottlestation [KTP1000 PN] PLC_1 [CPU 1212C DC/DC/DC] BY Device configuration Online & diagnostics Program blocks Technological Objects PLCtags [PLC Tags] PLCtags (3) Watch Local Common Languages Online access SINATIC Card Reader PLC tags Name Data type Address Retain Comment 1 ON_OFF_Switch Bool %MO.0 2 ON Bool 3 OFF Bool 4 LS_1 Bool 5 AI AI 1 2 3 www.bresimar.pt 3SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 03 Devera declarar as seguintes "tags" para o novo programa : Nome Tipo dado Endereço Função ON_OFF_Switch BOOL M0.0 Selector na maquina ON BOOL M0.1 Estado da maquina em modo Ligado OFF BOOL M0.2 Estado da maquina em modo Desligado LS_1 BOOL M1.0 Foto célula de presença da garrafa no inicio do tapete LS_2 BOOL M1.1 Foto célula de presença da garrafa na entrada do forno LS_3 BOOL M1.2 Foto célula de presença da garrafa no fim do tapete conveyor_drive_ON_OFF BOOL M1.3 Modo operação do tapete (1 em movimento) chamber_ON_OFF BOOL M0.4 Modo operação do forno (1 em aquecimento) milk_pasteurized BOOL M0.5 Estado do processo (1 leite pasteurizado) De seguida deverá programar a "Network 2" com o automatismo do tapete Network 2: Comment "chamber ON 1 2 Network 2: Comment "chamber_ON_ "ON" "LS 1" OFF" Network 2: Comment "chamber_ON_ 2 1 www.bresimar.pt 4SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 03 Network 2: Comment "chamber_ON_ "ON" OFF" "milk circuito anterior irá accionar uma memoria biestável com "Set/Reset" Instructions Interface General Bit logic ?? HI HI Network 2: HI Comment -(/)- "chamber_ON_ "LS_1" OFF" -(R)- SET_BF "milk_ RESET_BF SR 2 1 Network 2: Comment "ON" "milk_ Network 2: Comment "ON" OFF" R1 "milk_ www.bresimar.pt 5SIEMENS S7-1200 NOTAS DE APLICAÇÃO № 03 Network 2: Comment "conveyor_drive_ON_OFF" "ON" "chamber_ON_OFF" SR R1 "milk_pasteurized" Deverá prosseguir , adicionando 3 inícios de malha , na "Network 2" + Interface ?? Network 2: Comment 2 ON "ON" "LS SR 5 0 R1 d' Network 2: Comment 1 "chamber_ON_ ON_OFF" SR Q R1 "milk OFF AI www.bresimar.pt 6

Mais conteúdos dessa disciplina