date:19.02.2016 file:pro1_05c.1 simatic s7 siemens ag 1999. all rights reserved. information and...

26
Date: 07.05.22 File: PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块块块块

Upload: roberta-bond

Post on 18-Jan-2018

284 views

Category:

Documents


0 download

DESCRIPTION

Date: File:PRO1_05C.3 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation 启动 LAD/STL/FBD 编辑器 2x2x

TRANSCRIPT

Page 1: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.1

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

块的编辑

Page 2: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.2

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

STEP7 编程语言

A I0.0A I0.1= Q8.0

STL

&Q8.0

=

I0.0

I0.1

FBD

I0.0 I0.1 Q8.0

LAD

Page 3: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.3

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

启动 LAD/STL/FBD 编辑器

2x

Page 4: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.4

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

LAD/STL/FBD 编辑器的组成

Browser

声明表

代码区

Page 5: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.5

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

选择编程语言

Page 6: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.6

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

用 LAD/FBD 编程

Page 7: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.7

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

用 STL 编程

Page 8: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.8

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

块的保存带有块名称的当前项目路径

Page 9: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.9

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

在 OB1 中调用块

Page 10: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.10

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

下载块到 PLC

Page 11: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.11

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

简单程序调试

Page 12: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.12

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

下载和保存修改的块

打开离线

打开在线

保存

下载

(Q8.0)

Page 13: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.13

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

助记符 德语 英语 ( 国际 )

… 选择编辑语言 LAD/STL/FBD

在打开程序块或程序前 ...

练习:选择助记符

Page 14: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.14

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

练习 : 打开并编辑 FC 1

Page 15: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.15

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

在打开一个块后 ...

选择需要使用的编程语言

练习:变换编程语言

• 梯形图 (LAD)• 语句表 (STL)• 功能块图 (FBD)

Page 16: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.16

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

选择菜单选项 File -> Save不修改名称保存块或文件 ..

… 或点击

练习:保存 FC 1

利用 File -> Save As 以不同的名字保存块或存放在不同的地方

Page 17: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.17

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

练习:下载块到 PLC

或点击下载图标

把一个块传到 CPU...

Page 18: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.18

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

练习:在 OB 1 中调用 FC 1

Page 19: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.19

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

练习:测试 FC 1 ( 用 LAD)

信号状态 检查结果输入I 0.0

I 0.1

I 0.0

I 0.1

I 0.0

I 0.1

I 0.0

I 0.1

0

0

1

1

1

0

0

1

0

1

1

0

1

1

0

0

I 0.0 I 0.1 Q 4.0

I 0.0 I 0.1 Q 4.0

I 0.0 I 0.1 Q 4.0

I 0.0 I 0.1 Q 4.0

Page 20: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.20

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

练习:在 FC 1 块中扩展程序

Page 21: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.21

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

编辑器用户设置:“ Editor” 标签

Page 22: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.22

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

编辑器用户设置:“ STL” 标签

Page 23: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.23

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

编辑器用户设置:“ LAD/FBD” 标签

Page 24: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.24

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

编辑器用户设置:“ Create Block” 标签

Page 25: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.25

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

编辑器用户设置:“ Source Files” 标签

Page 26: Date:19.02.2016 File:PRO1_05C.1 SIMATIC S7 Siemens AG 1999. All rights reserved. Information and Training Center Knowledge for Automation 块的编辑

Date: 04.05.23File: PRO1_05C.26

SIMATIC S7Siemens AG 1999. All rights reserved.

Information and Training CenterKnowledge for Automation

编辑器用户设置:“ Symbol Selection” 标签