Information and Training CenterKnowledge for Automation Tổng quan - Chuẩn đoán hệ thống PG 740 SIEMENS Vùng đệm chuẩn đoán CPU thông báo Chuẩn đoán toàn bộ module, phát hiện ra lỗi và ra
Trang 1Date: 29.10.15File: PRO1_12E.1
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Xử lý sự cố
Trang 2Date: 29.10.15File: PRO1_12E.2
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Tổng quan - Chuẩn đoán hệ thống
PG 740 SIEMENS
Vùng đệm chuẩn đoán
CPU
thông báo
Chuẩn đoán toàn
bộ module, phát hiện ra lỗi và ra lệnh ngắt
chuẩn đoán
Ngắt chuẩn đoán
Danh sách trạng thái
hệ thống SFC
Trang 3Date: 29.10.15File: PRO1_12E.3
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Tìm các lỗi làm dừng CPU
CP U
Trang 4Date: 29.10.15File: PRO1_12E.4
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Gọi công cụ "Module Information"
Trang 5Date: 29.10.15File: PRO1_12E.5
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Bảng thông tin về Module: "Diagnostic Buffer"
Trang 6Date: 29.10.15File: PRO1_12E.6
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Giải thích các thông báo lỗi
Trang 7Date: 29.10.15File: PRO1_12E.7
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Mở một khối có chứa lỗi
Trang 8Date: 29.10.15File: PRO1_12E.8
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Chuẩn đoán với I Stack, B Stack, L Stack
Vị trí lỗi
Nội dung của ACCU, thanh ghi từ trạng thái.v.v (đến thời điểm ngắt) nằm trong I Stack.
Giá trị của các biến tạm thời đến thời điểm ngắt nằm trong L Stack.
Error location
Các khối có lỗi nằm trong B Stack.
Trang 9Date: 29.10.15File: PRO1_12E.9
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
B Stack
Trang 10Date: 29.10.15File: PRO1_12E.10
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
I Stack
Trang 11Date: 29.10.15File: PRO1_12E.11
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
L Stack
Trang 12Date: 29.10.15File: PRO1_12E.12
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Bài tập: Tìm lỗi dẫn đến Stop và xoá chúng
Kết quả Cách thực hiện
Bước
Bộ nhớ của CPU bị reset
Thực hiện việc xoá bỏ bộ nhớ CPU.
Chương trình lỗi được downloaded.
Truyền tải tất cả các khối từ chương trình S 7 "ERROR" xuống CPU.
3
CPU chuyển sang chế độ STOP Thực hiện việc khởi động mới
4
CPU lại trở lại chế độ RUN.
Tìm và sửa lỗi là nguyên nhân làm CPU chuyển sang chế độ STOP.
5
Trang 13Date: 29.10.15File: PRO1_12E.13
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Bài tập: Xử lý lỗi với I Stack, B Stack
Kết quả Cách thực hiện
Trả lời câu hỏi theo bảng cho dưới đây.
Hãy làm rõ nguyên nhân gây ra lỗi với diagnostic buffer và các stack.
Trang 14Date: 29.10.15File: PRO1_12E.14
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Các lỗi logic
??
Trang 15Date: 29.10.15File: PRO1_12E.15
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Hiển thị dữ liệu tham khảo “Reference Data“
Trang 16Date: 29.10.15File: PRO1_12E.16
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Lọc dữ liệu tham khảo “Reference Data“
Trang 17Date: 29.10.15File: PRO1_12E.17
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Tham trỏ chéo “Cross References“
Trang 18Date: 29.10.15File: PRO1_12E.18
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Lọc tham trỏ chéo “Cross References“
Trang 19Date: 29.10.15File: PRO1_12E.19
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Reference Data: Tìm kiếm
Trang 20Date: 29.10.15File: PRO1_12E.20
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Sử dụng Cross References để sửa khối.
2x
Trang 21Date: 29.10.15File: PRO1_12E.21
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Đến vị trí sử dụng
1xright
Trang 22Date: 29.10.15File: PRO1_12E.22
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Sự xếp đặt của I,Q,M,T,C
Trang 23Date: 29.10.15File: PRO1_12E.23
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Unused Symbols / Addresses without Symbols (Các ký hiệu không được sử dụng/địa chỉ không có ký hiệu)
Trang 24Date: 29.10.15File: PRO1_12E.24
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Program Structure (Cấu trúc chương trình)
Trang 25Date: 29.10.15File: PRO1_12E.25
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
So sánh các khối (1)
.see next page
Trang 26Date: 29.10.15File: PRO1_12E.26
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
So sánh các khối (2)
Trang 27Date: 29.10.15File: PRO1_12E.27
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Bài tập: Sửa chữa lối logic
• Bạn có thể chọn chế độ "Manual"?
• Có cho phép chạy băng tải chạy ở chế độ ấn?
• Đặt công tắc ở chế độ Automatic !
• Chai có dừng lại ở cảm biến làm đầy?
• Có xảy ra thông báo, khi tình trạng đầy dưới mức cực tiểu?
• Số gói được đóng được hiển thị ở bộ chỉ thị số?
Trang 28Date: 29.10.15File: PRO1_12E.28
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Các lỗi thất thường
Trang 29Date: 29.10.15File: PRO1_12E.29
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
(Hiển thị các thông báo CPU) Displaying CPU Messages
Trang 30Date: 29.10.15File: PRO1_12E.30
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Viết thông báo của bạn vào Diagnostic Buffer
SEND = TRUE
Chú ý e.g PG, OP CPU
SFC 52
Trang 31Date: 29.10.15File: PRO1_12E.31
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Thiết kế văn bản thông báo riêng.
Trang 32Date: 29.10.15File: PRO1_12E.32
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Gọi khối SFC 52
Network 2: User message when limit value exceeded
ENO RET_VAL #error_sfc52
SFC 52 EN
SEND EVENTN INFO 1 INFO 2
#analog value_
normalized
#dummy W#16#A901
CMP>R IN1 IN2
>=1
M 90.1
Trang 33Date: 29.10.15File: PRO1_12E.33
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Cấu trúc thông số EVENTN của khối SFC 52
Nhóm sự cố
15 14 13 12 EVENTN
1 9 là các đoạn văn chuẩn cho các sự kiện khác nhau
(xem sổ tay các chức năng chuẩn và hệ thống) A B Đoạn văn tự do, được xác định qua thiết kế thông báo lỗi
Số sự kiện
Các thông báo tiếp tục từ 1 đến 255 với một nhóm sự cố.
Số sự cố
Trang 34Date: 29.10.15File: PRO1_12E.34
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Các module có khả năng chuẩn đoán
Thông số của một module có khả năng chuẩn đoán:
Tác động khởi động ngắt chuẩn đoán OB 82 khi lỗi xảy ra.
Trang 35Date: 29.10.15File: PRO1_12E.35
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Hiển thị Hardware Diagnostic trong SIMATIC Manager
2x
Trang 36Date: 29.10.15File: PRO1_12E.36
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Bài tập: Cho phép các thông báo chuẩn đoán
Trang 37Date: 29.10.15File: PRO1_12E.37
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Bài tập: Đưa ra các thông báo của bạn
SFC 52
SEND EVENTN INFO1 INFO2
RET_VAL TRUE
Trang 38Date: 29.10.15File: PRO1_12E.38
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Bài tập: Cho phép ngắt chuẩn đoán và mô phỏng lỗi phần cứng
Cho phép diagnostic interrupt ở Module analog (HW Config.)
2 Nạp cấu hình vào CPU
3 Kéo các đầu nối (front connector) ra
khỏi module analog !
Đèn "SF" sáng trên module analog báo lỗi phần cứng
4 Kích hoạt công cụ "Diagnose Hardware" Cấu hình được mở ở online
5 Giải thích nguyên nhân lỗi với công cụ Thông báo "Power supply failure" được cho là nguyên nhân lỗi.
Trang 39Date: 29.10.15File: PRO1_12E.39
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Thông tin về hệ thống
Trang 40Date: 29.10.15File: PRO1_12E.40
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Tổng quan về thông tin, trạng thái hệ thống
Trang 41Date: 29.10.15File: PRO1_12E.41
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Thông tin, trạng thái về module: Mục "Memory"
Trang 42Date: 29.10.15File: PRO1_12E.42
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Thông tin, trạng thái module: Mục " Scan Cycle Time"
Trang 43Date: 29.10.15File: PRO1_12E.43
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Thông tin, trạng thái module: Mục"Time System"
in the SIMATIC Manager:
PLC -> Set Date and
Time
Trang 44Date: 29.10.15File: PRO1_12E.44
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Thông tin, trạng thái: Mục "Performance Data"
in the SIMATIC Manager:
• Blocks folder
-> Properties
Trang 45Date: 29.10.15File: PRO1_12E.45
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Performance Data: Blocks - Dữ liệu chính: Các khối
Trang 46Date: 29.10.15File: PRO1_12E.46
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Bài tập: Đọc ra các thông tin của hệ thống