Tải bản đầy đủ (.ppt) (26 trang)

sử dụng phần mềm step 7 cho S7200

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (423.94 KB, 26 trang )

Soạn thảo các khối

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.1

Information and Training Center
Knowledge for Automation


Ngôn ngữ lập trình STEP7
STL
A
A
=

FBD

I0.0

I0.0
I0.1
Q8.0

&
Q8.0


=

I0.1

LAD
I0.0

I0.1

SIMATIC S7
Siemens AG 1999. All rights reserved.

Q8.0

Date:
File:

29.10.15
PRO1_05E.2

Information and Training Center
Knowledge for Automation


Khởi động soạn thảo LAD/STL/FBD

2x

SIMATIC S7
Siemens AG 1999. All rights reserved.


Date:
File:

29.10.15
PRO1_05E.3

Information and Training Center
Knowledge for Automation


Thành phấn soạnt thảo LAD/STL/FBD

Declaration
Table

Code Section

Browser

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.4

Information and Training Center

Knowledge for Automation


Chọn lựa ngôn ngữ lập trình

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.5

Information and Training Center
Knowledge for Automation


Lập trình trong LAD/FBD

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.6

Information and Training Center

Knowledge for Automation


Lập trình trong STL

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.7

Information and Training Center
Knowledge for Automation


Lưu một khối
Current project directory with name of block

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.8


Information and Training Center
Knowledge for Automation


Gọi một khối trong OB1

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.9

Information and Training Center
Knowledge for Automation


Nạp khối vào PLC

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.10


Information and Training Center
Knowledge for Automation


Chạy chương trình

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.11

Information and Training Center
Knowledge for Automation


Nạp và lưu khối đã sửa

Open offline
Save

(Q8.0)

Open online
Download

SIMATIC S7

Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.12

Information and Training Center
Knowledge for Automation


Bài tập: Chọn ký tự gợi nhps
Before you open a program block or a program ...

Ký hiệu gợi nhớ German
English (International)

…Chọn ngôn ngữ soạn thảo
trong LAD/STL/FBD

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.13


Information and Training Center
Knowledge for Automation


Bài tập: Mở và soạn thảo FC 1

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.14

Information and Training Center
Knowledge for Automation


Bài tập: Thay đổi dạng soạn thảo

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.




SIMATIC S7

Siemens AG 1999. All rights reserved.

Date:
File:

Ladder Diagram
Statement List
Function Block Diagram

29.10.15
PRO1_05E.15

(LAD)
(STL)
(FBD)

Information and Training Center
Knowledge for Automation


Bài tập: Lưu FC 1
để 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

Để lưu một khối với tên khác
hoặc trong một nơi khác
File -> Save As


SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.16

Information and Training Center
Knowledge for Automation


Bài tập: Nạp một khối vào PLC
To transmit a block to the CPU...

...Hoặc kích
vào biểu tượng

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.17

Information and Training Center

Knowledge for Automation


Bài tập: Gọi FC1 trong OB 1

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.18

Information and Training Center
Knowledge for Automation


Bài tập: Thực hiện kiểm tra FC 1 (trong LAD)
Input

Signal
state

Result
of check

I 0.0

0


0

I 0.1

0

1

I 0.0

1

1

I 0.1

1

0

I 0.0

1

1

I 0.1

0


1

I 0.0

0

0

I 0.1

1

0

SIMATIC S7
Siemens AG 1999. All rights reserved.

I 0.0

I 0.1

Q 8.0 (Q 4.0)

I 0.0

I 0.1

Q 8.0 (Q 4.0)


I 0.0

I 0.1

Q 8.0 (Q 4.0)

I 0.0

I 0.1

Q 8.0 (Q 4.0)

Date:
File:

29.10.15
PRO1_05E.19

Information and Training Center
Knowledge for Automation


Bài tập: Mở rộng chương trình trong khối FC1

(Q4.0)

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:

File:

29.10.15
PRO1_05E.20

Information and Training Center
Knowledge for Automation


Soạn thảo dùng Customize : Mục"Editor"

(Q4.0)

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.21

Information and Training Center
Knowledge for Automation


Soạn thảo dùng Customize : Mục "STL"

SIMATIC S7
Siemens AG 1999. All rights reserved.


Date:
File:

29.10.15
PRO1_05E.22

Information and Training Center
Knowledge for Automation


Soạn thảo dùng Customize : Mục "LAD/FBD"

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.23

Information and Training Center
Knowledge for Automation


Soạn thảo dùng Customize : Mục "Create Block"

SIMATIC S7
Siemens AG 1999. All rights reserved.


Date:
File:

29.10.15
PRO1_05E.24

Information and Training Center
Knowledge for Automation


Soạn thảo dùng Customize: mục"Source Files"

SIMATIC S7
Siemens AG 1999. All rights reserved.

Date:
File:

29.10.15
PRO1_05E.25

Information and Training Center
Knowledge for Automation


×