Cấu hình phần cứng và khái niệm bộ nhớ
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.1
Information and Training Center
Knowledge for Automation
Khái niệm bộ nhớ trong S7-300
Load memory:
Blocks:
• Khối logic
(OB,FC,FB)
• Khối dữ liệu
(DB)
Additional info.
Chú thích
Các khối:
• Khối logic
(OB,FC,FB)
• Khối dữ liệu
(DB)
Additional info.
SIMATIC S7
Siemens AG 1999. All rights reserved.
FlashEPROM
Work memory:
• OB,FC,FB
Ký hiệu
Các khối:
• Khối logic
(OB,FC,FB)
• Khối dữ liệu
(DB)
RAM
•
DB
n. reten.
reten.
System memory:
• PII, PIQ
• M, T, C
with Power
ON without
battery
backup
n. reten.
reten.
Vùng nhớ:
Mất điện,
không cần
pin
• Vùng nhớ
M, T, C
• Nhớ dữ liệu
Flash EPROM
Memory Card in PG
(subsequently
inserted in CPU)
Date:
File:
29.10.15
PRO1_04E.2
Information and Training Center
Knowledge for Automation
Khái niệm bộ nhớ trong S7-400
Load memory:
Blocks:
• Logic blocks
(OB,FC,FB)
• Data blocks
(DB)
Additional info
Chú thích
Các khối:
• Khối logic
(OB,FC,FB)
• Khối dữ liệu
(DB)
SIMATIC S7
Siemens AG 1999. All rights reserved.
FlashEPROM
Work memory:
• OB,FC,FB
Ký hiệu
Các khối:
• Khối logic
(OB,FC,FB)
• Khối dữ liệu
(DB)
Additional info.
RAM
• DB
System memory:
• PII, PIQ
• M, T, C
Nguồn pin
dự phòng
Flash EPROM
Memory Card in PG
(subsequently
inserted in CPU)
Date:
File:
29.10.15
PRO1_04E.3
Information and Training Center
Knowledge for Automation
Nạp các khối into /out của Flash EPROM Memory Card
Load memory
Flash EPROM
"Load in EPROM"
"Load"
Load memory
internal RAM
"Load in PG"
Sau khi cắm
Card nhớ vào
thì phải Reset
bộ nhớ và sao
chép dữ liệu
vào vùng nhớ
làm việc
Sections
relevant for
execution
Work memory
RAM
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.4
Information and Training Center
Knowledge for Automation
Cấu hình và cài đặt thông số cho phần cứng
Cấu hình
phần cứng.
Cài đặt thông số
nhớ.
Cấu hình chuẩn
đặt được
Cấu hình thực
SIMATIC S7
Siemens AG 1999. All rights reserved.
Sắp xếp thanh gá module, các module phân bố
cổng I/O trong cửa sổ của cấu hình phần cứng.
Chọn các thành phần trong danh mục của
Thiết lập các đặc tính của các module cần cài
đặt thông số, VD đặc tính khởi động, vùng
Cấu hình phần cứng và các thông số cài
định sẵn.
Cấu hình thực tế và thông số cài đặt hiện hữu
của phần cứng
Date:
File:
29.10.15
PRO1_04E.5
Information and Training Center
Knowledge for Automation
Đặt một trạm
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.6
Information and Training Center
Knowledge for Automation
Khởi động cấu hình phần cứng
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.7
Information and Training Center
Knowledge for Automation
Tạo ra cấu hình chuẩn của HardWare
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.8
Information and Training Center
Knowledge for Automation
Khái quát địa chỉ các Modul
“Khái quát các địa chỉ”
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.9
Information and Training Center
Knowledge for Automation
Đặc tính CPU
2x
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.10
Information and Training Center
Knowledge for Automation
Đặc tính CPU: tổng quát
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.11
Information and Training Center
Knowledge for Automation
Đặc tính CPU : Khởi động
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.12
Information and Training Center
Knowledge for Automation
Đặc tính CPU: Retentive
Chỉ quan trọng khi
CPU không có pin
Backup
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.13
Information and Training Center
Knowledge for Automation
Đặc tính CPU: Cycle / Clock Memory
Clock memory bit
Frequency (Hz)
Period (s)
SIMATIC S7
Siemens AG 1999. All rights reserved.
7
6
0.5 0.62
2
1.6
5
4
3
2
1
0
1
1.25
2
2.5
5
10
1
0.8
0.5
0.4
0.2
0.1
Date:
File:
29.10.15
PRO1_04E.14
Information and Training Center
Knowledge for Automation
Đặc tính CPU : Protection - bảo vệ
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.15
Information and Training Center
Knowledge for Automation
Đặc tính CPU : Diagnostics / Clock
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.16
Information and Training Center
Knowledge for Automation
Lựa cấu hình HW và nạp vào module
Download
(only when CPU
is in STOP mode)
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.17
Information and Training Center
Knowledge for Automation
Nạp cấu hình chuẩn HW vào PG
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.18
Information and Training Center
Knowledge for Automation
Hiển thị các chuẩn đoán HW trong SIMATIC Manager
2x
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.19
Information and Training Center
Knowledge for Automation
Các vấn đề có thể xảy ra với cấu hình
Tình trạng
Kết quả/sửa chữa
Trong S7 300, các khoảng trống
trong cấu hình
Các CPU sai không thích hợp (thí dụ
CPU315-2DP thay vì CPU 314)
Cấu hình không thể biên dịch được
Cấu hình không thể nạp được
Các module tương tự cắm sai vị trí
CPU chuyển sang chế độ STOP vì
Cài đặt thông số sai.
Vùng đo lường ở module analog sai
Các tín hiệu module Analog sai do cài
đặt các thông số không đúng
Sau khi Reset bộ nhớ, cần cài đặt lại
Các thông số cho module
Nạp cấu hình mới
Không thể mở cấu hình HW.
Tạo ra một trạm HW mới
"Upload Station"
Các thông số module không thể chỉnh
sửa được
Mở trạm offline
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.20
Information and Training Center
Knowledge for Automation
Biến địa chỉ
2x
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.21
Information and Training Center
Knowledge for Automation
Truy xuất bảng ký hiệu
Once with right
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.22
Information and Training Center
Knowledge for Automation
Bài tập: Đọc và điều chỉnh cấu hình thực
Bước
1
Thực hiện
Kết quả
Khởi động trình quản lý SIMATIC Manager
Công cụ được khởi động
2
Mở chương trình "My Project"
Cấu trúc chương trình được hiển thị
3
Nạp cấu hình thực bằng PLC -> Upload
Một trạm HW được tạo thành
4
Kiểm tra xem nhập đúng module chưa
(theo số thứ tự)
???
5
Nhập số thứ tự chính xác cho các module
Hiển thị các thông số của CPU
6
7
SIMATIC S7
Siemens AG 1999. All rights reserved.
Lưu cấu hình với tên"My Station„ và nạp
cấu hình
Nếu có thiết bị huấn luyện S7 400 hãy
Làm tương thích địa chỉ
Date:
File:
29.10.15
PRO1_04E.23
Địa chỉ giống như thiết bị huấn luyện
S7 300 phiên bản B
Information and Training Center
Knowledge for Automation
Bài tập: Cài đặt tham số cho bộ nhớ đồng hồ và kiểm tra
Bước
1
2
3
Điều kiện
Két quả
Trong CPU cài đặt các thông số bộ nhớ
đồng hồ MB10
MB 10 nhấp nháy
Lưu và nạp cấu hình trong CPU
Kiểm tra chức năng bằng lập trình OB1
với các câu lệnh L MB 10, T QB 9 (QB 5)
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_04E.24
QB9 (QB5) trên thiết bị mô phỏng
phải nhâp nháy
Information and Training Center
Knowledge for Automation