Date:29.09.2014 File:PRO1_10E.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation Хранение данных.

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



Advertisements
Похожие презентации
Date: File:UPPROG_09E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Хранение данных.
Advertisements

Date: File:PRO1_09r.1 SIMATIC ® S7 Siemens AG Все права защищены. SITRAIN Training for Automation and Drives Хранение данных в блоках.
Date: File:GRAPH_04e.1 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Debug and Start-Up.
Date: File:WINAC_06E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Визуализация.
Date: File:PRO2_05E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Переменные и.
Date: File:GRAPH_04e.1 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Отладка и пуск.
Date: 11/30/98 File:MICRO_10D.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Справочные данные.
Date: File:MICRO_03D.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Учебный стенд.
Datum: 9/29/2014 Datei:SYH_K10D.1 SIMATIC S7 Siemens AG All rights reserved. Informations- und Trainings-Center Wissen for Automatisierung Блоки.
Date: File:SCL_6e.1 SIMATIC S7 Siemens AG All rights reserved. Упражнения по использованию S7- SCL.
Date:11/30/98 File:MICRO_09D.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Тестирование и.
Date: File:PRO2_09E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Создание программы.
Datum: 9/21/2014 Datei:SYH_K6d.1 SIMATIC S7 Siemens AG All rights reserved. Informations- und Trainings-Center Wissen for Automatisierung Управление.
Date: System_Databases_9.1 SIMATIC HMI Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Хранение архивов в базах.
Date: File:WinAC_07e.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Сети WinAC.
Date: System_Supplements_12.1 SIMATIC HMI Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Примеры.
Date: Filename:SCL_3e.1 SIMATIC S7 Siemens AG All rights reserved. Создание и вызов блоков.
Date: System_Recipes_7.1 SIMATIC HMI Siemens AG All rights reserved. SITRAINTraining for Automation and Drives Рецептуры.
Date: File:GRAPH_07e.1 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Auto EnableAuto FInPos Motor.
Date: File:GRAPH_05e.1 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Документирование и архивы.
Транксрипт:

Date: File:PRO1_10E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Хранение данных в блоках данных

Date: File:PRO1_10E.2 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Меркеры PIQ PII Области хранения данных Блоки данных DBx DBy DBz... I/O область L стек

Date: File:PRO1_10E.3 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Блоки данных (DB) Функция FC10 Функция FC20 Блок функций FB1 OB1 Глобальные данные DB20 Доступные всем блокам Данные экземпляра DB5 Экземпляр DB для FB1

Date: File:PRO1_10E.4 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Обзор типов данных в STEP 7 Элементарные типы (до 32 бит) Структурированные типы (более 32 бит) Определяемые пользователем типы (более 32 бит) побитные (BOOL, BYTE, WORD, DWORD, CHAR) численные (INT, DINT, REAL) обозначают время (S5TIME, TIME, DATE, TIME_OF_DAY) Время (DATE_AND_TIME) Массив (ARRAY) Структура (STRUCT) Цепочка символов (STRING) Тип UDT (User Defined Type – пользователем определенный тип)

Date: File:PRO1_10E.5 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Скалярные типы данных в STEP 7 BOOL11 или 0 BYTE8B#16#A9 WORD16 W#16#12AF DWORD32 DW#16#ADAC1EF5 CHAR8' w ' S5TIME16 S5T#5s_200ms INT16123 DINT REAL321.2 или 34.5E-12 TIME32 T#2D_1H_3M_45S_12MS DATE16D# TIME_OF_DAY32 TOD#12:23:45.12 Ключевое слово Длина (биты)Пример константы данного типа

Date: File:PRO1_10E.6 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Сложные типы данных Ключевое слово Длина (биты)Пример DATE_AND_TIME64DT# :14:55.0 STRING8 * (число ´This is a string´ (строка символов символов +2) ´SIEMENS´ макс. 254 символа) ARRAYопределяется Measured values: ARRAY[1..20] (Группа элементов пользователем INT одного типа) STRUCT определяется Motor: STRUCT (Группа элементовпользователем Speed : INT различных типов)Current: REAL END_STRUCT UDTUDT как блок UDT - элемент массива (User Defined Data Type =определяется Шаблон", состоящий пользователем STRUCT Drive: ARRAY[1..4] из скалярных или Speed : INT UDT1 структурированных типов Current: REAL END_STRUCT

Date: File:PRO1_10E.7 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Пример структуры Отображение в редакторе программ (блок данных DB 1): Operating Speed, тип Integer Rated Current, тип Real Startup Current, тип Real Turning Direction, тип Bool Структура с именем "Motor_data" (несколько элементов одного типа данных) Motor_data

Date: File:PRO1_10E.8 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Пример массива 1. Measuring_point, тип Real 2. Measuring_point, тип Real 3. Measuring_point, тип Real 10. Measuring_point, тип Real Массив с именем "Measuring_point" (несколько элементов одного типа данных) Отображение в редакторе программ (блок данных DB 2): Measuring_point

Date: File:PRO1_10E.9 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Создание нового блока данных

Date: File:PRO1_10E.10 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Ввод, сохранение, загрузка и контроль блока данных

Date: File:PRO1_10E.11 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Доступ к элементам данных 07 8 бит байт данных 0 DBB 0 байт данных 1 DBW 0 байт 8191 DBD 8188 DBW 8190 DBB 8191 байт данных 2 DBD 0 байт данных 3 DBX 4.1

Date: File:PRO1_10E.12 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Доступ к элементам данных DB 19 (Символ. имя: Values) бит данных 0.0 с именем элемента "Start" or A DB19.DBX0.0 or A Values".Start or L DB19.DBW2 or L Values".Number or L DB19.DBB5 or L Values".Loop Обычный доступ символический Полноценный доступ 1) OPN DB19 L DBW2 Number OPN DB19 A DBX 0.0 1) OPN DB19 L DBB5 Loop абсолютный

Date: File:PRO1_10E.13 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Пригодность открытого DB OB 1 OPNDB 4 LDBW2 DB 4 TDBW 2 DB 4 FC 1 DB 4 CALLFC 1 TDBW 4 DB 5 OPNDB 5 LDBB6 DB 5 LDBW 0 TDBW 8 CALL FC 2 FC 2 DB 5DB 6 OPNDB 6 LDBB6 DB 2 T DB2. DBB 0 DB 2 LDBW 4 LDBW 10 DB ?? FB 1 CALLFB1, DB1 ??? !

Date: File:PRO1_10E.14 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Глобальный DB (Пример)UDT блок - шаблон Тип данных, определяемый пользователем (UDT) Flour Milk Eggs Yeast Sugar Рецепт 2 Flour Milk Eggs Yeast Sugar Рецепт 3 Flour Milk Eggs Yeast Sugar Flour Milk Eggs Yeast Sugar DB, созданная на основе UDT Рецепт 1 Flour Milk Eggs Yeast Sugar Массив из 3-х элементов типа UDT

Date: File:PRO1_10E.15 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Ввод данных в UDT блок

Date: File:PRO1_10E.16 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Создание блока данных пользовательского типа

Date: File:PRO1_10E.17 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Пример: Массив UDT Declaration ViewData View

Date: File:PRO1_10E.18 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Упражнение: программа для завода упаковок – хранилище данных Полные бутылки (MW102) Пустые бутылки (MW 100) «Разбитые" бут. (MW 104) Data block DB5 Variable: full Variable: empty Variable: broken