Xử lý sự cố
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.1
Information and Training Center
Knowledge for Automation
Tổng quan - Chuẩn đoán hệ thống
Ngắt chuẩn
đoán
Chuẩn đoán CPU phát hiện ra
lỗi ở chương trình sử dụng
Lỗi
OB
I/O-Module
CPU
Chuẩn đoán CPU phát hiện ra
lỗi hệ thống
Vùng đệm
chuẩn đoán
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
Danh sách
trạng thái
hệ thống
SFC
CPU
thông báo
SIEMENS
PG 740
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.2
Information and Training Center
Knowledge for Automation
Tìm các lỗi làm dừng CPU
CP
SIMATIC S7
Siemens AG 1999. All rights reserved.
U
Date:
File:
29.10.15
PRO1_12E.3
Information and Training Center
Knowledge for Automation
Gọi công cụ "Module Information"
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.4
Information and Training Center
Knowledge for Automation
Bảng thông tin về Module: "Diagnostic Buffer"
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.5
Information and Training Center
Knowledge for Automation
Giải thích các thông báo lỗi
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.6
Information and Training Center
Knowledge for Automation
Mở một khối có chứa lỗi
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.7
Information and Training Center
Knowledge for Automation
Chuẩn đoán với I Stack, B Stack, L Stack
Cấu trúc chương trình
Nội dung của khổi có lỗi
Error location
Các khối có lỗi nằm trong B Stack.
Vị trí lỗi
Giá trị của các biến tạm thời đến thời
điểm ngắt nằm trong L Stack.
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.
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.8
Information and Training Center
Knowledge for Automation
B Stack
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.9
Information and Training Center
Knowledge for Automation
I Stack
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.10
Information and Training Center
Knowledge for Automation
L Stack
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.11
Information and Training Center
Knowledge for Automation
Bài tập: Tìm lỗi dẫn đến Stop và xoá chúng
Bước
Cách thực hiện
1
Thực hiện việc xoá bỏ bộ nhớ CPU.
Kết quả
Bộ nhớ của CPU bị reset.
2
Sao chép chương trình S7
"ERROR" từ đề án
"ERROR _16" ("ERROR _32") vào
HW-Station "My Station".
Cấu trúc của đề án được hiển thị.
3
Truyền tải tất cả các khối từ chương
trình S 7 "ERROR" xuống CPU.
Chương trình lỗi được downloaded.
4
Thực hiện việc khởi động mới
CPU chuyển sang chế độ STOP
5
Tìm và sửa lỗi là nguyên nhân làm CPU
CPU lại trở lại chế độ RUN.
chuyển sang chế độ STOP.
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.12
Information and Training Center
Knowledge for Automation
Bài tập: Xử lý lỗi với I Stack, B Stack
Bước
Cách thực hiện
1
Bật công tắc đầu vào theo thứ tự từ I1.0
đến I 1.2.
CPU chuyển sang chế độ STOP
ngay lập tức.
2
Hãy làm rõ nguyên nhân gây ra lỗi với
diagnostic buffer và các stack.
Trả lời câu hỏi theo bảng cho dưới đây.
3
Đặt công tắc I1.0 và I 1.2 trở lại trạng thái
CPU ở chế độ RUN
off ban đầu
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
Kết quả
29.10.15
PRO1_12E.13
Information and Training Center
Knowledge for Automation
Các lỗi logic
??
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.14
Information and Training Center
Knowledge for Automation
Hiển thị dữ liệu tham khảo “Reference Data“
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.15
Information and Training Center
Knowledge for Automation
Lọc dữ liệu tham khảo “Reference Data“
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.16
Information and Training Center
Knowledge for Automation
Tham trỏ chéo “Cross References“
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.17
Information and Training Center
Knowledge for Automation
Lọc tham trỏ chéo “Cross References“
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.18
Information and Training Center
Knowledge for Automation
Reference Data: Tìm kiếm
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.19
Information and Training Center
Knowledge for Automation
Sử dụng Cross References để sửa khối.
2x
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.20
Information and Training Center
Knowledge for Automation
Đến vị trí sử dụng
1xright
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.21
Information and Training Center
Knowledge for Automation
Sự xếp đặt của I,Q,M,T,C
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.22
Information and Training Center
Knowledge 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)
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.23
Information and Training Center
Knowledge for Automation
Program Structure (Cấu trúc chương trình)
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.24
Information and Training Center
Knowledge for Automation
So sánh các khối (1)
...see
next page
SIMATIC S7
Siemens AG 1999. All rights reserved.
Date:
File:
29.10.15
PRO1_12E.25
Information and Training Center
Knowledge for Automation