Date: 2011/7/12 File: SSP1_01C.1
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
SIMATIC S7
SF RUN STOP
I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 I0.6 I0.7 SIEMENS
S7-200
Mic ro PLC 212
SIMATIC
X 2 3 4 Q0.0 Q0.1 Q0.2 Q0.3 Q0.4
Q0.5
S7-200
S7-300
S7-400
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.2
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
SIMATIC
综述综述综述综述SIMATIC 控制器
SIEMENS
SIMATIC SF RUN STOP
Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 I0.6 I0.7 S7-200
CPU 212
SIMATIC PG SIMATIC PC
PG 740 SIEMENS
7 8 9
4 5 6
1 2 3
0 .
D E F
A B C I N S
D E L
S H I F T H E L P
E S C
E N T E R A C K S I M A T I C O P 1 7
S H I F T H E L P
K 1 K 2 K 3 K 4 K 5 K 6 K 7 K 8
K 9 K 1 0 K 11 K 1 2 K 1 3 K 14 K 1 5 K 1 6
SIMATIC HMI
ASI
FM
SV
SIMATIC DP SIMATIC NET
PROFIBUS-DP
工业以太网PROFIBUS MPI - 网络
SIMATIC NET
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.3
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
SIMATIC S7/C7/M7 WinAC
SIMATIC S7 - 400
SIMATIC S7 - 300 SIMATIC M7 - 300 SIMATIC C7 - 620
SIMATIC S7 - 200
SIMATIC M7 - 400
PLC
SIMATIC WinAC Pro
SIMATIC WinAC Basic
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.4
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-200:
SIEMENS
SIMATIC S7-200
CPU 214 SF
RUN STOP
I1.0 I1.1 I1.2 I1.3 I1.4 I1.5 I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 I0.6 I0.7
Q1.0 Q1.1 Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7
EM 221
DI 8 x DC24V I.0
I.1 I.2 I.3 I.4 I.5
I.6 I.7
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.5
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-200:
点系节微度微 点系节微度4 点系节微度护,,,,,,,,,,,,,,点系节微度控
度控0x断0x控微,mm,,,,,,,,,,,度时7x断0x控微,mm,,,,,,,,,,,,微度断x断0x控0mm,,,,,,,,, 微度断x断0x控0mm
度,硬 4,硬, 断硬, 断硬,
护度微 微硬,,,,,,,,,,,,,,,,,,,,,,,4硬 4硬
护度微, 微04断, 护硬, 护硬,
的展类,,,,,,,,断,D的,展,控,D类,,,,,,,,,,,度4,D的,展,度0,D类,,,,,,,,,,度4,D的,展,度0,D类,,,,,,,,,,,微4,D的,展,度控,D类 微 --- 7, --- 度 --- 4, --- 度 (7,k电z器,,,,微, (7,k电z器,,,,,--- 微, (微0,k电z器---
展 控4展控4 度微断展度微断 微护控展微护控,,,,,,,,,,,,,,,,微护控展微护控
度寄性,ms,,,,,,,,,,,,,,,,,0寄断,ms 0寄断,ms,,,,,,,,,,,,,,,,,,0寄断ms
(度k 器
系系的,展 系系的展 系系的备,系rof集输us 微X系系的展,
--- 备, ---
备, 备, 备 基系的D备, 基系的D备,
S7-微00 微 点系节 点系节 性 果, 展 的展类器
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.6
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-200:
EM EM
CP242 - 2
CP
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.7
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
SIEMENS
SIMATIC
SF RUN STOP
Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 I0.0
I0.1 I0.2 I0.3 I0.4 I0.5 I0.6 I0.7
S7-200
CPU 212
D的展D类
系系的,
S7-200: CPU
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.8
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-300:
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.9
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-300:
CPU 314 CPU CPU312 314
IFM CPU312 IFM
工作存储器
: 6 K
字节12 K
字节24 K
字节24 K
字节48 K
字节装载存储器
(
内部集成RAM.): 20 K
字节20 K
字节40 K
字节40 K
字节80 K
字节 装载存储器(Flash EPROM) - 512 K
字节512 K
字节- 512 K
字节(
最多可接)
DI / DQ: 128 128 512 992 1024
AI / AQ: 32 32 64 248 128
本机I/O点
DI / DQ 10 / 6 - - 20 / 16 -
AI/ AQ 4 / 1
程序执行时间
0.6ms 0.6 ms 0.3 ms 0.3 ms 0.3 ms
(
((
(
1K
二进制指令))))存储器标志位
1024 2048 2048 2048 2048
计数器
/
定时器32 / 64 64 /128 64/128 64/128 64/128
集成功能 有 无 无 有 无
例如:计数器/频率测量
同时通过MPI通讯的节点
4 4 4 4 4
CPU 313 CPU
313 CPU
315 CPU CPU314 315
IFM CPU314 IFM
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.10
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-300:
模块模块模块模块PS ( 可选 )
CPU IM
( 可选 )
SM:
DI
SM:
DO
SM:
AI
SM:
AO
FM:
- 计数 - 定位 - 闭环控制
CP:
- 点 - 到 - 点 - PROFIBUS - 工业以太网
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.11
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
CPU314
SIEMENS
SF BATF DC5V FRCE RUN STOP
RUN-P
RUN STOP M RES
SIMATIC S7-300
Batterie MPI
CPU315-2 DP
SIEMENS
RUN-P RUN STOP M RES
SIMATIC S7-300
Batterie DP
SF BATF DC5V FRCE RUN STOP
MPI
SF DP BUSF
S7-300: CPU
设计设计设计设计长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.12
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-400:
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.13
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-400: CPU
度度度度*)1 Byte = 8 数字量输入数字量输入数字量输入数字量输入/输出输出输出输出 2 Byte = 1 模拟量输入模拟量输入模拟量输入模拟量输入/输出输出输出输出 每条二进制指令的
每条二进制指令的每条二进制指令的 每条二进制指令的
执行时间执行时间执行时间 执行时间 装入装入装入
装入
/
传递传递传递传递(
字字字字) 16
位定点数位定点数位定点数位定点数(+/-) IEEE
浮点数浮点数浮点数浮点数(+/-)
用户存储器 用户存储器用户存储器 用户存储器
工作存储器 工作存储器 工作存储器 工作存储器 装载存储器 装载存储器装载存储器
装载存储器
(
内部集成内部集成内部集成内部集成)
装载存储器装载存储器装载存储器 装载存储器
(
外部外部外部外部)
操作资源操作资源操作资源操作资源 存储器标志 存储器标志 存储器标志 存储器标志
(
位位位位)
时钟存储器 时钟存储器时钟存储器 时钟存储器 定时器 定时器定时器 定时器 计数器 计数器计数器 计数器 块类型 块类型块类型 块类型
/
数目数目数目数目FB
块块块块FC
块块块块DB
块块块块过程映象区大小 过程映象区大小过程映象区大小 过程映象区大小
(
输入输入输入输入/
输出输出输出输出)
最大的最大的最大的
最大的
I/O
地址区地址区地址区地址区集成接口 集成接口集成接口 集成接口
CPU 414-1
100 nsec 100 nsec 100 nsec 600 nsec
128 KB 8 KB 16 MB
8192 8 256 256
512 1024 1024 p. 256 Byte
p. 8 KByte
*)MPI
CPU 416-1/-2DP/-2DP
80 nsec 80 nsec 80 nsec 480 nsec
512 KB/ 0.8MB/ 1.6MB 16 KB
16 MB
16384 8 512 512
2048 2048 4096 p. 512 Byte
p. 16 KByte
*)MPI CPU 414-2 DP
100 nsec 100 nsec 100 nsec 600 nsec
128 KB/ 384KB 8 KB
16 MB
8192 8 256 256
512 1024 1024 p. 256 Byte
p. 8 KByte
*)MPI, DP CPU 412-1
200 nsec 200 nsec 200 nsec 1200 nsec
48 KB 8 KB 16 MB
4096 8 256 256
256 256 512
p. 128 Byte
p. 2 KByte
*)MPI
CPU 413-2 DP
200 nsec 200 nsec 200 nsec 1200 nsec
72 KB 8 KB 16 MB
4096 8 256 256
256 256 512
p. 128 Byte
p. 2 KByte
*)MPI, DP CPU 413-1
200 nsec 200 nsec 200 nsec 1200 nsec
72 KB 8 KB 16 MB
4096 8 256 256
256 256 512
p. 128 Byte
p. 2 KByte
*)MPI,
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.14
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-400: CPU
((((2
))))组织块 组织块组织块 组织块
主循环扫描 主循环扫描主循环扫描 主循环扫描 日期时间中断 日期时间中断日期时间中断 日期时间中断 时间延时中断 时间延时中断时间延时中断 时间延时中断 看门狗中断 看门狗中断看门狗中断 看门狗中断 硬件中断硬件中断硬件中断 硬件中断 多处理器中断 多处理器中断多处理器中断 多处理器中断 启动
启动启动 启动 故障 故障故障 故障
,
异步异步异步异步 故障 故障故障 故障,
同步同步同步同步 局部数据区 局部数据区局部数据区 局部数据区 块的最大长度 块的最大长度块的最大长度 块的最大长度 块的最大嵌套深度 块的最大嵌套深度块的最大嵌套深度 块的最大嵌套深度MPI
和和和和K
总线上总线上总线上总线上 在线激活的最大节点数 在线激活的最大节点数在线激活的最大节点数 在线激活的最大节点数MPI
和和和和K
总线上最大节点数总线上最大节点数总线上最大节点数总线上最大节点数每个 每个每个
每个
GD
组的数据大小组的数据大小组的数据大小组的数据大小CPU 414-1
OB 1 OB 10-13 OB 20-23 OB 32-35 OB 40-43 OB 60 OB 100,101 OB 80-87 OB 121,122 8 KB 64 KB 16
32
32
64 Byte
CPU 416-1/ -2DP/ -2DP
OB 1 OB 10-17 OB 20-23 OB 30-38 OB 40-47 OB 60 OB 100,101 OB 80-87 OB 121,122 16 KB 64 KB 16
64
32
64 Byte CPU 414-2
OB 1 OB 10-13 OB 20-23 OB 32-35 OB 40-43 OB 60 OB 100,101 OB 80-87 OB 121,122 8 KB 64 KB 16
32
32
64 Byte CPU 412-1
OB 1 OB 10,11 OB 20,21 OB 32,35 OB 40,41 OB 60 OB 100,101 OB 80-87 OB 121,122 4 KB 64 KB 16
8
32
32 Byte
CPU 413-1
OB 1 OB 10,11 OB 20,21 OB 32,35 OB 40,41 OB 60 OB 100,101 OB 80-87 OB 121,122 4 KB 64 KB 16
16
32
32 Byte
CPU 413-2
OB 1 OB 10,11 OB 20,21 OB 32,35 OB 40,41 OB 60 OB 100,101 OB 80-87 OB 121,122 4 KB 64 KB 16
16
32
32 Byte
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.15
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-400:
PS CPU SM:
DI
SM:
DO
SM:
AI
SM:
AO
CP FM SM IM
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.16
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
EXT.-BATT.
5...15V DC X3
X1
414 - 2XG00 - 0AB0 CPU 414-2
X 2 3 4
INTF EXTF
STOP RUN CRST FRCE
CRST WRST
RUN-P RUN
STOP CMRES
INTF EXTF BUSF DP
EXT.-BATT.
5...15V DC X1
421 - 1BL00 - 0AA0 DI 32xDC24V
X 2 3 4
INTF EXTF
STOP RUN CRST FRCE
CRST WRST
RUN-P RUN
STOP CMRES
启动模式开关 模式选择器
例如 例如 例如
例如: : : : CPU412-1 例如 例如 例如 例如: : : : CPU416-2DP
* 其他的 CPU 请参见样本目录
S7-400: CPU 1
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.17
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-400: CPU 2
EXT.-BATT.
5...15V DC X3
X1
414 - 2XG00 - 0AB0 CPU 414-2
X 2 3 4
INTF EXTF
STOP RUN CRST FRCE
CRST WRST
RUN-P RUN
STOP CMRES
INTF EXTF BUSF DP
EXT.-BATT.
5...15V DC X1
421 - 1BL00 - 0AA0 DI 32xDC24V
X 2 3 4
INTF EXTF
STOP RUN CRST FRCE
CRST WRST
RUN-P RUN
STOP CMRES
CPU 故障指示 LED
存储器卡插槽
MPI 接口
外部电池
DP 接口故障指示 LED
DP 接口
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.18
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
PG720
PG740
PG760
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.19
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
展 展 展 展
• 处理器 80 486 或更高,推荐 Pentium
• 硬盘 ( 自由空间 ) 最小 300 MB ( 对 Windows 、交换文件、 STEP7 、 项目 )
• RAM >= 32 MB, 推荐 64 MB
• 接口 CP 5611 或 MPI 卡 或 PC- 适配器 存储器卡编程适配器
• 鼠标 要
• 操作系统 Windows 95/98/NT
S能状系,7 S能状系,7S能状系,7
S能状系,7 系G展系点系G展系点系G展系点系G展系点
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.20
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
PG 740 SIEMENS
S能状系,7,
S能状系,7,S能状系,7,
S能状系,7,
or
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_01C.21
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.1
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
PLC
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.2
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-300
... S7-300
PS
...
(度必0展必息0 (度必0展必息0 (度必0展必息0 (度必0展必息0 V器 V器 V器 V器 S撬S撬S撬S撬---- 息00 息00 息00 息00 必意 必意 必意 必意 V 照C V 照C V 照C V 照CCPU
...
IM ...
SM /
... S7-300
FM ...
CP ...
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.3
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-300
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.4
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-300
1 2 3 4 5 6 7 8 9 10 11
CPU
IMS PS FM
PS IMR PS IMR
PS IMR
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.5
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
CPU CPU
20 mm
40 mm
80 mm
CPU
I/O
CPU 314/315/316
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.6
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
1. ...
2. ...
3. ...
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.7
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
• ?
•
• !
• CPU !
• I/O !
•
• CPU I/O
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.8
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
度度 度度
482 mm 530 mm 830 mm 57.2mm
466 mm 500 mm 800 mm
• M 6
•
10mm
2长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.9
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
必必 必必
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.10
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
度室
必室 >控0范 总室
感室 池
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.11
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
点紧U
点紧U 点紧U长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.12
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
(控?mm? 器? 长沙工控帮教育科技有限公司整理Date: 2011/7/12 File: SSP1_02C.13
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
CPU
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.14
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
2.1
S7-300长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.15
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
2.2
4 5 4 5 (长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.16
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
2.3
Term.No.: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
S1 S4 H4 L- L+
32 -> (I 3.1) (I 3.4) (Q 7.1) L- L+
L+ L+ L-
/
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.17
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-400
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.18
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-400
PS
拉拉拉拉VVVV 必意必意必意必意VVVVCPU
IM SM /
S7-400
FM
CP
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.19
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
UR1 / UR2
Yes Yes
P
K
CR2
No Yes
P 1
K
P 2
P
ER1 / ER2
No Yes
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.20
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
20 mm
40 mm 22 mm
110 mm
1 10 mm2
长沙工控帮教育科技有限公司整理Date: 2011/7/12 File: SSP1_02C.21
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
•
•
•
•
•
• I/O
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.22
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
M610 mm
2
110 mm长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.23
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.24
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
10 mm
7 mm
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.25
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.26
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
CPU
BATT INDIC
CPU
S7-400
IM 1 21
IM
CPU
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.27
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.28
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-300
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.29
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-300
CPU Stop
CPU
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.30
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-300
CPU Stop
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.31
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-400
BATTINDIC
BAT
1BAT
2BAT
FMR
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_02C.32
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-400
CPU Stop RUN
CPU RUN STOP
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.1
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
STEP 7
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.2
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
STEP 7 为设计程序提供三种方法 为设计程序提供三种方法 为设计程序提供三种方法 为设计程序提供三种方法。 。 。 。基于这些方法 基于这些方法 基于这些方法 基于这些方法, , , ,可以选择最适合于你的应用的程序设计方法 可以选择最适合于你的应用的程序设计方法 可以选择最适合于你的应用的程序设计方法 可以选择最适合于你的应用的程序设计方法。 。 。 。
线性化 线性化 线性化
线性化 模块化 模块化 模块化 模块化 结构化 结构化 结构化 结构化
线性化编程:
所有的指令都在一个 块 ( OB1 ) 内。
模块化编程:
每个设备的控制指令 都在各自的块内。
OB1 按顺序调用每个块。
结构化编程:
不同的块调用可重复利用的代码。
OB1 ( 或其他块 ) 调用这些块 并传递相应的参数。
OB1 OB1 OB1
配方 A 配方 B 混合器 排空
泵
排空
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.3
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
OB1 Network 1
Network 2
Network 3
电机控制 电机控制 电机控制 电机控制
信息 信息 信息 信息
取得操作的小时数 取得操作的小时数 取得操作的小时数 取得操作的小时数
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.4
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
-- --
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.5
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
电机控制 电机控制 电机控制 电机控制
电机控制 电机控制 电机控制 电机控制
信息 信息 信息 信息
信息 信息 信息 信息
取得操作小时数 取得操作小时数 取得操作小时数 取得操作小时数
取得操作小时数 取得操作小时数 取得操作小时数 取得操作小时数
OB 1 FC 1
FC 2
FC 3
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.6
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
主程序 子块
程序 处理
程序 处理
g 调用另一个块的指令
块结束
OB FC/FB
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.7
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
LT
-- --
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.8
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
OB 1
电机 电机 电机 电机
1 电机 电机 电机 电机 1 FC 1
电机电机 电机电机
2 电机 电机 电机 电机 2 FC 1
电机 电机电机 电机
3 电机 电机 电机 电机 3
长沙工控帮教育科技有限公司整理
FC 1
Date: 2011/7/12 File No.: SSP1_03C.9
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
a b
罐选择开关 拨码开关 0 0 0 0
成分 A 成分 B
LT LT LT
LT
LT
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.10
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
故障
FB FB
FB FC
SFC SFB
FB 带背景数据块 阴影 :
OB
组织块 组织块 组织块 组织块
循环定时 过程
OB = 组织块 FB = 功能块 FC = 功能
SFB = 系统功能块 SFC = 系统功能
操作系统
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.11
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
块类型 块类型 块类型
块类型 特性 特性 特性 特性
组织块 - 操作系统和用户程序的接口
(OB) - 各层次的优先级 (1 ~ 26)
- 局部数据堆栈中的特殊启动信息
功能块 (FB) - 带参数 / 数据保持 - 不带参数 / 数据保持 - 不带参数 / 数据不保持
功能 (FC) - 只传递一个返回值 ( 调用时必须分配参数 ) - 数据不保持
- 可带参数
数据块 (DB) - 结构化,局部存储 ( 背景 DB) - 结构化,全局数据存储
( 在整个程序中均有效 )
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.12
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
块类型 块类型 块类型
块类型 特点 特点 特点 特点
系统功能 - 存储在 CPU 的操作系统中
(SFC) - 用户可以调用此功能
(不需要存储器)
系统功能块 - 存储在 CPU 的操作系统中
(SFB) - 用户可以调用此功能
(需要存储器)
系统数据块 - 用于组态数据和参数的数据块
(SDB)
长沙工控帮教育科技有限公司整理Date: 2011/7/12 File No.: SSP1_03C.13
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
数据字节 0
数据字节 8191
8 位
CPU314 中块的大小是 8K 字节 数据块提供的最大存储空间 依赖于 CPU 的型号
0 7
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.14
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
调用程序块 调用程序块 调用程序块 调用程序块
被调用的块 被调用的块 被调用的块 被调用的块
(OB, FB, FC) (FB, FC, SFB, SFC)
程序执行
程序执行
调用另一个块的指令
长沙工控帮教育科技有限公司整理
块结束
Date: 2011/7/12 File No.: SSP1_03C.15
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
执行 OB1 中的程序 ( 循环执行 )
事件 ( 日期时间中断、硬件中断等 ) 调用其他 OB , FB , FC
输出 模块 A I 0.1 A I 0.2
= Q8.0 块 OB 1
循环监视时间的开始 启动块 (OB 100)
上电后执行一次
从模块读信号状态,并保存到过程映象区 (PII)
把过程映象输出表 (PIQ) 写到输出模块
C P U 循
环循环循环循环输入 模块
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.16
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
字节 0 字节 1 字节 2 :
: :
CPU 存储器区 字节 0
字节 1 字节 2 :
: :
PII PIQ
用户程序
CPU 存储器区
: :
A I 2.0
= Q 4.3 :
: : :
1 1
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.17
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-300
PS CPU SM SM SM SM SM SM SM
模块
1 2 4 5 6 7 8 9 10 槽号
地址 0.0 地址 0.7 地址 1.0 地址 1.7
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.18
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
多层组态中的 多层组态中的 多层组态中的
多层组态中的 D的寻D类 D的寻D类 D的寻D类 D的寻D类
机架 0
槽 1 2 3 4 5 6 7 8 9 10 11 机架
3
96.0 to 99.7
100.0 to 103.7
104.0 to 107.7
108.0 to 111.7
112.0 to 115.7
116.0 to 119.7
120.0 to 123.7
124.0 to 127.7 IM
( 接受 )
PS
机架 2
64.0 to 67.7
68.0 to 70.7
72.0 to 75.7
76.0 to 79.7
80.0 to 83.7
84.0 to 87.7
88.0 to 91.7
92.0 to 95.7 IM
( 接受 )
PS
机架 1
IM
( 接受 )
32.0 to 35.7
36.0 to 39.7
44.0 to 47.7
48.0 to 51.7
52.0 to 55.7
56.0 to 59.7
60.0 to 63.7 40.0
to 43.7 PS
0.0 to 3.7
20.0 to 23.7
24.0 to 27.7
28.0 to 31.7 12.0
to 15.7
16.0 to 19.7 4.0
to 7.7
8.0 to 11.7 IM
( 发送 )
PS CPU
长沙工控帮教育科技有限公司整理Date: 2011/7/12 File No.: SSP1_03C.19
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-300
IM 256 to 270
336 to 350
352 to 366
368 to 382 304
to 318
320 to 334 272
to 286
288 to 302
( 器
槽口号 2 3 4 5 6 7 8 9 10 11
384
to 398
400 to 414
432 to 446
448 to 462
464 to 478
480 to 494
496 to 510 416
to 430 1
R 0
IM
( 器
CPU
512 to 526
528 to 542
544 to 558
560 to 574
576 to 590
592 to 606
608 to 622
624 to 638
2 IM
( 器
3 640
to 654
656 to 670
672 to 686
688 to 702
704 to 718
720 to 734
736 to 750
752 to 766 IM
( 器
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.20
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-300
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.21
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-300
PS 1
CPU 2
DI 16 4 0
DI 16 5 4
DO 16 6 8
DO 16 7 12
DI 16 8 16
DO 16 9 20
AI/AO4 10 352
模块 -->
槽号 -->
I/O 地址 -->
A 版 版 版 版
(16 通道 I/O 模块 )
PS 1
CPU 2
DI 32 4 0
DO 32 5 4
DI8/DO8 6 8
AI 2 7 304
模块 -->
槽号 -->
I/O 地址 -->
B 版 版 版 版
(32 通道 I/O 模块 )
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.22
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-400
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.23
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7-400
PS
缺省地址 :
CPU DI
32
28
18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 槽号
DI 32
32
DO 32
36
DO 32
40
AI 8
1216
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.24
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
V
0 8 1 5 AI1 AI2 AO1 AO2 AI1 AI2
-15V...+15V -15V...+15V
AI1 AI2 AO1
AO2
V
DI DO
.0 .1 .2 .3 .4 .5 .6 .7 .0 .1 .2 .3 .4 .5 .6 .7
.0 .1 .2 .3 .4 .5 .6 .7 .0 .1 .2 .3 .4 .5 .6 .7 ...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.25
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
INI 1 到 INI 3 ( 接近开关 )
M 1 ( 电机 )
H 1, H 2, H 3, H 4
( 发光二极管 ) S 1, S 2, S 3, S 4 ( 确认按钮 )
LB1 光电开关
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File No.: SSP1_03C.26
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
STEP 7
设计的地址区 设计的地址区 设计的地址区
设计的地址区 访问区域 访问区域 访问区域 访问区域 缩写 缩写 缩写 缩写 加在一起的最大区域 加在一起的最大区域 加在一起的最大区域 加在一起的最大区域
过程映象 过程映象 过程映象
过程映象 I/Q 输入 / 输出位 I / Q 0.0 --- 65,535.7
输入 / 输出字节 I / QB 0 --- 65,535 输入 / 输出字 IW / QW 0 --- 65,534 输入 / 输出双字 ID / QD 0 --- 65,532 存储器标志
存储器标志 存储器标志
存储器标志 存储器位 M 0.0 --- 255.7
存储器字节 MB 0 --- 255
存储器字 MW 0 --- 254
存储器双字 MD 0 --- 252
I/Q 外部输入 外部输入 外部输入 外部输入 / 输出 输出 输出 输出 I/Q 字节 , 外设 PIB / PQB 0 --- 65,535 I/Q 字 , 外设 PIW/PQW 0 --- 65,534 I/Q 双字 , 外设 PID/PQD 0 --- 65,532 定时器
定时器 定时器
定时器 定时器 (T) T 0 --- 255
计数器 计数器 计数器
计数器 计数器 (C) C 0 --- 255
数据块 数据块 数据块
数据块
数据块 (DB) DB 1---
65,532数据块 数据块 数据块
数据块
用OPN DB打开位, 字节, 字, 双字 DBX,DBB DBW,DBD
0
---
65,532用OPN DI打开
位, 字节, 字, 双字 DIX,DIB DIW,DID
0
---
65,532长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_04C.1
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
SIMATIC
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_04C.2
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
FB21
硬件 硬件 硬件 硬件
软件 软件 软件 软件 项目管理 项目管理 项目管理
项目管理
过程
OB1 SIMATIC 管理器
I1.0 I1.1 Q4.0
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_04C.3
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
STEP 7
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_04C.4
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
4存库构 4存库构 4存库构
4存库构
PG
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_04C.5
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
SIMATIC
或
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_04C.6
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
SIMATIC
标题栏 菜单栏 工具栏
状态栏
任务栏
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_04C.7
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
SIMATIC
Windows 95 符号 STEP 7 符号
显示可访问的接点 S7 存储器卡 下载 ( 到 PLC) 定义过滤器 选择的过滤器
仿真模块 (S7-PLCSIM)
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_04C.8
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
STEP 7
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_04C.9
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
SIMATIC
////长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_04C.10
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_04C.11
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
这里选择项 目名,用
“ OK ”确认。
长沙工控帮教育科技有限公司整理
Date: 2011/7/12 File: SSP1_04C.12
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
S7
长沙工控帮教育科技有限公司整理