Information and Training CenterKnowledge for Automation Chọn lựa ngôn ngữ lập trình... Information and Training CenterKnowledge for Automation Gọi một khối trong OB1... Information and T
Trang 1Date: 29.10.15File: PRO1_05E.1
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Soạn thảo các khối
Trang 2Date: 29.10.15File: PRO1_05E.2
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
FBD
I0.0 I0.1 Q8.0
LAD
Trang 3Date: 29.10.15File: PRO1_05E.3
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Khởi động soạn thảo LAD/STL/FBD
2x
Trang 4Date: 29.10.15File: PRO1_05E.4
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Thành phấn soạnt thảo LAD/STL/FBD
Browser
Declaration
Table
Code Section
Trang 5Date: 29.10.15File: PRO1_05E.5
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Chọn lựa ngôn ngữ lập trình
Trang 6Date: 29.10.15File: PRO1_05E.6
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Lập trình trong LAD/FBD
Trang 7Date: 29.10.15File: PRO1_05E.7
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Lập trình trong STL
Trang 8Date: 29.10.15File: PRO1_05E.8
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Lưu một khối
Current project directory with name of block
Trang 9Date: 29.10.15File: PRO1_05E.9
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Gọi một khối trong OB1
Trang 10Date: 29.10.15File: PRO1_05E.10
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Nạp khối vào PLC
Trang 11Date: 29.10.15File: PRO1_05E.11
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Chạy chương trình
Trang 12Date: 29.10.15File: PRO1_05E.12
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Nạp và lưu khối đã sửa
Open offline
Open online Save
Download
(Q8.0)
Trang 13Date: 29.10.15File: PRO1_05E.13
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Ký hiệu gợi nhớ German English (International)
…Chọn ngôn ngữ soạn thảo trong LAD/STL/FBD
Before you open a program block or a program
Bài tập: Chọn ký tự gợi nhps
Trang 14Date: 29.10.15File: PRO1_05E.14
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Bài tập: Mở và soạn thảo FC 1
Trang 15Date: 29.10.15File: PRO1_05E.15
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Sau khi bạn đã mở một khối
…Chọn ngôn ngữ soạn thảo mà bạn muốn
sử dụng.
Bài tập: Thay đổi dạng soạn thảo
• Ladder Diagram (LAD)
• Statement List (STL)
• Function Block Diagram (FBD)
Trang 16Date: 29.10.15File: PRO1_05E.16
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
để lưu một khối hoặc một file mà
Không cần đổi tên, chọn
File -> Save
or click
Bài tập: Lưu FC 1
Để lưu một khối với tên khác
hoặc trong một nơi khác
File -> Save As
Trang 17Date: 29.10.15File: PRO1_05E.17
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Bài tập: Nạp một khối vào PLC
Hoặc kích vào biểu tượng
To transmit a block to the CPU
Trang 18Date: 29.10.15File: PRO1_05E.18
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Bài tập: Gọi FC1 trong OB 1
Trang 19Date: 29.10.15File: PRO1_05E.19
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Bài tập: Thực hiện kiểm tra FC 1 (trong LAD)
Signal state Result of check Input
1 1
1 0
0 1
0 1
1 0
1 1
0 0
Trang 20Date: 29.10.15File: PRO1_05E.20
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Bài tập: Mở rộng chương trình trong khối FC1
(Q4.0)
Trang 21Date: 29.10.15File: PRO1_05E.21
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Soạn thảo dùng Customize : Mục"Editor"
(Q4.0)
Trang 22Date: 29.10.15File: PRO1_05E.22
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Soạn thảo dùng Customize : Mục "STL"
Trang 23Date: 29.10.15File: PRO1_05E.23
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Soạn thảo dùng Customize : Mục "LAD/FBD"
Trang 24Date: 29.10.15File: PRO1_05E.24
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Soạn thảo dùng Customize : Mục "Create Block"
Trang 25Date: 29.10.15File: PRO1_05E.25
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Soạn thảo dùng Customize: mục"Source Files"
Trang 26Date: 29.10.15File: PRO1_05E.26
SIMATIC S7
Siemens AG 1999 All rights reserved
Information and Training CenterKnowledge for Automation
Soạn thảo dùng Customize :Mục"Symbol Selection"