SIMATIC HMI Siemens AG 1999. All rights reserved.© Information and Training Center Knowledge for Automation Date: 30.09.2014 File:SWINCC03e.1 Создание.

Презентация:



Advertisements
Похожие презентации
SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC06E.1 V5.00 Отображение.
Advertisements

1. Определить последовательность проезда перекрестка
Date: File: PRO1_17E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Решения (Вариант.
Date: File:PRO1_16E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Связь посредством.
Date: File:UPPROG_05E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Редактирование.
Date: File:PRO1_05E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Редактирование.
Date: File:PRO1_02E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation SIMATIC Manager.
Date: File:UPPROG_08E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Функции тестирования.
Date: File:PRO1_16E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Связь через MPI.
Date: File:UPPROG_02E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Программа файловый.
Урок повторения по теме: «Сила». Задание 1 Задание 2.
Date: File:PRO1_01E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation SIMATIC S7 SIMATIC.
Datum: Datei:Kapitel 14 TIA 1 SIMATIC HMI Siemens AG All rights reserved. Informations- und Trainings-Center Wissen für Automatisierung.
Date: File:System_Melden_4e.1 SIMATIC HMI Siemens AG All rights reserved. SITRAIN Training for Automation and Drive Отображение и архивирование.
Date: File:SWINCCS_07E.1 SIMATIC HMI Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Архивы пользователя.
Date: File: PRO1_17E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Решения (Вариант.
Date: File:PRO1_09E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Функции тестирования.
Date: File:PRO1_01E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Семейство SIMATIC.
© 2007 Cisco Systems, Inc. All rights reserved.SMBE v Cisco SMB University for Engineers Настройка маршрутизаторов Cisco с интегрированными услугами.
Date: File:PRO1_15E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Документирование,
Транксрипт:

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.1 Создание проекта, подключение к PLC и имитация переменных 1

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.2 Создание проекта, подключение к PLC и имитация переменных 2

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.3 Цели обучения - Создание проекта - Инсталляция драйверов связи - Конфигурирование переменных - Имитация переменных - Перекрестные ссылки

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.4 Подготовка проектирования - PLC-контроллеры - Типы соединений - Переменные процесса

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.5 Создание проекта SIMATIC NET PLC Офисные ПК или Промышленные ПК kurs

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.6 Структура проекта и файлы WinCC - Спроектированные экраны (.pdl,.sav) -Файлы экранов (.bmp,.emf,.wmf) -Списки Action (.act) -Функции проекта (.fct) -Библиотека проекта (.pxl) -Файл описаний функций (.h) -Библиотека функций (.dll) -DBASE-архивы Tag Logging (.dbf) -Шаблоны отчетов (.rpl) -Список перекрестных ссылок (.xfc) -Action проекта (.pas) Проект БД кроме данных RT (WinCC.DB) можно найти в директории инсталляции WinCC - БД с данными режима RT -Internal Data Management - управление внутр. данными из перекрестных ссылок -Main File проекта (основной ф.) -Log File БД (файл регистрации) -База данных с данными проекта

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.7 Переключение между проектами Projectname. MCP

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.8 Определение свойств проекта

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.9 Свойства компьютера

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.10 Функциональные модули WinCC 1/2 Имя проекта - Компьютер - Tag Management - Structure Types Редакторы - Графическая система - Система сообщений - Прием и архивирование измеренных величин - Система отчетов - C-программы и Action - Текстовая библиотека - Защита паролями - Перекрестные ссылки Узлы "скрыть / развернуть" состав директории Древовидная структура WinCC Стоп Запуск

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.11 Функциональные модули WinCC 2/2 Редакторы - Графическая система - Система сообщений - Прием и архивирование измеренных величин - Система отчетов - C-программы и Аctions - Текстовая библиотека - Защита паролями - Перекрестные ссылки -Options (Дополни- тельные возможности)

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.12 Постановка задачи Стартовый экран :15:45 SIMATIC WinCC Изображение двигателя Установка розлива Графики Сообщения M -Заданная скорость -Фактическая скорость Управление данными Отчеты

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.13 Переменные для связи с процессом M СКОРОСТЬ: - заданная - фактическая Мотор 1 неисправен Клапан 3 закрыт... Отображение процесса ПроцессФункции Связь напр. DB, DW для SIMATIC Сообщения о событиях SIMATIC S7 SIMATIC S5 SIMATIC TI505 Other drivers Архив Ленточный индикатор Графики

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.14 Обмен данными SIMATIC S5/S7 DB20 DW10 KF=190 DW11 KF=95 PLC Станция WinCC Фактическое значение 190 Заданное значение 95 Фактическая скорость DB20,DW10 Заданная скорость DB20,DW11 Цифровой выход Цифровой вход Отображение LAN MPI

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.15 Обмен данными SIMATIC TI505 V010 =190 =95 PLC Станция WinCC Фактическое значение 190 Заданное значение 95 Фактическая скорость V010, Заданная скорость V010, Цифровой выход Цифровой вход Отображение LAN MPI

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.16 Инсталляция компонента WinCC S7DOS

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.17 Выбор драйверов связи для соединения A) B) A) B)

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.18 Упражнение: создание проекта, конфигурирование подключения к PLC-контроллеру 1 Имя подключения связи - Переменные для этого соединения будем конфигурировать в следующем упражнении. Всегда 0 для интегрированного MPI-интерфейса

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.19 Диагностирование соединения

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.20 Упражнение: создание проекта, конфигурирование подключения к PLC-контроллеру 2 Имя проекта SIMATIC TI driver Имя коммуникационного соединения

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.21 Конфигрирование переменных процесса для SIMATIC S5/S7 -Граничные значения -Отчеты Примечание Использование символов в S7 (TIA) возможно как в WinCC V5.

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.22 Конфигрирование переменных для SIMATIC TI505

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.23 Упражнение: Конфигрирование переменных процесса и групп переменных Конфигурирование групп переменных Имя первой группы: motor_picture Имя второй группы: bottling_plant Имя третьей группы: measurement_points Имя четвертой группы: message_events Переменные Для SIMATIC S7 Имя Тип данных Адреса signal0 двоичныйDB20,D11.0 signal1 двоичныйDB20,D11.1 event1 16-битный без знакаDB20,DW12 trend_116-битный со знакомDB20,DW6 IVar_Mess16-битный со знакомDB20,DW7 tank18-битный со знаком IB0 tank28-битный со знаком QB0 setpoint_speed16-битный со знакомDB20,DW10 actual_speed16-битный со знакомDB20,DW13 switch1 двоичныйDB20,D11.2 motor1 двоичныйDB20,D11.3

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.24 Конфигрирование внутренних переменных Контекстное меню -Граничные значения -Отчеты

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.25 Упражнение: Конфигрирование внутренних переменных и групп переменных 1 Переменные Для SIMATIC S7 Имя Тип данных event1 16-битный без знака... trend_116-битный со знаком IVar_Mess16-битный со знаком... setpoint_speed16-битный со знаком actual_speed16-битный со знаком switch1 двоичный motor1 двоичный Конфигурирование групп переменных Имя первой группы: motor_picture Имя второй группы: bottling_plant Имя третьей группы: measurement_points Имя четвертой группы: message_events

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.26 Упражнение: Конфигрирование внутренних переменных и групп переменных 2 Переменные Для SIMATIC TI505 Имя Тип данных event1 двоичный... trend_116-битный со знаком IVar_Mess16-битный со знаком... setpoint_speed16-битный со знаком actual_speed16-битный со знаком switch1 двоичный motor1 двоичный Конфигурирование групп переменных Имя первой группы: motor_picture Имя второй группы: bottling_plant Имя третьей группы: measurement_points Имя четвертой группы: message_events

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.27 "Перекрестные ссылки" (Списки перекрестных ссылок) 1/2 Списки перекрестных ссылок Фильтр Редактор Управление внутренними данными Данные WinCC.XFS.XFC... Перекрестные ссылки

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.28 "Перекрестные ссылки" (Список перекрестных ссылок 2/2) Фильтр Связывание Linking Место применения Модификация Управление модификацией данных и просмотр Управление модификацией данных Экспорт *.CSV Вызов

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.29 Имитация переменных 1/2 ПО для имитации внутренних переменных на CD WinCC Проверка функций с внутренними переменными - Sine Синус - Oscillation Колебания - Random numbers Случайные числа - Increment Приращение - Decrement Убывание - Slider Движок

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.30 Имитация переменных 2/2

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.31 Подключение WinCC с протоколом S7 с использованием MPI к S7- 300/400 DB20 DW10 KF=190 DW11 KF=95 PLC-контроллер Станция WinCC Фактическое значение 190 Заданное значение 95 Фактическая скорость DB20,DW10 Заданная скорость DB20,DW11 Цифровой выход Цифровой вход отображение MPI

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.32 Компоненты связи

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.33 Процедура 1)Аппаратная проверка WinCC-компьютера, например, прерывание 11 2)Инсталляция MPI-карты и/или CP5611-карты согласно информации о продукте 3)Конфигурирование со стороны WinCC, см. стр )Конфигурирование SIMATIC-процессора. Для этого не требуется коммуникационного ПО.

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.34 Установка MPI-карты в ПК

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.35 Инсталляция модулей

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.36 Настройка ресурсов коммуникационной карты

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.37 Диагностика Windows NT

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.38 Определение прерываний

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.39 Определение диапазонов памяти

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.40 Настройка свойств MPI-карты

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.41 S7-таблица переменных для контроля и модификации

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.42 Состояние связи: пример получения/установки слова состояния 1/2 0001Нет соединения 0002Ошибка протокола 0004Нет питания 0008Превышение верхнего предела 0010Уровень ниже нижнего предела 0020Превышена граница формата 0040Уровень ниже границы формата 0080Ошибка преобразования 0100Начальное значение 0200Значение замены 0400Ошибка адресации 0800Переменная не размещена 1000Доступ к переменной не разрешен 2000Нет ответа 0 0 BOOL SetTagDWordState (Tag Tag_Name, DWORD value, PDWORD lp_dwstate) DWORD GetTagDWordState(Tag Tag_Name, PDWORD lp_dwstate); Пример:SetTagDWordState ("P_Variable1", 100, &Status); GetTagDWordState ("P_Variable2", &Status1); возвращаемое значение состояния регистра может анализироваться согласно схеме:

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.43 Состояние связи: пример получения/установки слова состояния 2/2 Конфигурирование: -Properties/ I/O field/ output/input/ output value/ dynamic/ C-Action: int var1,var2; unsigned long var3; var1 = GetTagWordState("wert1",&var3);//адрес SetTagWord("i_lp_dwatate",(WORD)var3);// содер- // жание var2=GetTagWord("i_lp_dwatate"); if(var2!=0) { // ! означает не равно SetVisible(lpszPictureName,PictWindow1",1); } else { SetVisible(lpszPictureName,PictWindow1",0); } return(var1); Печатать O Конфигурирование: -Properties/ I/O field/ output/input/ output value:i_lp_dwatate Нет связи Конфигурирование: -Static text/ colors/ fill pattern color/ dynamic/ C-Action: int var1,var2; var1=GetTagWord("i_lp_dwatate"); var2=var1&0x0001; if(var2==0) { SetBackColor(lpszPictureName, lpszObjectName,CO_GREEN); } else { SetBackColor(lpszPictureName, lpszObjectName,CO_RED); } return(var1); Печатать O

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.44 Диагностика соединения посредством SIMATIC S7 (*.LOG) C:\Siemens\WinCC\Diagnose\SIMATIC_S7_PROTOCOL_SUITE_01.LOG

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.45 SIMATIC NET Ethernet, соединение с SIMATIC S5 DB20 DW10 KF=190 DW11 KF=95 PLC-контроллер Станция WinCC Фактическое значение 190 Заданное значение 95 Фактическая скорость DB20,DW10 Заданная скорость DB20,DW11 Цифровой выход Цифровой вход Отображение SIMATIC NET Industrial Ethernet

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.46 Функциональность TIA Step7 WinCC Связь (Преобразование) Таблица символов Symbol Table Управление переменными Tag Management База данных Database База данных Database Блок данных Data block

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.47 Создание OS (Operator Station - Станции оператора)

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.48 Создание таблицы символов (Symbol Table), генерация блока данных (Data Block)

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.49 Создание программы для S7

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.50 Generating Reference Data for a Ladder Rung Jump Necessary for ladder rung jump from WinCC Insert SIMATIC

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.51 Генерация PLC/OS данных соединения (Mapping)

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.52 Передача данных от STEP7 к WinCC (отображение) 1/2 Символы из Таблицы символов S7

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.53 Передача данных от STEP7 к WinCC (отображение) 2/2 Символы из блока данных Выбор

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.54 Отображаемые символы в Explorer WinCC Mapped символы = переменные WinCC

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.55 Отображаемые символы для переменных связи

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.56 Автоматическое Отображение на заднем плане Drag&Drop

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.57 Ladder Rung Jump to STEP 7

SIMATIC HMI Siemens AG All rights reserved.© Information and Training Center Knowledge for Automation Date: File:SWINCC03e.58 "Show Picture" - возврат к WinCC Контекст- ное меню