A d swincc09_globalescript_pt

64 %
36 %
Information about A d swincc09_globalescript_pt
Education

Published on March 9, 2014

Author: marcosromanholo7

Source: slideshare.net

Processamento em “Background” (Global Script) SIMATIC HMI © Siemens AG 2007. All rights reserved. Date: File: 09.03.14 SWINCC_09e.1 SITRAIN Training for Automation and Industrial Solutions

Objetivos - Funções de Projeto - Funções Standard - Funções Internas - “Actions” Globais (válidas para o projeto todo) SIMATIC HMI © Siemens AG 2007. All rights reserved. Date: File: 09.03.14 SWINCC_09e.2 SITRAIN Training for Automation and Industrial Solutions

Actions em Global Script (C) e Funções Funções de Projeto Funções Standard Funções Internas Campo de Saída para: -Busca de arquivos -Compilar todas funções Actions SIMATIC HMI © Siemens AG 2007. All rights reserved. Date: File: 09.03.14 SWINCC_09e.3 SITRAIN Training for Automation and Industrial Solutions

Exemplo de uma Função de Projeto e/ou uma Função Standard Controle de um motor: Eventos/ mouse/ botão esq. mouse/ função em C... BitSet ( 1, "MotorStatus", 2); 0 /*Bit 2 é setado na tag “MotorStatus”, para re-setar o bit, use: BitSet ( 0, “MotorStatus”, 2)*/ Função definida no “Global Script”(Standard Functions): void BitSet(BOOL OnOff, char* lpszWordtag, WORD wbitnumber) { WORD int winput = 0; iscreen = 1; // Cria as variáveis locais winput = GetTagWord ( lpszWordtag ) ; iscreen <<= ( wbitnumber ); if (OnOff == 0 ) { winput = (WORD) ( winput & (~iscreen) ); } else { winput = (WORD) ( winput | iscreen ); } SetTagWord ( lpszWordtag, winput); } SIMATIC HMI © Siemens AG 2007. All rights reserved. Date: File: 09.03.14 SWINCC_09e.4 // Leitura das variáveis de processo // Cria máscara binária // Reset bit ? // Reset bit // Set bit // Sobrescreve variável de processo SITRAIN Training for Automation and Industrial Solutions

Processamento em “Background” (Actions) com Global Script Operating hours.PAS WORD HOUR, MINUTE; BYTE Z_ON; Z_ON = GetTagByte ("Z_On"); if (Z_ON) { MINUTE = GetTagWord ("Minutes"); MINUTE = MINUTE + 1; SetTagWord ("Minutes", MINUTE); HOUR = MINUTE / 60; SetTagWord ("operating hours", HOUR); } return(HOUR); Nota: O “Global Script” deve estar ativado na lista de inicialização do WinCC SIMATIC HMI © Siemens AG 2007. All rights reserved. Date: File: 09.03.14 SWINCC_09e.5 SITRAIN Training for Automation and Industrial Solutions

Exemplo com Funções a partir de DLLs Contando com a Função DLL Eventos/ Botão/ Mouse/ Press left/ C action... #pragma code("c:a_WinCC_Kurs_Prj_301_00ab_paslibrarydemo_dll.dll") int CountingDll(int start, int end); #pragma code() int result, start, end, partial step; partial step = GetTagDWord("partial step"); printf("rnrnoutput of 10 partial steps with DLL function "); printf("to max. value: %d",partial step*10); for (start=0;start<10;start++) { end = start * partial step + partial step; result = countingDll(start*partial step,end); printf("rnReturn value DLL function: (%d) %d",start,result); } SIMATIC HMI © Siemens AG 2007. All rights reserved. Date: File: 09.03.14 SWINCC_09e.6 SITRAIN Training for Automation and Industrial Solutions

Actions em Global Script (VBS) e Procedimentos 1/2 Procedures (Function) A ser criado pelo usuário (vazio) Janela de relatório de compilação SIMATIC HMI © Siemens AG 2007. All rights reserved. Date: File: 09.03.14 SWINCC_09e.7 SITRAIN Training for Automation and Industrial Solutions

Actions em Global Script (VBS) e Procedimentos 2/2 In the project Module Procedure A Procedure B Procedure C Action Instruction 1 Instruction 2 Trigger Instruction a Instruction b Procedure C …. Instruction n Procedure D Procedure E SIMATIC HMI © Siemens AG 2007. All rights reserved. Date: File: 09.03.14 SWINCC_09e.8 SITRAIN Training for Automation and Industrial Solutions

Exemplo de uma Função de Projeto em VBS .pdl Chamada SIMATIC HMI © Siemens AG 2007. All rights reserved. Date: File: 09.03.14 SWINCC_09e.9 SITRAIN Training for Automation and Industrial Solutions

Exemplo de uma Função de Projeto em VBS .pdl Chamada SIMATIC HMI © Siemens AG 2007. All rights reserved. Date: File: 09.03.14 SWINCC_09e.9 SITRAIN Training for Automation and Industrial Solutions

#pragma presentations

Add a comment

Related presentations

Related pages

A d swincc09_globalescript_pt - slidesearch.net

A d swincc09_globalescript_pt #pragma Education presentation. Tweet. A d swincc09_globalescript_pt. Tweet. Information about A d ...
Read more

A d swincc09_globalescript_pt - Education

A d swincc09_globalescript_pt; System is processing data Please download to view 1
Read more

A d - Documents

A d swincc09_globalescript_pt A d swincc04e A d swincc05e ... Letra Dd Daniela y Daniel delfín dinosaurio D a D e D i D o D u d a d e d i d o d u. Auto C A D.
Read more

A d swincc10e - Engineering - DOCSLIDE.US

Share A d swincc10e. Embed size(px) start on. Link. A d swincc10e. by romanholo. on Aug 21, 2014. Report Category: Engineering. Download: 0 Comment: 0. 160 ...
Read more

A d swincc03_create_project_pt - slidesearch.org

Information about A d swincc03_create_project_pt. Education. Published on March 9, 2014. Author: marcosromanholo7. Source: slideshare.net. Content.
Read more

Scl 2e - slidesearch.net

Scl 2e Education presentation. ... Published on March 9, 2014. Author: marcosromanholo7. Source: slideshare.net
Read more

Ae11 system reporting - slidesearch.org

treinamento automação siemens,supervisorio wincc Engineering presentation. ... Date: 22.04.2014 File: System_Rep._11.1 SIMATIC HMI Siemens AG 2002. All ...
Read more

Ae01 system overview - slidesearch.org

treinamento automação siemens,supervisorio wincc Engineering presentation. ... Published on April 22, 2014. Author: marcosromanholo7. Source: slideshare.net
Read more