Configuration Overview
长沙工控帮教育科技有限公司整理
System Example
M
TICA 2T101 CI
2T102 EI
2E101 UV
2U102 UV
2U101
UV 2U103 LAH
2L101
LAL 2L102
Heating
长沙工控帮教育科技有限公司整理
PCS Hardware
DP (ET 200M) DP (ET 200M)
AS (S7 417-4)
OS (PC with WinCC)
AS (S7 414-3) MPI/PROFIBUS/Ind. Ethernet
PROFIBUS-DP
Operating and Monitoring
Automating - Regulating - Controlling - Monitoring - Signaling
Distributed process signal converters
Sensors and actuators System Bus
DP bus ES (PC)
IM IM
S7ONLINE
长沙工控帮教育科技有限公司整理
PCS Software (ES)
STEP 7
•SIMATIC Manager
•LAD/FBD/STL
•Hardware Config
•S7DOS
•SYMBOL
•Signaling
•AS/OS integration (server)
CFC
(Continuous Function Chart Editor)
SFC/ IEA/TH Option PCS
•Create plant hierarchy
•sequential control system
• Instance editor
•Software generator
•Import/export
•Reference lists
NCM S7
Communication SCL
•Editor
•Compiler
•Debugger
Libraries
•Technological blocks
•Driver blocks
•Field device Blocks
Communication blocks WinCC
•Graphics editor
•Messages
•Trends
•Archive
•Logging DOKPRO
(Documentation) Im por
t
Export
长沙工控帮教育科技有限公司整理
Solution Principle (AS)
AI
DI
DO
MOD_x
MOD_x
MOD_x
MOD_x
SFC
CTRL_PID
Reactor Process
(reactor)
AO
etc.
Hardware Software
(The CFC wizard is used to create the module driver with diagnostics.)
(Other)
Possible process simulation LIB
LIB
LIB
LIB
LIB Graphic config. tool
Program.
SCL (I/O modules)
CH_AO
CH_AI LIB
LIB
(Channel drivers are connected individually with the measuring point in the CFC)
长沙工控帮教育科技有限公司整理
Solution Principle (AS)
AI
DI
DO
MOD_x
MOD_x
MOD_x
MOD_x
SFC
CTRL_PID
Reactor Process
(reactor)
AO
etc.
Hardware Software
(The CFC wizard is used to create the module driver with diagnostics.)
(Other)
Possible process simulation LIB
LIB
LIB
LIB
LIB Graphic config. tool
Program.
SCL (I/O modules)
CH_AO
CH_AI LIB
LIB
(Channel drivers are connected individually with the measuring point in the CFC)
长沙工控帮教育科技有限公司整理
Configuration Steps (AS)
Create project (SM*)
Create resources (SM view -> Component view)*
SM* - SIMATIC Manager
Create plant hierarchy (SM view -> Plant view
or
SM view -> Process object view)
Assign resources (SM both views)
Configure hardware (SM view
-> Component view)*
Software configuration (CFC,SFC,SCL,
messages)
Test+startup (configuration tools) Select block libraries/
create project-specific library
Documentation
长沙工控帮教育科技有限公司整理
Configuration Steps (OS)
OS setup/project editor
Create OS objects via Plant Hierarchy of Process Object view
SM* - SIMATIC Manager
OS compile and download
Test+startup (configuration tools)
Edit individual objects (images, reports) Create resources
(SM view -> Component view)*
Documentation
长沙工控帮教育科技有限公司整理
Configuring the Workstation
Un do ?
Too late...
长沙工控帮教育科技有限公司整理
PCS 7 Components
PC ES/OS
Terminal bus
System bus Application
WinCC Application CP 1613
PC OS
WinCC Application CP 1613
NET-Pro Set PC station
Station Configuration Editor (SCE)
PLC 01 C
P U
C P P
S PLC
02 C
P U
C P P
S
Hardware Config
长沙工控帮教育科技有限公司整理
Configuring the PC Station (Overview)
Hardware description on the PC station
Hardware description in the PCS 7 project
Actual configuration Setpoint configuration
With
"PG operation"
Commissioning Wizard
Set up PC station
CP y CP x 1
2 of the
WinCC Application CP x
CP y
Station Manager Station
Configuration Editor
1 2 3 4
125
Index/type 3
With "productive operation"
of the
WinCC Application CP x
CP y
Station Manager 1
2 3 4
125
Index/type
Hardware Config of the PC station
4
长沙工控帮教育科技有限公司整理
Configuring the PC Station (Overview)
Hardware description on the PC station
Hardware description in the PCS 7 project
Actual configuration Setpoint configuration
With
"PG operation"
Commissioning Wizard
Set up PC station
CP y CP x 1
2 of the
WinCC Application CP x
CP y
Station Manager Station
Configuration Editor
1 2 3 4
125
Index/type 3
With "productive operation"
of the
WinCC Application CP x
CP y
Station Manager 1
2 3 4
125
Index/type
Hardware Config of the PC station
4
长沙工控帮教育科技有限公司整理
Commissioning Wizard
Screen number
长沙工控帮教育科技有限公司整理
Commissioning Wizard
Screen number
长沙工控帮教育科技有限公司整理
Commissioning Wizard (2)
长沙工控帮教育科技有限公司整理
Commissioning Wizard (3)
长沙工控帮教育科技有限公司整理
Set PC Station (Modules)
长沙工控帮教育科技有限公司整理
Set PC Station (Access Point)
长沙工控帮教育科技有限公司整理
SCE (Station Configuration Editor)
长沙工控帮教育科技有限公司整理
Project Structure
长沙工控帮教育科技有限公司整理
Project Environment
Plant 1
Starting materials
Plant 2 Colors
长沙工控帮教育科技有限公司整理
Our Installation (Plant 2)
Tank Storage North
Re actor A Re actor B Re actor C Re actor D
Tank Storage East
Shipping Control
building
(CS =
Common Systems) CS: Heat
CS: Cool
Reac A+B Reac C+D
Tank stor. N
Tank stor. S Tank stor. E Shipping CS:
Clean AS8
AS7 AS6 AS5 AS4
AS3 AS2 AS1 Tank Storage South
Plant 1 Plant 2
长沙工控帮教育科技有限公司整理
Assigning the Plant Hierarchy
In the exercise use
your AS instead of AS03 and your neighbor's AS instead of AS07 Use your PC as OS/ES
Pict.
Pict.
CFC
AS01 AS02 AS03 AS04 AS05 AS06 AS07 AS08 Pict.
Pict.
Pict.
Level 1
Level 2
Level 4 Level 3
长沙工控帮教育科技有限公司整理
Assigning the Plant Hierarchy
In the exercise use
your AS instead of AS03 and your neighbor's AS instead of AS07 Use your PC as OS/ES
Pict.
Pict.
CFC
AS01 AS02 AS03 AS04 AS05 AS06 AS07 AS08 Pict.
Pict.
Pict.
Level 1
Level 2
Level 4 Level 3
长沙工控帮教育科技有限公司整理
Plant View - Settings/Properties
1
2
3
长沙工控帮教育科技有限公司整理
Plant View - Settings/Properties
1
2
3
长沙工控帮教育科技有限公司整理
HID Generation
1 2
3 4
5
7
HID on ES = 111\222\333\444\\555\666
6
HID on OS = 111/222/333/444/555/666 Combination is selectable
Process tag on OS = 111/222/333/444/555/666. 777 777
长沙工控帮教育科技有限公司整理
OS Hierarchy (PLC/OS)
WinCC CS WinCC RT
SIMATIC Manager
长沙工控帮教育科技有限公司整理
OS Hierarchy (Picture Structure)
Tank storage Reactors Shipping
Overview of the reactors (REACTOR.PDL)
Details
(if necessary)
ComSyst
M M M
Reactors Unit A,B,C,D (UnitA.PDL...)
A S
Group display
长沙工控帮教育科技有限公司整理
Exercise: Create Project (1-Type)
Screen number
Preview (example only) Settings
长沙工控帮教育科技有限公司整理
Exercise: Create Project (2-CPU)
CPU modules supported by PCS 7
长沙工控帮教育科技有限公司整理
Exercise: Create Project (3-Objects)
长沙工控帮教育科技有限公司整理
Exercise: Create Project (4-Project Name)
Directory name
= Part of the project name
Here you select the storage directory
长沙工控帮教育科技有限公司整理
Exercise: Create Project (5-Message Numbers)
长沙工控帮教育科技有限公司整理
Exercise: Display Language
长沙工控帮教育科技有限公司整理
Create Project (6-Views)
Multiproject Part project
PLC
Objects of the selected or opened directory/container/program or of the station
OS as PC station Master data library
Part project structured acc. to plant view Component view
Plant hierarchy
长沙工控帮教育科技有限公司整理
Process Object View
长沙工控帮教育科技有限公司整理
Names in the Component View
AS designation
The S7 program name is displayed in WinCC as a substitute for the AS
Computer name
OS name
S7 program name for the library
长沙工控帮教育科技有限公司整理
HW Config
长沙工控帮教育科技有限公司整理
Configurable Components
AS OS
长沙工控帮教育科技有限公司整理
Adapting HW Config
1
2
3
长沙工控帮教育科技有限公司整理
Adapting HW Config
1
2
3
长沙工控帮教育科技有限公司整理
Exercise: AS HW Config (Central AS)
CP DP CPU
417-4DP
PS IM
153-2
SM
SM SM SM
MPI DP
ET 200M ( UR1 or UR2) CP
Eth PS 407
Slot 1 3 5 6
PROFIBUS address
X1 X2
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
Exercise: AS HW Config (PROFIBUS DP CiR Compatibility)
PS 407 CPU 417-4DP
PS IM 153-2
SM
SM SM SM
MPI
DP
PROFIBUS- address ET 200M
( UR1 or UR2) CP
DP CP Eth
CiR
长沙工控帮教育科技有限公司整理
Exercise: AS HW Config
(PROFIBUS DP Set Parameters for CiR Object)
10 x 244 = 2240 I / 2240 O Max. bytes
per slave
Must be made available as PII/PIQ via the
CPU properties!
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
Exercise: AS HW Config
(Set Parameters for PROFIBUS DP CiR Module)
长沙工控帮教育科技有限公司整理
DP master buffer
Inputs
Out- puts
Exercise: AS HW Config (CPU process image partition)
AI P
I P 1 DO
P I P 2 IM
153 PIPI1
OB32
PIPO1
PIPI2
OB35
PIPO2
OB32 PIP1
OB35 PIP2
CPU OS
1 2
3 PIP process image partition
= PIPI (inputs)
+
PIPO (outputs)
Trt
长沙工控帮教育科技有限公司整理
DP master buffer
Inputs
Out- puts
Exercise: AS HW Config (CPU process image partition)
AI P
I P 1 DO
P I P 2 IM
153 PIPI1
OB32
PIPO1
PIPI2
OB35
PIPO2
OB32 PIP1
OB35 PIP2
CPU OS
1 2
3 PIP process image partition
= PIPI (inputs)
+
PIPO (outputs)
Trt
长沙工控帮教育科技有限公司整理
Exercise: AS HW Config
(Driver Concept/Symbolic Channel Names)
CP DP CPU
417-4DP
PS IM 153-1
SM
SM SM SM
MPI
DP
PROFIBUS addr.
(UR1 or UR2) CP
Eth PS 407
T P A 1
T P A 1
T P A 1
T P A 1 OB 32 <-> PIS 1
OB 35 <-> PIS 2
Name_channel_0 Name_channel_1
长沙工控帮教育科技有限公司整理
Exercise: AS HW Config
(Driver Concept/Symbolic Channel Names)
CP DP CPU
417-4DP
PS IM 153-1
SM
SM SM SM
MPI
DP
PROFIBUS addr.
(UR1 or UR2) CP
Eth PS 407
T P A 1
T P A 1
T P A 1
T P A 1 OB 32 <-> PIS 1
OB 35 <-> PIS 2
Name_channel_0 Name_channel_1
长沙工控帮教育科技有限公司整理
Compiling and Downloading the AS HW Config
Downloading the Hardware Configuration only takes place after the following steps have been carried out with NetPro:
The network configuration has been carried out and
connections from the ES to other stations (PC, AS) were set up.
Connections were also configured between the devices (AS, OS) to allow data exchange during process runtime.
Go to the chapter on NetPro first
长沙工控帮教育科技有限公司整理
Exercise: SIMATIC PC Station/OS HW Config
长沙工控帮教育科技有限公司整理
Exercise: SIMATIC PC Station/OS HW Config
Station Configuration Editor was created with PCS 7 when
the PC was installed.
Is configured according to the subsequent use of the PC as ES and/or OS
SIMATIC PC station HW Config is configured in the project in the SIMATIC Manager and downloaded to the target PC.
长沙工控帮教育科技有限公司整理
Compiling and Downloading the OS HW Config
Downloading the Hardware Configuration only takes place after the following steps have been carried out with NetPro:
The network configuration has been carried out and
connections from the ES to other stations (PC, AS) were set up.
Connections were also configured between the devices (AS, OS) to allow data exchange during process runtime.
Go to the chapter on NetPro first
长沙工控帮教育科技有限公司整理
Exercise: Download the AS HW Config to the PLC (1)
CP DP CPU
417-4DP
DP
UR1 or UR2 CP
Eth PS 407
MPI Ind. Ethernet
1 2
1
2
长沙工控帮教育科技有限公司整理
Exercise: Download the AS HW Config to the PLC (2)
1
3
长沙工控帮教育科技有限公司整理
Exercise: Download the AS HW Config to the PLC (Check CiR Compatibility - 1)
长沙工控帮教育科技有限公司整理
Exercise: Download the AS HW Config to the PLC (Check CiR Compatibility - 2)
长沙工控帮教育科技有限公司整理
Exercise: Download the AS HW Config to the PLC (Check CiR Compatibility - 3)
长沙工控帮教育科技有限公司整理
?
Exercise: Download PC Configuration
Download to target
长沙工控帮教育科技有限公司整理
Network Configuration (NetPro)
长沙工控帮教育科技有限公司整理
Network Structure
DP segment DP segment
System bus (ISO) Terminal bus (IP) MPI
ES OS terminals
OS servers
AS
ET200
长沙工控帮教育科技有限公司整理
Calling Up NetPro
长沙工控帮教育科技有限公司整理
S7 Connections (Connection Partners)
长沙工控帮教育科技有限公司整理
S7 Connections (Properties)
Viewed from the AS (CPU)
Viewed from the ES (application)
长沙工控帮教育科技有限公司整理
S7 Connections (Stations)
长沙工控帮教育科技有限公司整理
S7 Connections (Download)
Select stations using Ctrl key
长沙工控帮教育科技有限公司整理
Notes
长沙工控帮教育科技有限公司整理
S7 Connections (Stations in Unknown Projects)
长沙工控帮教育科技有限公司整理
Configuring Functions with CFC
CFC CFC
WinCC WinCC WinCC
Integrated message functions Consistent connection
Alarm MKZ X
17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We Acknowledge only A,W,T
ASO
Limits
MKZX
MEAS_MON
+160.0
+140.0
+120.0
Alarm
Alarm
ASO
act.
+
165.0
HH
+
150.0
H
+
120.0
L
+
110.0
LL
range range
LL +
180.0
+
100.0
UL MEAS_MON
Mes sage Ser ver Mes sage Ser ver Mes sage Ser ver ProV ar S erve r ProV ar S erve r ProV ar S erve r
Face plate s Face plate s Face plate s
Bloc k
Bloc k conc ept conc ept
长沙工控帮教育科技有限公司整理
Configuring Functions with CFC
CFC CFC
WinCC WinCC WinCC
Integrated message functions Consistent connection
Alarm MKZ X
17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We 17. 11. 96 14:32:46 Type Alarmtext We Acknowledge only A,W,T
ASO
Limits
MKZX
MEAS_MON
+160.0
+140.0
+120.0
Alarm
Alarm
ASO
act.
+
165.0
HH
+
150.0
H
+
120.0
L
+
110.0
LL
range range
LL +
180.0
+
100.0
UL MEAS_MON
Mes sage Ser ver Mes sage Ser ver Mes sage Ser ver ProV ar S erve r ProV ar S erve r ProV ar S erve r
Face plate s Face plate s Face plate s
Bloc k
Bloc k conc ept conc ept
长沙工控帮教育科技有限公司整理
Integrating Libraries
Block
Chart template
Project window OB32 (Start)
(Master data) library
in the multiproject (Standard) libraries
with PCS 7 V6
长沙工控帮教育科技有限公司整理
Integrating Blocks
LIBRARY1 LIBRARY2 BLOCK_X
Project window Libraries
Block_X
OB32 (Start)
Predecessor for installation Charts
Symbols
Block
长沙工控帮教育科技有限公司整理
Organization Blocks
OB1
OB10 to 17 OB20 to 23
OB30 to 38
OB40 to 47
OB80 to 87 OB100,101
OB121,122
OB Start event Priority
1 Free cycle 1
10...17 Time-of-day interrupt 2 20...23 Time-delay interrupt 3...6 30...38 Time interrupt 7...15 40...47 Process interrupt 16...23 55...57 DPV1 interrupts 2
60 Multi-computing 25
70...73 Red. error (H-CPU) 25 80...87 Async. error al. 26,28
100,101 Startup 27
121,122 Synchr. error al. like error- generating OB
(See system software for S7-300/400, System and Standard Functions)
S7 OS
*
*
** **
* User-/process-specific start event
** CFC-/block-specific start event
长沙工控帮教育科技有限公司整理
CFC Basics
Header 2 Header 1
I11 O11
I21 O21 I22
Menu bar / toolbar
S heet bar S heet bar
Blocks
Interconnection
Parameterization 123
Window with available Libraries, charts and Blocks BIB1 BIB2 BSTX BSTY
BL CH LIB OB32 (Start)
长沙工控帮教育科技有限公司整理
The First Blocks
• Configuration
• Compile and download objects
• Test
0 50 100
-t U
V
0 50 100
-t V
30 U2
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
Compiling and Downloading the Program
Settings for compile and download
(dialog box with 2 tabs)
Preselect
Start compile/download acc. to preselection
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
Exercise: Controlling a Value
V Interconnectable
input for U
Operator input Analog
OP_EN U_HL U_LL LINK_U LINK_ON BTRACK U
OP_A_LIM
V Interconnectable
input for U
Operator input Analog Operator enable
Limits
长沙工控帮教育科技有限公司整理
Run Sequence
OB32 (cyclic interrupt) 1sec
Runtime group 1
Runtime group 2
Block 1
Block n - Scan rate - Phase offset Runtime group
Runtime group 3
长沙工控帮教育科技有限公司整理
Run Properties of OBs and Runtime Groups
t (s)
100 100
100 100
200 200
100 100
400
300
300 200 200
400
100 100
0,5 OB33 (0.5s)
100 ms OB32 (1s) 300 ms OB31 (2s) 600 ms OB1
0 1 1,5 2
长沙工控帮教育科技有限公司整理
Exercise: Optimize Run Sequence
Optimize
长沙工控帮教育科技有限公司整理
Block Diagram of a Motor Control System
Motor block
AUT_ON_OP AUT_L
MONITOR
FB_ON Time
monitoring
QRUN
Q_MON_R
RESET Control
logic
Operator screen
LIOP_SEL
QSTART
CH_DO CH_DI
M DI DO
Feedback signal
Switching command AUTO_ON
MAN_ON 0
1
1 0
长沙工控帮教育科技有限公司整理
Driver Concept (from V5)
CH_DO CH_AI
VALUE VHRANGE VLRANGE V 200
0 PV_IN
QCONTROL
Digital Output
0 / 24 V Channel 1 (Signame_Y) Analog Input
T I
4...20mA 0...200°
C
VALUE I
Channel 0 (Signame_X)
Signame_X Signame_Y
Hardware config.
Symbol table
Signame_X Signame_Y
SUBNET
MOD RACK MOD
CFC charts with module drivers
CFC chart with application
PIS=n PIS=n
MODE MODE
长沙工控帮教育科技有限公司整理
Driver Concept (from V5)
CH_DO CH_AI
VALUE VHRANGE VLRANGE V 200
0 PV_IN
QCONTROL
Digital Output
0 / 24 V Channel 1 (Signame_Y) Analog Input
T I
4...20mA 0...200°
C
VALUE I
Channel 0 (Signame_X)
Signame_X Signame_Y
Hardware config.
Symbol table
Signame_X Signame_Y
SUBNET
MOD RACK MOD
CFC charts with module drivers
CFC chart with application
PIS=n PIS=n
MODE MODE
长沙工控帮教育科技有限公司整理
Template for a Motor Control System - From the Standard Library
长沙工控帮教育科技有限公司整理
Template for a Motor Control System - From the Standard Library
长沙工控帮教育科技有限公司整理
Exercise: Read In and Output and Analog Value
In the test installation:
Analog output and analog input are connected to one another via the hardware
长沙工控帮教育科技有限公司整理Program and Data
OBm FBy,DBy1 FBy,DBy2 FCz
FBy
DBy1
OB...? DBy2 (OBm)
(OBn)
(Instance DB for FBy declaration)
Code Declaration
(Instance DB for FBy declaration)
m,n,y,y1,y2,z = numbers
m
n
长沙工控帮教育科技有限公司整理
Data Transport
X Y
OBx Block 1
X Y
Block 2
X Y
Block n OS
Operation Time (run sequence)
Connection (fetch principle) f
f
f
长沙工控帮教育科技有限公司整理
Block Libraries, Part 1
PLC OS
SP=
12.3
AUTO
10%
Trends Messages Operating
Inputs O u tputs
A lgori thm
FB / FC
Technological blocks Elementary blocks
Driver blocks
Communication blocks
长沙工控帮教育科技有限公司整理
Block Libraries, Part 2
Standard Library
Inputs O u tputs
A lgori thm
SFB / SFC
PLC
长沙工控帮教育科技有限公司整理
Control Loop
CTRL_PID
CH_AI CH_AO
Reactor plant
AI AO
AS software
System
I/O modules Technical Control Loop
CTRL_PID
CH_AI CH_AO
AI AO
AS software
System
I/O modules
Simulated Control Loop
Reactor block Manip. var.
Temperature
Manip. var.
Temp.
Reactor plant Manip. var.
PV_IN LMN
长沙工控帮教育科技有限公司整理
Reactor Simulation (Filling)
Reactor (Filling + Mixing)
BO V1_OP_CL
BO V2_OP_CL
BO V3_OP_CL
BO M1_ON_OF
R V1_FLOW
R V2_FLOW
R V3_FLOW
R KFV
OVERFLOW BO
LEVEL R UV
2U102 UV 2U101
UV 2U103
EI 2E101
LAH 2L101
LI 2L104 FB_V1_OP BO
FB_V1_CL BO
FB_V2_OP BO
FB_V2_CL BO
FB_V3_OP BO
FB_V3_CL BO
MOTOR_ON_OFF BO BO V_RESET
长沙工控帮教育科技有限公司整理
Reactor Simulation (Heating)
Reactor (Heating + General)
R V_HOT_FL
R TMP_ENV
R TMP_HOT
R T_LAG_SH
R T_LAG_IN
R SAMPLE_T
BO RS_COOL
BO SET_HOT
TMP_SHEL R
TMP_INT R TICA
2T102 CI
2T101 Heating
长沙工控帮教育科技有限公司整理
CTRL_PID (with LINK)
PID
LMN SPEXTSEL_OP 0
SP_OP SP_EXT
PV_IN MAN_OP
AUT_ON_OP 0
INT 0 EXT 1
AUT 1 MAN 0
+ -
SPEXT_EN
SP_OP_ON
LMNOP_ON
AUTOP_EN SPINT_EN
MANOP_EN Enable Parameter:
DEADB_W GAIN
TN TV TM_LAG
AUT_L 1 LIOP_MAN_SEL SPEXON_L 1
LIOP_INT_SEL LMN_TRK LMN_SEL
Have to be active(=1)
0 1
长沙工控帮教育科技有限公司整理
R V_HOT_FL 0 ... 100
Reactor Simulation (Summary)
M
Heating V1_OP_CL
V2_OP_CL
V3_OP_CL
M1_ON_OF
TMP_SHEL TMP_INT LEVEL
0....100
FB_V2_OPEN FB_V2_CLOSE
FB_V1_OPEN FB_V1_CLOSE
FB_V3_OPEN FB_V3_CLOSE
MOTOR_ON
长沙工控帮教育科技有限公司整理
Exercise: Control Loop for the Reactor
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
Message Configuration
Message text
Hierarchy identification, where the message originated
Message attribute for the OS area
Message class
长沙工控帮教育科技有限公司整理
Message Configuration
Message text
Hierarchy identification, where the message originated
Message attribute for the OS area
Message class
长沙工控帮教育科技有限公司整理
Notes
长沙工控帮教育科技有限公司整理
CFC Chart in Chart
Chart "A" (higher-level chart)
"X"
Chart "X" (lower-level chart) Cha rt in
terc onn ectio ns
长沙工控帮教育科技有限公司整理
Exercise: Chart-in-Chart Technique: Create Lower-Level Chart
Chart in te rc o n n ecti o ns
Lower-level chart "Chart_x"
长沙工控帮教育科技有限公司整理
Exercise: Chart-in-Chart Technique: Create Lower-Level Chart
Chart in te rc o n n ecti o ns
Lower-level chart "Chart_x"
长沙工控帮教育科技有限公司整理
Exercise: Chart-in-Chart Technique: Create Higher-Level Chart
Higher-level chart "Valve test"
Insert in the higher-level chart from here
Manual valve operation
Run sequence:
长沙工控帮教育科技有限公司整理
Exercise: Chart-in-Chart Technique: Create Higher-Level Chart
Higher-level chart "Valve test"
Insert in the higher-level chart from here
Manual valve operation
Run sequence:
长沙工控帮教育科技有限公司整理
Exercise: Test with Dynamic Display
长沙工控帮教育科技有限公司整理
Exercise: Test with Dynamic Display
长沙工控帮教育科技有限公司整理
Exercise: Program Block with CFC (1)
Specify new chart interconnections CFC chart "Chart_x"
Insert new block
长沙工控帮教育科技有限公司整理
Exercise: Program Block with CFC (2)
Comment must be added manually
长沙工控帮教育科技有限公司整理
Exercise: Program Block with CFC (2)
Comment must be added manually
长沙工控帮教育科技有限公司整理
Block Data Structure (Multiple Instance)
Symbolic name of FB40
Place for instance of an INT_P block
Inputs, outputs, input and output parameters for the sheet bar
长沙工控帮教育科技有限公司整理
Block Change (1)
Result A
Result B
长沙工控帮教育科技有限公司整理
Block Change (1.1)
Different libraries in the multiproject:
Original version
Test chart for block with change Modified version
长沙工控帮教育科技有限公司整理
Block Change (1.2)
Drag and drop Trial for instance V1.1
Instance V1.0
长沙工控帮教育科技有限公司整理
Block Change (1.3)
长沙工控帮教育科技有限公司整理
Block Change (1.4)
The new block version is transferred to the chart folder
长沙工控帮教育科技有限公司整理
Block Adjustment (2)
长沙工控帮教育科技有限公司整理
Block Adjustment (2.1)
长沙工控帮教育科技有限公司整理
Block Change with Library and Project Adjustment (1)
Changes to the parameter properties
长沙工控帮教育科技有限公司整理
Block Change with Library and Project Adjustment (2)
长沙工控帮教育科技有限公司整理
Block Change with Library and Project Adjustment (3)
The new block version is transferred to the project
长沙工控帮教育科技有限公司整理
Creating Process Tag Types
Tem
pl at e f or va lv e c ont
rol
Import file for measuring points
Process tag types Setpoint configuration
Importing process tags
in the project
长沙工控帮教育科技有限公司整理Exercise: Create Process Tag Types, Import them in the Project (1)
Start "Wizard" -> Continue -> I/O Points to select parameters/signals and messages from
blocks on the chart
长沙工控帮教育科技有限公司整理
Exercise: Create Process Tag Types, Import them in the Project (2)
1
2 3
长沙工控帮教育科技有限公司整理
AS-to-AS Communication
Controller for reactor heating
SP_EXT SP AS-to-AS Communication
Communication blocks Connection
SEND_R REC_R
REC_R SEND_R
OP_EN U_HL U_LL LINK_U LINK_ON BTRACK U
OP_A_LIM
Interconnectable input for U
Operator input analog Operator enable
Limits
V
Received setpoint can be processed
Partner A Partner B
长沙工控帮教育科技有限公司整理
Communication Blocks for AS-to-AS Communication
Partner 1 Partner 2
Partner 1 or Partner 2
长沙工控帮教育科技有限公司整理
Configuring Sequences with SFC
长沙工控帮教育科技有限公司整理
Overview
Menu bar
START
END S1
S2 S3
S4 T1
T2
T3
T4
S1...S4 Steps T1...T4 Transitions Step symbols
长沙工控帮教育科技有限公司整理
Sequence Structures
S1
T12
S2
T23 Linear
S21 S22
T23 T12 Parallel
S2 S3
T12 T13
T24 T34
Alternative
S2 T2
T23 Loop
S3 S4 S3
S1 S1
T12 S1
S2
T2
T23 Jump
S3 T12
S1
S3
长沙工控帮教育科技有限公司整理
Action and Transition
Step active
Transition fulfilled
Cycles ->
Cycles ->
长沙工控帮教育科技有限公司整理
Operating Mode Logic for a Given Sequence Control
Step Control Modes T with Transition
T or C with Transition or Confirmation by User T and C with Transition and Confirmation by User C with Confirmation by User
T/T and C with Step specific Confirmation by operator
Operating modes
Operator commands
长沙工控帮教育科技有限公司整理
Exercise: Sequence Control - Temperature
START L<33 SP=70
H>67 SP=50
L<53 SP=30
L<32 END 70
50
30
SP_EXT PV_IN
t
Step enabling condition:
Process value PV_IN less than 33?
Step enabling condition:
Process value PV_IN greater than 67?
Action:
Set setpoint SP_EXT to 70
• Linear sequence
• Conditions in transitions
• Actions in steps
• Test
Start step
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
SFC Operating Mode Logic
Command buttons for SFC Test
长沙工控帮教育科技有限公司整理
SFC - Operational Sequence
M
Cy cl e of SF C Cyc le of CFC
长沙工控帮教育科技有限公司整理
External View of SFC
长沙工控帮教育科技有限公司整理
Sequence Control - Reactor
Move to basic position- Reactor C empty and cold
First component X fill up to Level 20 %
Speed Monitor Mixer on Speed Monitor
Mixer on
Level >= 80%
Core temperature 90 Degr.
Process temp reached
Settle Time 2 Min
Open drain valve, mixer off, shut down temperatur controller
Second component Y fill up to level 80 %
End step Level >= 20%
cold and empty
Tolerance Temp controller reached
End Basic pos. reactor empty + cold
长沙工控帮教育科技有限公司整理
Notes
长沙工控帮教育科技有限公司整理
Exercise: Modification to Reactor Sequence Control
Move to basic position- Reactor C empty and cold
First component X fill up to Level 20 %
Speed Monitor Mixer on Speed Monitor
Mixer on
Level >= 80%
Core temperature 90°
Process temp reached
Settle Time 2 Min
Opendrain valve, mixer off, shut down temperature
controller
Second component Y fill up to Level 80 %
End step Level >= 20%
cold and empty
Tolerance Temp controller reached
End Basic pos. reactor empty + cold
长沙工控帮教育科技有限公司整理
Exercise: Adding a Second Sequencer to the Sequential Control
Transition main-sequence
Transition hold-sequence
DB SFC_ReacC
Ensure state Safe state
Command output Set operating modes for operation
Restore state HOLD!
长沙工控帮教育科技有限公司整理
Hold Sequencer with Data Block for Values to be Saved
"Normal" reactor sequencer END
(restore) NOT_HOLD
START (save)
长沙工控帮教育科技有限公司整理
Preprocessing and Postprocessing for Sequencers
Possible for every single sequencer
长沙工控帮教育科技有限公司整理
Creating an SFC Type
Several sequencers possible for one SFC type
长沙工控帮教育科技有限公司整理
Creating an SFC Instance
Operating Modes
Commands
Command enable
Interlock
Control strategies Step Control Mode
Operation Options
Operating Mode Operating Mode
Group Display Error Display
Control strategies
长沙工控帮教育科技有限公司整理
Miscellaneous Reference Data
Run Sequence
长沙工控帮教育科技有限公司整理
Miscellaneous Reference Data
Run Sequence
长沙工控帮教育科技有限公司整理
Creating New Blocks with SCL
SFC CFC
SCL
WIN CC
Database Database
Y2
V5 V4
V3 0000.0MBAR P4
0000.0MBAR P5
0000.0MBAR P6
0000.0MBAR P1
INERTGAS
ABLUFT1
ABLUFT2
ABLUFT3 V6 V1 Y1
V2
PC MBAR
% A10000.0 Reaktor 01 0000.0
% 000.0
% 000.0
0000.0
produkt M1 R1 0000 0000
F1
Libra ry
长沙工控帮教育科技有限公司整理
Overview
High-level language for defining own function blocks
PASCAL-type syntax, therefore very powerful
Compiler and debugger are
system components
Definition of the block name, the input parameters and output parameters, including the default values
Algorithm description in structured text
Block compilation and debugging Inserting into the existing block library Using the block in the CFC Editor SCL
长沙工控帮教育科技有限公司整理
User Block: Structures
Block type Block attribute VAR_INPUT VAR_OUPUT VAR_IN_OUT VAR
VAR_TEMP
Algorithm
IF CASE
FOR WHILE REPEAT
CONTINUE EXIT
GOTO RETURN FB
FC OB DB UDT
?
长沙工控帮教育科技有限公司整理
Demonstration: Arithmetic Block
ARIT
Arithmetic block
R X2
R X1 Y R
• SCL source
• Templates
• Variable declaration
• Algorithm
• Compile + Load
• Test
R X3
长沙工控帮教育科技有限公司整理
Menu Insert
-> Block Template OB
FB FC
Comment Constant Parameter DB
Instance DB
DB Referencing UDT UDT
-> Control Structure IF
CASE FOR WHILE REPEAT
长沙工控帮教育科技有限公司整理
Menü Einfügen
长沙工控帮教育科技有限公司整理
User Block: Startup Characteristics
OB n
FBx FBx
SFC6 RD_SINFO
OB
Star tu p Cy clic interrupt Sp ecia l ca se
OB m FBx
n
m
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
Compiler and Debugger
Project
S7 station
CPU
S7 program
Sources
Blocks
SCL 1. Edit block.
2. Compile.
3. Load in the CPU.
Symbols
4. Debug.
长沙工控帮教育科技有限公司整理
Appendix: Source Texts
Simulation block REACTOR
•
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理
Multiproject
长沙工控帮教育科技有限公司整理
PCS 7- Multiproject
PC Server ES
Terminal bus System bus PC
ES1
PLC 01 C
P U
C P P
S PLC
02 C
P U
C P P
S
PC ES2
PC OS Multiproject
Project1 Project2 Project3
Master data library
长沙工控帮教育科技有限公司整理
Creating Multiprojects
ES server
or +
MP P1 P2 LIB
ES server MP P1
LIB
ES-x
P2 MP = Multiproject, stored on the hard disk of the server ES
P1 = Project within the MP, stored on the server ES
P2 = Project within the MP, stored (alternatively) on the server ES or on the distributed ES LIB = Master data library, within the MP
长沙工控帮教育科技有限公司整理
Multiproject (Moving and Editing the Project)
ES server MP P1
P2 LIB
ES-x
P2
ES server MP P1
Link LIB
ES-x
P2- P2 old
Save as:
•Without reorganization
•Insert in MP
•Select current MP
•Replace current project
•UNC path 1. Move
2. Edit
长沙工控帮教育科技有限公司整理
Multiproject (Save/Archive MP - 1)
ES server MP P1
P2 link LIB
ES server Save as:
•Without / with reorganization Save
Archive
MP1 P1 P2 LIB
ES server MP P1
P2 link LIB
P2 link
ES server MP.ZIP
P1 P2 LIB
长沙工控帮教育科技有限公司整理
Multiproject (Save/Archive MP - 2)
Windows taskbar
长沙工控帮教育科技有限公司整理
Multiproject (Sending Back Single Projects)
ES server MP P1
P2 LIB
ES-x
P2 ES server
MP P1 P2 link
LIB
ES-x
P2- P2 old
3. Save as:
•Without reorganization
•Insert in MP
•Select current MP
•Replace current project
•UNC path
4. Result
1. Close P2 2. Delete P2-old (not the link in the MP!)
长沙工控帮教育科技有限公司整理