Date,2009-7-30
File,SSP1_10C.1
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
符号
Date,2009-7-30
File,SSP1_10C.2
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
绝对寻址和符号寻址
A I 0.0
= Q4.0
A I 0.4
= Q8.5
Call FC18
A,PLANT_ON”
=,ON_INDIC”
A,M_FORW”
=,MOTOR_FORW”
Call,COUNT”
Symbol Address Data Type Comment
MOTOR_FORW
COUNT
PLANT_ON
ON_INDIC
M_FORW
Q8.5
FC18
I 0.0
Q4.0
I 0.4
BOOL
FC18
BOOL
BOOL
BOOL
Motor forwards
Count bottles
Switch on plant
Indicator,Plant is,On”
M.-con,switch,Motor forwards
(最多 24 个字符 ) (最多 80 个字符 )
Date,2009-7-30
File,SSP1_10C.3
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
局部数据块,块的声明表 程序编辑器
- 块参数
- 局部 /临时数据跳转标号 块的代码区 程序编辑器符号寻址 - 概述何处使用符号? 它们存放在何处? 如何建立它们?
全局数据,符号表 符号编辑器
- 输入
- 输出
- 位存储器、定时器、计数器
- 外设 I/O
数据块组成 DB的声明表 程序编辑器块名称,符号表 符号编辑器
- FB
- FC
- DB
- VAT
- UDT
Date,2009-7-30
File,SSP1_10C.4
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
打开符号表
Date,2009-7-30
File,SSP1_10C.5
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
编辑:查找与替换
Date,2009-7-30
File,SSP1_10C.6
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
查看:过滤器
Date,2009-7-30
File,SSP1_10C.7
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
查看:排序
Date,2009-7-30
File,SSP1_10C.8
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
符号表:导出要把表存到何处?
把表存成何种格式?
Date,2009-7-30
File,SSP1_10C.9
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
符号表:导入这里选择目录路径输入文件名选择格式
Date,2009-7-30
File,SSP1_10C.10
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
编辑符号 (在 LAD/STL/FBD 编辑器中 )
Date,2009-7-30
File,SSP1_10C.11
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
符号信息 (在 LAD/STL/FBD 编辑器中 )
Date,2009-7-30
File,SSP1_10C.12
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
符号选择 (在 LAD/STL/FBD 编辑器中 )
Date,2009-7-30
File,SSP1_10C.13
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
符号优先
Symbol Table
Old Entry:
Plant ON = Q8.0
New Entry:
Plant ON = Q4.0
优先:
绝对地址优先:
符号
Date,2009-7-30
File,SSP1_10C.14
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
程序的反编译缺少符号表 替换表示法符号表 对全局数据(如 I 1.0) 使用地址而不用符号
DB的符号部分 DB的单元(如 DW1) 使用地址,而不用符号
FB 的符号部分 对块的局部和暂时数据使用地址而不用符号(如 LB 17)
对参数使用替代的记号,而不用符号,如 PAR 1
FB注释部分 对跳转表使用替代的记号,而不用符号。如 M 001
Date,2009-7-30
File,SSP1_10C.15
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
练习 10.1:为 FC15建立符号表
Plant On
Manual Mode
Automatic Mode
Conveyor Forward
Conveyor Backward
Start
Stop
Jog Forward
Jog Backward
Automatic/Manual
Enter Mode
Q 8.1
Q 8.2
Q 8.3
Q 20.5
Q 20.6
I 0.0
I 0.1
I 0.2
I 0.3
I 0.4
I 0.5
Q 4.1
Q 4.2
Q 4.3
Q 8.5
Q 8.6
I 0.0
I 0.1
I 0.2
I 0.3
I 0.4
I 0.5
符号 地址(A版 ) 地址(B版 )
File,SSP1_10C.1
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
符号
Date,2009-7-30
File,SSP1_10C.2
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
绝对寻址和符号寻址
A I 0.0
= Q4.0
A I 0.4
= Q8.5
Call FC18
A,PLANT_ON”
=,ON_INDIC”
A,M_FORW”
=,MOTOR_FORW”
Call,COUNT”
Symbol Address Data Type Comment
MOTOR_FORW
COUNT
PLANT_ON
ON_INDIC
M_FORW
Q8.5
FC18
I 0.0
Q4.0
I 0.4
BOOL
FC18
BOOL
BOOL
BOOL
Motor forwards
Count bottles
Switch on plant
Indicator,Plant is,On”
M.-con,switch,Motor forwards
(最多 24 个字符 ) (最多 80 个字符 )
Date,2009-7-30
File,SSP1_10C.3
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
局部数据块,块的声明表 程序编辑器
- 块参数
- 局部 /临时数据跳转标号 块的代码区 程序编辑器符号寻址 - 概述何处使用符号? 它们存放在何处? 如何建立它们?
全局数据,符号表 符号编辑器
- 输入
- 输出
- 位存储器、定时器、计数器
- 外设 I/O
数据块组成 DB的声明表 程序编辑器块名称,符号表 符号编辑器
- FB
- FC
- DB
- VAT
- UDT
Date,2009-7-30
File,SSP1_10C.4
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
打开符号表
Date,2009-7-30
File,SSP1_10C.5
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
编辑:查找与替换
Date,2009-7-30
File,SSP1_10C.6
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
查看:过滤器
Date,2009-7-30
File,SSP1_10C.7
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
查看:排序
Date,2009-7-30
File,SSP1_10C.8
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
符号表:导出要把表存到何处?
把表存成何种格式?
Date,2009-7-30
File,SSP1_10C.9
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
符号表:导入这里选择目录路径输入文件名选择格式
Date,2009-7-30
File,SSP1_10C.10
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
编辑符号 (在 LAD/STL/FBD 编辑器中 )
Date,2009-7-30
File,SSP1_10C.11
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
符号信息 (在 LAD/STL/FBD 编辑器中 )
Date,2009-7-30
File,SSP1_10C.12
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
符号选择 (在 LAD/STL/FBD 编辑器中 )
Date,2009-7-30
File,SSP1_10C.13
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
符号优先
Symbol Table
Old Entry:
Plant ON = Q8.0
New Entry:
Plant ON = Q4.0
优先:
绝对地址优先:
符号
Date,2009-7-30
File,SSP1_10C.14
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
程序的反编译缺少符号表 替换表示法符号表 对全局数据(如 I 1.0) 使用地址而不用符号
DB的符号部分 DB的单元(如 DW1) 使用地址,而不用符号
FB 的符号部分 对块的局部和暂时数据使用地址而不用符号(如 LB 17)
对参数使用替代的记号,而不用符号,如 PAR 1
FB注释部分 对跳转表使用替代的记号,而不用符号。如 M 001
Date,2009-7-30
File,SSP1_10C.15
SIMATIC S7
Siemens AG 2000,All rights reserved.
Information and Training Center
Know ledge for Automation
练习 10.1:为 FC15建立符号表
Plant On
Manual Mode
Automatic Mode
Conveyor Forward
Conveyor Backward
Start
Stop
Jog Forward
Jog Backward
Automatic/Manual
Enter Mode
Q 8.1
Q 8.2
Q 8.3
Q 20.5
Q 20.6
I 0.0
I 0.1
I 0.2
I 0.3
I 0.4
I 0.5
Q 4.1
Q 4.2
Q 4.3
Q 8.5
Q 8.6
I 0.0
I 0.1
I 0.2
I 0.3
I 0.4
I 0.5
符号 地址(A版 ) 地址(B版 )