SlideShare a Scribd company logo
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.1
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Configuring Functions with CFC
CFCCFC
WinCCWinCC
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 alarm text We
17. 11. 96 14:32:46 type alarm text We
17. 11. 96 14:32:46 type alarm text We
17. 11. 96 14:32:46 type alarm text We
17. 11. 96 14:32:46 type alarm text We
17. 11. 96 14:32:46 type alarm text We
17. 11. 96 14:32:46 type alarm text We
Acknowledge only A,W,T
ASO
Limits
MKZ X
MEAS_MON
+160.0
+140.0
+120.0
Alarm
Alarm
A S O
act.
+165.0 HH
+150.0 H
+120.0 L
+110.0 LL
rangerange
LL
+180.0
+100.0
UL
MEAS_MON
Message Server
Message Server
ProVar Server
ProVar Server
Faceplates
Faceplates
Block Concept
Block Concept
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.2
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.3
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Integrating Libraries
Block
Chart template
Working window OB32 (Start)
(Master data) library
in the multiproject (Standard) libraries
with PCS 7 V7.0
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.4
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Block Libraries, Part 1
AS OS
SP=
12.3
AUTO
10%
Trend Curves
Alarms
Operation
Inputs
Outputs
Algorithm
FB / FC
Technological Blocks
Elementary Blocks
Driver Blocks
Communication Blocks
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.5
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Block Libraries, Part 2
Standard Library
Inputs
Outputs
Algorithm
SFB/SFC
AS
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.6
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Integrating Blocks
LIBRARY1
LIBRARY2
BLOCK_X
MASTER DATA
Working window Libraries
Block_X
OB35 CFC(1) (Start)
Predecessor for installation
in the chart
Charts
Icons
Block
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.7
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
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 Cyclic interrupt 7...15
40...47 Process interrupt 16...23
55...57 DPV1 interrupts 2
60 Multicomputing 25
70...73 Red. error (H-CPU) 25
80...87 Async. error interrupt
26,28
100,101 Restart 27
121,122 Sync. error interrupt
like error- generating
OB
(see system software for S7-300/400,
System and Standard Functions)
S7
OS
*
*
****
* User-/process-specific start event
** CFC-specific/block-specific start event
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.8
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
CFC Basics
Header 2
Header 1
I11 O11
I21 O21
I22
Menu bar
Sheetbar
Sheetbar
Modules
Interconnection
Configuration
123
Window with
available
libraries,
charts and
blocks
BIB1
BIB2
BSTX
BSTY
BL CH LIB
OB35 CFC(1) (Start)
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.9
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Exercise: The First Blocks
• Configuration
• Compile and download objects
• Test
0
50
100
t
U
V
0
50
100
t
V
U2
30
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.10
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Predecessor for Installation
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.11
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Insert Block
2
1
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.12
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.13
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Compiling and Downloading the Program
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.14
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.15
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Debugging a Program
Dynamic display
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.16
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Exercise: Controlling a Value
Interconnectable
input for U
Operator input
analog
Operator-
Control Enable
Limits
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.17
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Exercise: Automate Reactor Plant A
M
MOTOR
VALVE
CTRL_PID
VALVE
VALVE
Heating
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.18
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
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 CFV
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
FB_M1_ON BOBO V1_FAULT
BO V2_FAULT
BO V3_FAULT
BO M1_FAULT
BO V_RESET
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.19
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
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
TI
2T101Heating
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.20
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
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
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.21
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Subexercise: REACTOR Block
Switch views
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.22
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Block Diagram of a Valve Control System
Valve block VALVE
AUT_L
AUT_ON_OP
MONITOR
FB_OPEN
Time
monitoring
QCLOSED
Q_MON_ERR
RESET
Control
logic
Operating screen
LIOP_SEL
QCONTROL
CH_DOCH_DIvalve
DI DO
Feed-
backs
Switching command
AUTO_OC
MAN_OC 0
1
0
1
FB_CLOSE
CH_DI
QOPEND
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.23
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Subexercise: VALVE Block
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.24
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Block Diagram of a Motor Control System
Motor block
AUT_ON_OP
AUT_L
MONITOR
FB_ON
Time
monitoring
QRUN
Q_MON_ERR
RESET
Control
logic
Operating screen
LIOP_SEL
QSTART
CH_DOCH_DI
M DI DO
Feedback
Switching command
AUTO_ON
MAN_ON 0
1
1
0
AS
OS
QSTOP
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.25
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Subexercise: MOTOR Block
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.26
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
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
Must be activated
(=1)!
0
1
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.27
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Subexercise: CTRL_PID Block
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.28
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Complete download with read back
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.29
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Driver Concept (from V5)
CH_DOCH_AI
VALUE
VHRANGE
VLRANGE
QC
V
200
0 PV_IN
QCONTROL
Digital output
0 / 24 V
Channel 1
(Signame_Y)
Analog input
T I
4 to 20mA
0 to 200°C
VALUE
I
Channel 0
(Signame_X)
Signame_X Signame_Y
HW Config
Symbol table
Signame_X Signame_Y
SUBNET
RACKMOD MOD
CFC charts with module
drivers
CFC chart with application
PPI=n PPI=n
MODE MODE
CPU_RT
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.30
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.31
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Subexercise: Read In and Output an Analog Value
In the test installation:
Analog output and analog input are connected to one another via the hardware
AO
module
AI
module
CFC
The value to be output is connected hereThe read value is retrieved here
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.32
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.33
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Control loop
CTRL_PID
CH_AI CH_AO
Reactor
system
AI AO
AS
software
Plant
I/O Modules
Technical control loop
CTRL_PID
CH_AI CH_AO
AI AO
AS
software
Plant
I/O Modules
Simulated control loop
Reactor
block
Manipulated
variable
Temperature
Manip.
var.
Temp.
Reactor
system
Manip.
var.
PV_IN
LMN
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.34
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Subexercise: Control Loop for the Reactor
CTRL_PID
CH_AI CH_AO
Reactor
block
Manip
. var.
TMP_INT
Manip.
var.
V
AI AOI/O Modules
LMN
PV_IN
V_HOT_FL
U
Manip. var. 4 to 20 mA
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.35
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.36
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Message Configuration
Priority
Message Class
Message Text
Info Text
Automatically assigned/updated
during OS compilation in PCS 7.
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.37
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Notes
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.38
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Program and Data
OBm
FBy,DBy1
FBy,DBy2
FCz
FBy
DBy1
DBy2OB...?
(OBm)
(OBn)
(Instance DB
for FBy
declaration)
Code
Declaration
(Instance DB
for FBy
declaration)
m,n,y,y1,y2,z = numbers
m
n
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.39
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
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
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.40
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Run Sequence
OB32 (time interrupt) 1 sec
Runtime group 1
Runtime group 2
Block 1
Block n
- Scan rate
- Phase offset
Runtime group
Runtime group 3
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.41
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Runtime Properties of OBs and Runtime Groups
t (s)
100100
100
100
200 200
100
100
400
300300 200200
400
100100
0,5
OB33(0.5 s)
100 ms
OB32 (1s)
300 ms
OB31 (2s)
600 ms
OB1
0 1,5 21
Runtimes of the OBs (PCS 7) Program loading
OB1 Free cycle 400 ms
OB31 2 s 600 ms
OB32 1 s 300 ms
OB33 0.5 s 100 ms
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.42
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Monitoring of runtime properties (1)
OB1
OB100
OB3x
OB8x
CPU_RT
OB_BEGIN
AS OS
ASSET
MANAGEMENT
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.43
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Monitoring of runtime properties (2)
Display on
the OS as
online trend
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.44
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Exercise: Optimize runtime sequence (1)
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.45
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Exercise: Optimize runtime sequence (2)
Right-click
Right-click
Optimize individual task (OB) Optimize individual runtime group
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.46
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Interconnecting Runtime Groups (1)
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.47
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Interconnecting Runtime Groups (2)
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.48
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
CFC Chart-in-Chart
Chart "A" (higher-level chart)
"X"
Chart "X" (lower-level chart)
Chart interconnections
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.49
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Exercise: Chart-in-Chart Technique: Create Lower-Level Chart
Chartinterconnections
Lower-level chart "Chart_x"
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.50
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.51
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Exercise: Chart-in-Chart Technique: Create Higher-Level Chart
Manual valve
operation
Runtime sequence:
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.52
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.53
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Exercise: Program Block with CFC (1)
CFC chart "Chart_x"
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.54
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Exercise: Program Block with CFC (2)
Comment must be added manually
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.55
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.56
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
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
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.57
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Block Change (1)
Result B Result A
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.58
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Block Change (1.1)
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.59
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Block Change (1.2)
Options  Charts  Update Block Types
Desired updating
from S7-Lib(1)
to S7-Lib
? Cancel (and nothing takes place)
or
Finish (with the displayed consequences)
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.60
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Block Synchronization
Source
Source blocks
Target
Result
Log
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.61
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Block Change with Library and Project Synchronization (1)
Change in parameter
properties
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.62
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Block Change with Library and Project Synchronization (2)
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.63
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Block Change with Library and Project Synchronization (3)
New block version is imported into the project
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.64
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Project Synchronization in the Multiproject (4)
Options  Charts  Update Block Types
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.65
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Master Data Library
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.66
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Creating Process Tag Types
Create process tag
types
Tem
plate
forvalve
control
Import file
for process tags
Import process tags
into the project
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.67
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Exercise: Create Process Tag Types and Import Them into the
Project (1)
Right-click and select Process tags  Create/modify process tag type
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.68
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Exercise: Create Process Tag Types and Import Them into the
Project (2)
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.69
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Exercise: Create Process Tag Types and Import them into the
Project (3)
1
2
3
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.70
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Splitting Charts
CFC chart "Exer_Reac"
iU103
iT101
iE101
iU101 iU102
iL101 iL102
iX101
Suggestion for
chart names
according to P&I scheme
(i = group number)
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.71
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.72
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Creating Models
Project 1 (PH)
Plant1
Unit11
Unit12
Pic1 SFC1
CFC11
CFC12
Master data library (PH: Models)
Plant1
Unit11
Unit12
Picture1 SFC1
CFC11
CFC12
Import file
Originally describes the PH, charts,
blocks and I/O of Plant1.
The offshoots Plant2, Plant3, etc., are
described by copying/pasting and
adapting the file.
Plant2
Unit21
Unit22
Picture2 SFC2
CFC21
CFC22
Project 2 (PH)
Plant3
Unit31
Unit32
Picture3 SFC3
CFC31
CFC32
Create model
Create/modify
import file
Import
Export
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.73
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Additional Exercise: Creating a Model
Right-click and select Create/Change
Import/Export File
Create new
UnitD
Import
Export
Right-click and select Model  Create/modify
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.74
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.75
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
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
Verschaltbarer
Eingang für U
Bedieneingang
analog
Bedienfreigabe
Limits
V
Received
setpoint can be
further processed
Partner A Partner B
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.76
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Communication Blocks for AS-to-AS Communication
Partner 1
Partner 2
orPartner 1
Partner 2
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.77
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Textual Interconnections
3
2
4
1
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.78
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Additional Block Representations
Invisible interconnections
Display of sampling time
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.79
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Compare Configuration Versions (Version Cross Manager)
· Project
· Library
· Hardware configuration
· CFC/SFC engineering data
such as charts, types, chart
folders, block folders
· Shared declarations
· S7 program
· S7 blocks
· S7 symbols
Other version
of objects of same type
V X M
Objects A B
X
Y
Z
X changeX
Y - (deleted)
- + added
Open file ... Compare file with …
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.80
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
VXM: Object Comparison
File  Open File  Compare with…1 2
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.81
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
VXM: Representation
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.82
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Date: 28.11.2006
File:ST-PCS7SYS_V70_cfc.83
SIMATIC PCS 7
Siemens AG 2003. All rights reserved.
SITRAIN Training for
Automation and Drives
Exercise: Display Changes before Downloading to the AS

More Related Content

What's hot

15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_en15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_en
confidencial
 
Cfc for s7_e
Cfc for s7_eCfc for s7_e
Cfc for s7_e
trinh vankieu
 
S7 bas-16
S7 bas-16S7 bas-16
S7 bas-16
confidencial
 
Simatic getting-started-pcs7
Simatic getting-started-pcs7Simatic getting-started-pcs7
Simatic getting-started-pcs7
ionut grozav
 
Tia portal v14_en
Tia portal v14_enTia portal v14_en
Tia portal v14_en
Cornelia Nassieu-Maupas
 
Fieldbus Tutorial Part 7 - Fieldbus Communication
Fieldbus Tutorial Part 7 - Fieldbus CommunicationFieldbus Tutorial Part 7 - Fieldbus Communication
Fieldbus Tutorial Part 7 - Fieldbus Communication
Emerson Exchange
 
G120 cu250 s2_kba1_0414_eng_en-us
G120 cu250 s2_kba1_0414_eng_en-usG120 cu250 s2_kba1_0414_eng_en-us
G120 cu250 s2_kba1_0414_eng_en-us
Sanjeewa Siriwardana
 
Ch6 v70 sfc_en
Ch6 v70 sfc_enCh6 v70 sfc_en
Ch6 v70 sfc_en
confidencial
 
Fieldbus Tutorial Part 4 - Installation of Fieldbus
Fieldbus Tutorial Part 4 - Installation of FieldbusFieldbus Tutorial Part 4 - Installation of Fieldbus
Fieldbus Tutorial Part 4 - Installation of Fieldbus
Emerson Exchange
 
CENTUM CS300 R3
CENTUM CS300 R3CENTUM CS300 R3
CENTUM CS300 R3
AhmedAmri23
 
New DeltaV Module Templates to Easily Configure, View, and Trend Advanced Pre...
New DeltaV Module Templates to Easily Configure, View, and Trend Advanced Pre...New DeltaV Module Templates to Easily Configure, View, and Trend Advanced Pre...
New DeltaV Module Templates to Easily Configure, View, and Trend Advanced Pre...
Emerson Exchange
 
DeltaV Safety Instrumented System Overview
DeltaV Safety Instrumented System OverviewDeltaV Safety Instrumented System Overview
DeltaV Safety Instrumented System Overview
Sumeet Goel
 
DeltaV Virtualization
DeltaV VirtualizationDeltaV Virtualization
DeltaV Virtualization
Emerson Exchange
 
Practical Use & Understanding of Foundation FieldBus for Engineers & Technicians
Practical Use & Understanding of Foundation FieldBus for Engineers & TechniciansPractical Use & Understanding of Foundation FieldBus for Engineers & Technicians
Practical Use & Understanding of Foundation FieldBus for Engineers & Technicians
Living Online
 
Fc300 profibus training
Fc300 profibus trainingFc300 profibus training
Fc300 profibus training
confidencial
 
Simens plc training. simatic working-with-step-7
Simens  plc  training. simatic working-with-step-7Simens  plc  training. simatic working-with-step-7
Simens plc training. simatic working-with-step-7
SAIL,Rourkela steel plant.Rourkela.
 
Sinamics g120 treinamento (en)
Sinamics g120 treinamento (en)Sinamics g120 treinamento (en)
Sinamics g120 treinamento (en)
Rodrigo de Castro Sarto
 
ABB PROFIBUS.
ABB   PROFIBUS.    ABB   PROFIBUS.
ABB PROFIBUS.
Ashok Kumar Barla
 
Delta v advanced control overview_en
Delta v advanced control overview_enDelta v advanced control overview_en
Delta v advanced control overview_en
Luis Atencio
 
1 sinamics components
1 sinamics components1 sinamics components
1 sinamics components
confidencial
 

What's hot (20)

15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_en15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_en
 
Cfc for s7_e
Cfc for s7_eCfc for s7_e
Cfc for s7_e
 
S7 bas-16
S7 bas-16S7 bas-16
S7 bas-16
 
Simatic getting-started-pcs7
Simatic getting-started-pcs7Simatic getting-started-pcs7
Simatic getting-started-pcs7
 
Tia portal v14_en
Tia portal v14_enTia portal v14_en
Tia portal v14_en
 
Fieldbus Tutorial Part 7 - Fieldbus Communication
Fieldbus Tutorial Part 7 - Fieldbus CommunicationFieldbus Tutorial Part 7 - Fieldbus Communication
Fieldbus Tutorial Part 7 - Fieldbus Communication
 
G120 cu250 s2_kba1_0414_eng_en-us
G120 cu250 s2_kba1_0414_eng_en-usG120 cu250 s2_kba1_0414_eng_en-us
G120 cu250 s2_kba1_0414_eng_en-us
 
Ch6 v70 sfc_en
Ch6 v70 sfc_enCh6 v70 sfc_en
Ch6 v70 sfc_en
 
Fieldbus Tutorial Part 4 - Installation of Fieldbus
Fieldbus Tutorial Part 4 - Installation of FieldbusFieldbus Tutorial Part 4 - Installation of Fieldbus
Fieldbus Tutorial Part 4 - Installation of Fieldbus
 
CENTUM CS300 R3
CENTUM CS300 R3CENTUM CS300 R3
CENTUM CS300 R3
 
New DeltaV Module Templates to Easily Configure, View, and Trend Advanced Pre...
New DeltaV Module Templates to Easily Configure, View, and Trend Advanced Pre...New DeltaV Module Templates to Easily Configure, View, and Trend Advanced Pre...
New DeltaV Module Templates to Easily Configure, View, and Trend Advanced Pre...
 
DeltaV Safety Instrumented System Overview
DeltaV Safety Instrumented System OverviewDeltaV Safety Instrumented System Overview
DeltaV Safety Instrumented System Overview
 
DeltaV Virtualization
DeltaV VirtualizationDeltaV Virtualization
DeltaV Virtualization
 
Practical Use & Understanding of Foundation FieldBus for Engineers & Technicians
Practical Use & Understanding of Foundation FieldBus for Engineers & TechniciansPractical Use & Understanding of Foundation FieldBus for Engineers & Technicians
Practical Use & Understanding of Foundation FieldBus for Engineers & Technicians
 
Fc300 profibus training
Fc300 profibus trainingFc300 profibus training
Fc300 profibus training
 
Simens plc training. simatic working-with-step-7
Simens  plc  training. simatic working-with-step-7Simens  plc  training. simatic working-with-step-7
Simens plc training. simatic working-with-step-7
 
Sinamics g120 treinamento (en)
Sinamics g120 treinamento (en)Sinamics g120 treinamento (en)
Sinamics g120 treinamento (en)
 
ABB PROFIBUS.
ABB   PROFIBUS.    ABB   PROFIBUS.
ABB PROFIBUS.
 
Delta v advanced control overview_en
Delta v advanced control overview_enDelta v advanced control overview_en
Delta v advanced control overview_en
 
1 sinamics components
1 sinamics components1 sinamics components
1 sinamics components
 

Viewers also liked

Ch7 v70 scl_en
Ch7 v70 scl_enCh7 v70 scl_en
Ch7 v70 scl_en
confidencial
 
20 what’s next
20 what’s next20 what’s next
20 what’s next
hassansafa123
 
Ch1 2 kb_pcs7_v70_en
Ch1 2 kb_pcs7_v70_enCh1 2 kb_pcs7_v70_en
Ch1 2 kb_pcs7_v70_en
confidencial
 
E20001 a239-p280-x-7600[1]
E20001 a239-p280-x-7600[1]E20001 a239-p280-x-7600[1]
E20001 a239-p280-x-7600[1]
Vahid RG-zadeh
 
Ctai Ingeniería - Curso SINAMICS
Ctai Ingeniería - Curso SINAMICSCtai Ingeniería - Curso SINAMICS
Ctai Ingeniería - Curso SINAMICS
CTAI Ingeniería, S.L.
 
treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama...
 treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama... treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama...
treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama...
confidencial
 
Ch9 v70 multiproject_en
Ch9 v70 multiproject_enCh9 v70 multiproject_en
Ch9 v70 multiproject_en
confidencial
 
Simaticpcs7 stpcs71 complete_english_2011
Simaticpcs7 stpcs71 complete_english_2011Simaticpcs7 stpcs71 complete_english_2011
Simaticpcs7 stpcs71 complete_english_2011
Vahid RG-zadeh
 
Fluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verdeFluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verde
confidencial
 
intouch
intouchintouch
intouch
foryou1010
 
Scl 1e
Scl 1eScl 1e
04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm
confidencial
 
Ch1 1 v70_system_overview_en
Ch1 1 v70_system_overview_enCh1 1 v70_system_overview_en
Ch1 1 v70_system_overview_en
confidencial
 
SSJCPL Logo Presenation
SSJCPL Logo PresenationSSJCPL Logo Presenation
SSJCPL Logo Presenation
ssjcpl
 
D11 2011-en
D11 2011-enD11 2011-en
Stoe 08 p
Stoe 08 pStoe 08 p
Stoe 08 p
confidencial
 
Manual logo
Manual logoManual logo
Logo siemens ( PLC )
Logo siemens ( PLC )Logo siemens ( PLC )
Logo siemens ( PLC )
Ricardo Akerman
 
Logo siemens ( CLP )
Logo siemens ( CLP )Logo siemens ( CLP )
Logo siemens ( CLP )
Ricardo Akerman
 
Clp s7-avancado
Clp s7-avancadoClp s7-avancado
Clp s7-avancado
confidencial
 

Viewers also liked (20)

Ch7 v70 scl_en
Ch7 v70 scl_enCh7 v70 scl_en
Ch7 v70 scl_en
 
20 what’s next
20 what’s next20 what’s next
20 what’s next
 
Ch1 2 kb_pcs7_v70_en
Ch1 2 kb_pcs7_v70_enCh1 2 kb_pcs7_v70_en
Ch1 2 kb_pcs7_v70_en
 
E20001 a239-p280-x-7600[1]
E20001 a239-p280-x-7600[1]E20001 a239-p280-x-7600[1]
E20001 a239-p280-x-7600[1]
 
Ctai Ingeniería - Curso SINAMICS
Ctai Ingeniería - Curso SINAMICSCtai Ingeniería - Curso SINAMICS
Ctai Ingeniería - Curso SINAMICS
 
treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama...
 treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama... treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama...
treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama...
 
Ch9 v70 multiproject_en
Ch9 v70 multiproject_enCh9 v70 multiproject_en
Ch9 v70 multiproject_en
 
Simaticpcs7 stpcs71 complete_english_2011
Simaticpcs7 stpcs71 complete_english_2011Simaticpcs7 stpcs71 complete_english_2011
Simaticpcs7 stpcs71 complete_english_2011
 
Fluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verdeFluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verde
 
intouch
intouchintouch
intouch
 
Scl 1e
Scl 1eScl 1e
Scl 1e
 
04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm
 
Ch1 1 v70_system_overview_en
Ch1 1 v70_system_overview_enCh1 1 v70_system_overview_en
Ch1 1 v70_system_overview_en
 
SSJCPL Logo Presenation
SSJCPL Logo PresenationSSJCPL Logo Presenation
SSJCPL Logo Presenation
 
D11 2011-en
D11 2011-enD11 2011-en
D11 2011-en
 
Stoe 08 p
Stoe 08 pStoe 08 p
Stoe 08 p
 
Manual logo
Manual logoManual logo
Manual logo
 
Logo siemens ( PLC )
Logo siemens ( PLC )Logo siemens ( PLC )
Logo siemens ( PLC )
 
Logo siemens ( CLP )
Logo siemens ( CLP )Logo siemens ( CLP )
Logo siemens ( CLP )
 
Clp s7-avancado
Clp s7-avancadoClp s7-avancado
Clp s7-avancado
 

Similar to Ch5 v70 cfc_en

Ch2 v70 config_overview_en
Ch2 v70 config_overview_enCh2 v70 config_overview_en
Ch2 v70 config_overview_en
confidencial
 
Ae01 system overview
Ae01 system overviewAe01 system overview
Ae01 system overview
confidencial
 
6 operaciones numericas
6 operaciones numericas6 operaciones numericas
6 operaciones numericas
Fercho Oe
 
10731617.ppt
10731617.ppt10731617.ppt
10731617.ppt
AhmedHeskol2
 
1 familia simatic s7
1 familia simatic s71 familia simatic s7
1 familia simatic s7
Fercho Oe
 
A d swincc03_create_project_pt
A d swincc03_create_project_ptA d swincc03_create_project_pt
A d swincc03_create_project_pt
confidencial
 
BRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdf
BRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdfBRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdf
BRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdf
aaajjj4
 
Automotive Airbag Solution from Freescale
Automotive Airbag Solution from FreescaleAutomotive Airbag Solution from Freescale
Automotive Airbag Solution from Freescale
Premier Farnell
 
Manual software para acionamneto v75
Manual software para acionamneto v75Manual software para acionamneto v75
Manual software para acionamneto v75
FTorres Torres
 
Ae08 system vb_script
Ae08 system vb_scriptAe08 system vb_script
Ae08 system vb_script
confidencial
 
BMS_Siemen_solution_for_the_building.pdf
BMS_Siemen_solution_for_the_building.pdfBMS_Siemen_solution_for_the_building.pdf
BMS_Siemen_solution_for_the_building.pdf
SnowWolf InGalaxy
 
CCNA Icnd110 s02l05
CCNA Icnd110 s02l05CCNA Icnd110 s02l05
CCNA Icnd110 s02l05
computerlenguyen
 
Information Gathering 2
Information Gathering 2Information Gathering 2
Information Gathering 2
Aero Plane
 
Siemens catalog hmi-touch panel tp170 a, tp170 b operator panel op170 b
Siemens catalog hmi-touch panel tp170 a, tp170 b operator panel op170 bSiemens catalog hmi-touch panel tp170 a, tp170 b operator panel op170 b
Siemens catalog hmi-touch panel tp170 a, tp170 b operator panel op170 b
Dien Ha The
 
Siemens catalog hmi-tp170a_e
Siemens catalog hmi-tp170a_eSiemens catalog hmi-tp170a_e
Siemens catalog hmi-tp170a_e
Dien Ha The
 
2.omd101010 bsc6000 hardware structure issue1.0
2.omd101010 bsc6000 hardware structure issue1.02.omd101010 bsc6000 hardware structure issue1.0
2.omd101010 bsc6000 hardware structure issue1.0
moussaCoulibaly22
 
Brochure bộ điều khiển PLC S7-1500
Brochure bộ điều khiển PLC S7-1500Brochure bộ điều khiển PLC S7-1500
Brochure bộ điều khiển PLC S7-1500
Công ty công nghệ tự động hóa Hoàng Gia
 
CLP S7 300 E S7 400
CLP S7 300 E S7 400 CLP S7 300 E S7 400
CLP S7 300 E S7 400
confidencial
 
Mtax som-am335x full-ds_en
Mtax som-am335x full-ds_enMtax som-am335x full-ds_en
Mtax som-am335x full-ds_en
Alexey Yurko
 
Mitsubishi ac servos melservo j4 solutions vertical form, fill & seal-die...
Mitsubishi ac servos melservo j4 solutions vertical form, fill & seal-die...Mitsubishi ac servos melservo j4 solutions vertical form, fill & seal-die...
Mitsubishi ac servos melservo j4 solutions vertical form, fill & seal-die...
Dien Ha The
 

Similar to Ch5 v70 cfc_en (20)

Ch2 v70 config_overview_en
Ch2 v70 config_overview_enCh2 v70 config_overview_en
Ch2 v70 config_overview_en
 
Ae01 system overview
Ae01 system overviewAe01 system overview
Ae01 system overview
 
6 operaciones numericas
6 operaciones numericas6 operaciones numericas
6 operaciones numericas
 
10731617.ppt
10731617.ppt10731617.ppt
10731617.ppt
 
1 familia simatic s7
1 familia simatic s71 familia simatic s7
1 familia simatic s7
 
A d swincc03_create_project_pt
A d swincc03_create_project_ptA d swincc03_create_project_pt
A d swincc03_create_project_pt
 
BRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdf
BRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdfBRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdf
BRKRST-3066 - Troubleshooting Nexus 7000 (2013 Melbourne) - 2 Hours.pdf
 
Automotive Airbag Solution from Freescale
Automotive Airbag Solution from FreescaleAutomotive Airbag Solution from Freescale
Automotive Airbag Solution from Freescale
 
Manual software para acionamneto v75
Manual software para acionamneto v75Manual software para acionamneto v75
Manual software para acionamneto v75
 
Ae08 system vb_script
Ae08 system vb_scriptAe08 system vb_script
Ae08 system vb_script
 
BMS_Siemen_solution_for_the_building.pdf
BMS_Siemen_solution_for_the_building.pdfBMS_Siemen_solution_for_the_building.pdf
BMS_Siemen_solution_for_the_building.pdf
 
CCNA Icnd110 s02l05
CCNA Icnd110 s02l05CCNA Icnd110 s02l05
CCNA Icnd110 s02l05
 
Information Gathering 2
Information Gathering 2Information Gathering 2
Information Gathering 2
 
Siemens catalog hmi-touch panel tp170 a, tp170 b operator panel op170 b
Siemens catalog hmi-touch panel tp170 a, tp170 b operator panel op170 bSiemens catalog hmi-touch panel tp170 a, tp170 b operator panel op170 b
Siemens catalog hmi-touch panel tp170 a, tp170 b operator panel op170 b
 
Siemens catalog hmi-tp170a_e
Siemens catalog hmi-tp170a_eSiemens catalog hmi-tp170a_e
Siemens catalog hmi-tp170a_e
 
2.omd101010 bsc6000 hardware structure issue1.0
2.omd101010 bsc6000 hardware structure issue1.02.omd101010 bsc6000 hardware structure issue1.0
2.omd101010 bsc6000 hardware structure issue1.0
 
Brochure bộ điều khiển PLC S7-1500
Brochure bộ điều khiển PLC S7-1500Brochure bộ điều khiển PLC S7-1500
Brochure bộ điều khiển PLC S7-1500
 
CLP S7 300 E S7 400
CLP S7 300 E S7 400 CLP S7 300 E S7 400
CLP S7 300 E S7 400
 
Mtax som-am335x full-ds_en
Mtax som-am335x full-ds_enMtax som-am335x full-ds_en
Mtax som-am335x full-ds_en
 
Mitsubishi ac servos melservo j4 solutions vertical form, fill & seal-die...
Mitsubishi ac servos melservo j4 solutions vertical form, fill & seal-die...Mitsubishi ac servos melservo j4 solutions vertical form, fill & seal-die...
Mitsubishi ac servos melservo j4 solutions vertical form, fill & seal-die...
 

More from confidencial

18 syntax rules v1.0
18 syntax rules v1.018 syntax rules v1.0
18 syntax rules v1.0
confidencial
 
17 demonstration server client system-v1.00_en
17 demonstration server client system-v1.00_en17 demonstration server client system-v1.00_en
17 demonstration server client system-v1.00_en
confidencial
 
14 mass data engineering v1.00_en
14 mass data engineering v1.00_en14 mass data engineering v1.00_en
14 mass data engineering v1.00_en
confidencial
 
13 locking functions and operating modes v1.00_en
13 locking functions and operating modes v1.00_en13 locking functions and operating modes v1.00_en
13 locking functions and operating modes v1.00_en
confidencial
 
12 archiving system v1.00_en
12 archiving system v1.00_en12 archiving system v1.00_en
12 archiving system v1.00_en
confidencial
 
11 customizing the os v1.00_en
11 customizing the os v1.00_en11 customizing the os v1.00_en
11 customizing the os v1.00_en
confidencial
 
09 basics operating and monitoring v1.00_en
09 basics operating and monitoring v1.00_en09 basics operating and monitoring v1.00_en
09 basics operating and monitoring v1.00_en
confidencial
 
08 basics control functions v1.00_en
08 basics control functions v1.00_en08 basics control functions v1.00_en
08 basics control functions v1.00_en
confidencial
 
07 connection to the process v1.00_en
07 connection to the process v1.00_en07 connection to the process v1.00_en
07 connection to the process v1.00_en
confidencial
 
05 project setup v1.00_en
05 project setup v1.00_en05 project setup v1.00_en
05 project setup v1.00_en
confidencial
 
03 requirements and functional process description v1.00_en
03 requirements and functional process description v1.00_en03 requirements and functional process description v1.00_en
03 requirements and functional process description v1.00_en
confidencial
 
02 pcs 7 documentation and support v1.00 en
02 pcs 7 documentation and support v1.00 en02 pcs 7 documentation and support v1.00 en
02 pcs 7 documentation and support v1.00 en
confidencial
 
01 introduction v1.00_en
01 introduction v1.00_en01 introduction v1.00_en
01 introduction v1.00_en
confidencial
 
00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 en00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 en
confidencial
 
01tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp0101tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp01
confidencial
 
Sitrains7 1200pwmpid-150301123045-conversion-gate01
Sitrains7 1200pwmpid-150301123045-conversion-gate01Sitrains7 1200pwmpid-150301123045-conversion-gate01
Sitrains7 1200pwmpid-150301123045-conversion-gate01
confidencial
 
Sitrain introdução a ihm
Sitrain introdução a ihmSitrain introdução a ihm
Sitrain introdução a ihm
confidencial
 
Sitrain visão geral do sistema tia portal
Sitrain visão geral do sistema tia portalSitrain visão geral do sistema tia portal
Sitrain visão geral do sistema tia portal
confidencial
 
Sitrain tags do plc
Sitrain tags do plcSitrain tags do plc
Sitrain tags do plc
confidencial
 
Sitrain step7basic 150301103500-conversion-
Sitrain step7basic 150301103500-conversion-Sitrain step7basic 150301103500-conversion-
Sitrain step7basic 150301103500-conversion-
confidencial
 

More from confidencial (20)

18 syntax rules v1.0
18 syntax rules v1.018 syntax rules v1.0
18 syntax rules v1.0
 
17 demonstration server client system-v1.00_en
17 demonstration server client system-v1.00_en17 demonstration server client system-v1.00_en
17 demonstration server client system-v1.00_en
 
14 mass data engineering v1.00_en
14 mass data engineering v1.00_en14 mass data engineering v1.00_en
14 mass data engineering v1.00_en
 
13 locking functions and operating modes v1.00_en
13 locking functions and operating modes v1.00_en13 locking functions and operating modes v1.00_en
13 locking functions and operating modes v1.00_en
 
12 archiving system v1.00_en
12 archiving system v1.00_en12 archiving system v1.00_en
12 archiving system v1.00_en
 
11 customizing the os v1.00_en
11 customizing the os v1.00_en11 customizing the os v1.00_en
11 customizing the os v1.00_en
 
09 basics operating and monitoring v1.00_en
09 basics operating and monitoring v1.00_en09 basics operating and monitoring v1.00_en
09 basics operating and monitoring v1.00_en
 
08 basics control functions v1.00_en
08 basics control functions v1.00_en08 basics control functions v1.00_en
08 basics control functions v1.00_en
 
07 connection to the process v1.00_en
07 connection to the process v1.00_en07 connection to the process v1.00_en
07 connection to the process v1.00_en
 
05 project setup v1.00_en
05 project setup v1.00_en05 project setup v1.00_en
05 project setup v1.00_en
 
03 requirements and functional process description v1.00_en
03 requirements and functional process description v1.00_en03 requirements and functional process description v1.00_en
03 requirements and functional process description v1.00_en
 
02 pcs 7 documentation and support v1.00 en
02 pcs 7 documentation and support v1.00 en02 pcs 7 documentation and support v1.00 en
02 pcs 7 documentation and support v1.00 en
 
01 introduction v1.00_en
01 introduction v1.00_en01 introduction v1.00_en
01 introduction v1.00_en
 
00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 en00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 en
 
01tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp0101tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp01
 
Sitrains7 1200pwmpid-150301123045-conversion-gate01
Sitrains7 1200pwmpid-150301123045-conversion-gate01Sitrains7 1200pwmpid-150301123045-conversion-gate01
Sitrains7 1200pwmpid-150301123045-conversion-gate01
 
Sitrain introdução a ihm
Sitrain introdução a ihmSitrain introdução a ihm
Sitrain introdução a ihm
 
Sitrain visão geral do sistema tia portal
Sitrain visão geral do sistema tia portalSitrain visão geral do sistema tia portal
Sitrain visão geral do sistema tia portal
 
Sitrain tags do plc
Sitrain tags do plcSitrain tags do plc
Sitrain tags do plc
 
Sitrain step7basic 150301103500-conversion-
Sitrain step7basic 150301103500-conversion-Sitrain step7basic 150301103500-conversion-
Sitrain step7basic 150301103500-conversion-
 

Recently uploaded

Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
Zilliz
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 

Recently uploaded (20)

Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 

Ch5 v70 cfc_en

Editor's Notes

  1. ContentPage Integrating Libraries.........................................................................................................................3 Block Libraries......................................................................................................................4 Integrating Blocks.............................................................................................................................6 Organization Blocks.........................................................................................................................7 CFC Basics......................................................................................................................................8 Exercise: The First Blocks................................................................................................................9 Predecessor for Installation..............................................................................................................10 Insert Block......................................................................................................................................11 Compiling and Downloading the Program.........................................................................................13 Debugging a Program......................................................................................................................15 Exercise: Controlling a Value...........................................................................................................16 Exercise: Automate Reactor Plant A.................................................................................................17 Reactor Simulation (Filling)..............................................................................................................18 Reactor Simulation (Heating)...........................................................................................................19 Reactor Simulation (Summary).........................................................................................................20 Subexercise: REACTOR Block.........................................................................................................21 Block Diagram of a Valve Control System........................................................................................22 Subexercise: VALVE Block...............................................................................................................23 Block Diagram of a Motor Control System........................................................................................24 Subexercise: MOTOR Block............................................................................................................25 CTRL_PID (with LINK).....................................................................................................................26 Subexercise: CTRL_PID Block.........................................................................................................27 Complete download with read back..................................................................................................28 Driver Concept (from V5) ................................................................................................................29
  2. Subexercise: Read In and Output an Analog Value...........................................................................31 Control loop.....................................................................................................................33 Subexercise: Control Loop for the Reactor....................................................................................34 Message Configuration.....................................................................................................................36 Notes................................................................................................................................................37 Program and Data...................................................................................................................38 Data Transport.................................................................................................................................39 Run Sequence.................................................................................................................................40 Runtime Properties of OBs and Runtime Groups..............................................................................41 Monitoring of runtime properties (1)..................................................................................................42 Exercise: Optimize runtime sequence (1).........................................................................................44 Interconnecting Runtime Groups (1).................................................................................................46 CFC Chart-in-Chart..........................................................................................................................48 Exercise: Chart-in-Chart Technique: Create Lower-Level Chart........................................................49 Exercise: Chart-in-Chart Technique: Create Higher-Level Chart.......................................................51 Exercise: Program Block with CFC (1).............................................................................................53 Block Data Structure (Multiple Instance)...........................................................................................56 Block Change (1).............................................................................................................................57 Block Synchronization......................................................................................................................60 Block Change with Library and Project Synchronization (1)..............................................................61 Project Synchronization in the Multiproject (4)..................................................................................64 Master Data Library.........................................................................................................................65 Creating Process Tag Types............................................................................................................66 Exercise: Create Process Tag Types and Import Them into the Project (1)......................................67 Splitting Charts.................................................................................................................................70 Creating Models...............................................................................................................................72 Additional Exercise: Creating a Model............................................................................................73 AS-to-AS Communication................................................................................................................75 Communication Blocks for AS-to-AS Communication.......................................................................76 Textual Interconnections..................................................................................................................77 Additional Block Representations.....................................................................................................78 Compare Configuration Versions (Version Cross Manager)...........................................................79 VXM: Object Comparison.................................................................................................................80 VXM: Representation.......................................................................................................................81 Exercise: Display Changes before Downloading to the AS...............................................................83
  3. Integrating Libraries When the PCS 7-ES is installed, libraries with prefabricated blocks and charts are automatically installed, too. The blocks required for software creation must be integrated in the project. The software itself is generated with the help of the CFC and SFC editors. The blocks provided in CFC usually originate in the libraries located in the S7 Manager under: File -> Open -> Libraries. Then activate File -> Manage -> Hide / Display to influence this list as required. Master Data Library With PCS 7 V7.0 you can also include libraries in the multiproject, in addition to projects. You can use one of them as master data library to store blocks or charts for uniform use in all projects. The master data library can only contain one S7 program. Use the menu command File  Multiproject  Define as Master Data Library to define a marked library as master data library.
  4. Elementary BlocksRepresent the STEP 7 basic operations (BOP) for CFC application. These elementary blocks are provided with CFC (CMP_R, SQRT...) and are located in the "CFCLibrary". Technological Blocks These blocks provide basic functions for automation tasks: - Function blocks, such as AVER_P, INT_P, LIMITS_P - Operator control blocks (such as OP_A_LIM, OP_D) with the relevant faceplates - Message blocks (MESSAGE, MSG_CSF) These blocks process complex tasks with their relevant faceplates for OS operating and monitoring: - Controller block CTRL_PID, CTRL_S - Motor blocks MOTOR, MOT_REV, MOT_SPED - Valve blocks VALVE, VAL_MOT - Interlock display INTERLOCK - Dosage DOSE - Ratio controller RATIO_P - Monitoring blocks MEAS_MON, DIG_MON - Maintenance blocks ELAP_CNT, SWIT_CNT, OB1_TIME Driver BlocksProvide interfaces to the I/O modules: - CH_AI, CH_AO, CH_DI, CH_DO for the individual channel - MODxx, RACK, SUBNET, OB_xx, CPU_RT for module, chain and CPU diagnostics - PA_xx, PO_xx PROFIBUS PA drivers
  5. Communication Blocks The communication blocks are located in the "PCS7 Library V61". These are SEND_BO and REC_BO for 128 Boolean values each, and SEND_R and REC_R for transferring 32 Boolean values and 32 real values each. Both these block pairs are suitable for communication via the system bus. Standard LibraryThe standard library was restructured since V5 of the STEP 7 basic package and contains the following, for example: System Functions:system functions (SFC) and system function blocks (SFB), integrated into the AS operating system and which the user blocks can invoke S5-S7 Convert:blocks for converting STEP 5 programs IEC Functions: like string operations (I_STRNG) and compare (MAX) Communication Blocks:functions (FC) for PROFIBUS DP communication PID Control: function blocks (FB) for PID control TI-S7 Convert: blocks for converting TI programs Note:The library "REDUNDANT IO (V1)" up to V6.1 and the library "REDUNDANT IO CGP" with V7.0 and higher is available for fault-tolerant H systems with redundant I/O.
  6. Integrating Blocks When CFC is open, activate View  Catalog to open a window with the existing libraries. Look for "your" block in these libraries. Use "drag and drop" to drag your block to the chart in the project window. The first time you insert a block type, its data is entered in the block folder, chart folder and symbol table. There is a "hidden import." This block is integrated into the OB (see following pages) that is preset as the "predecessor for installation" at the bottom right position of the CFC (in the slide: OB35, runtime group CFC(1), at beginning).
  7. Organization Blocks When predefined events occur, the OS of the CPU invokes the organization blocks (OBs) associated with these events. In turn, an OB will invoke the blocks the operator has programmed in the OB. Which OBs are available depends on the CPU used; the blocks have different priority classes (1 = lowest, 28 = highest priority). If certain events cause the system to call up an OB not loaded in the AS, OB85 (program sequence error OB) is invoked. If OB85 is not present, the CPU goes to STOP! Local DataWhen running, every OB occupies memory in the local data area (approx. 20 bytes). In addition, the block invoked by the OB will also take up local memory resources (only during the block's runtime - after the block has been processed, this local memory is available again.) The local memory provided must be sufficient for both the block and the OB, or the CPU will go to STOP! Interrogate Set Local MemoryAll of the local memory is limited depending on the CPU. The local memory is divided according to priority classes. The query can be initiated from the CFC via Options  Chart Reference Data  View  Local Data where settings that are not sufficient are also marked in red. Setting Local Memory Make sure that the priority level for every OB where you want to include blocks has sufficient local memory assigned. The setting is carried out in the station configuration (HW Config) for the CPU as follows: - Select the station - Edit -> Open Object -> Highlight CPU. - Edit -> Object Properties -> Local data and then set as required. The default setting is sufficient for PCS 7 blocks in V5 and higher. Should this not be the case, the CFC will issue a message.
  8. BlocksA basic principle of effective engineering is "Don't reinvent the wheel". The block libraries contain solutions you can use again. The block documentation (can be opened online by selecting the block and pressing the F1 key) describes the data that must be provided to the block on the input side in order to obtain the desired results on the output side. Charts (Templates)Predefined control solutions are provided which only need to be adapted to your purposes. ImportThe blocks must be located in and imported from block containers. They are then interconnected with CFC and can then be used for programming. Inserting in ChartYou can insert blocks by using drag and drop. You select the block you want from the list of available blocks/libraries and position the block in the project window (see above). Block HeaderThe block header contains information so you can identify the block. By double-clicking the block header (or right-click and select: Object Properties) you can view additional information and configuration possibilities in the boxes that are then displayed. Set ParametersThe inputs have fixed values (double-click on the input name or right-click and select: Object Properties). ConnectIf results from other blocks are to be processed further, the supplier of the value (block output) is connected to the input importing the value (first click on the output, second click on the input, or alternatively with Drag & Drop). Sheet BarsYou can also establish connections to blocks that are not positioned on the same sheet by opening a new window in CFC. The two sheets are displayed in different windows. The interconnection is carried out in the usual way. The interconnection is interrupted at the sheet bar for each sheet, and the destination of the other sheet is displayed.
  9. ExerciseIn the plant view, you want to insert an "Attempti" CFC chart with the above function in new folder "Reactorsi/Testi". Both blocks are to run in OB32. The first block type is PT1_P (time-delay element of the 1st order) and the second block type is ADD4_P (adder). Create, compile, download and test the chart. ------------------------------------------------------------------------------------------------------- Steps1. Call the project in plant view. Create folder. 2. Insert new CFC chart in the corresponding hierarchy container. 3. Define predecessor for installation. 4. Enter blocks from the library into the chart and name them. 5. Set parameters for blocks on the sheet and interconnect them. 6. Compile, download and test program. ------------------------------------------------------------------------------------------------------- Procedure In the block names, "i" stands for your group number. Add PH1.Select the plant hierarchy view in the SIMATIC Manager via menu command View  Plant View Select the "REACTORSi" folder in the project PRO_ASi. Then right-click and select New Object...  Hierarchy Folder to insert a new folder. Rename the folder "TESTi" Create a chart2.Select the "TESTi" folder, right-click and select New Object...  CFC to insert a chart. Name your chart "ATTEMPTi" Open Chart Select the "ATTEMPTi" chart. To open the chart, right-click and select Open Object(or double-click)
  10. Run Sequence3. Click the Run Sequence icon (circled in the slide). A CFC window is opened which lists all the organization blocks of the CPU (OB). When a project is created, OB 35 is the "Predecessor for installation" meaning that when a new chart is created, a runtime group is automatically created in OB 35 (in first position, i.e. at the start). The runtime group has the same name as the new CFC chart (circled folder symbol). While blocks are added to the chart, they are automatically grouped in the runtime group. Moving the Runtime Group Grab the folder symbol for the runtime group with the mouse and drag it to another OB(OB32) which is being processed in the CPU with different repeat times (see lower part of the slide). If you move OB35, it remains "Predecessor for the Installation". In order to automatically assign charts that were created later to the new OB, you need to define a new "Predecessor for installation". Predecessor for Installation Select the runtime group Attempt from OB32, then right-click and select Predecessor for installation position. The new position becomes effective (after acknowledging an information dialog). The runtime group is highlighted in green and the new "Predecessor... OB32 Attempt" is displayed in the lower right-hand corner (see slide above). You can now exit the window with the run sequence.
  11. Libraries Catalog If you open the CFC chart and do not see a window with libraries on the right, activate the following menu command to open the window: View  Catalog. Insert Block4. In the CFC select the Libraries tab on the lower right-hand side (arrow 1 on the slide). Go to the pane shown on the right above and look for the library "PCS 7 Library V70". It contains a subdirectory called CONTROL with a block called PT1_P. Drag the block to the working window of the CFC. The block is displayed in the chart and is inserted in the runtime group associated with its chart. The runtime information highlighted in green (arrow 2) shows, for example, that the block was inserted in OB32, in the 1st runtime group, as first block. The green background indicates the block in the chart which is defined as predecessor for the next block in this chart. After insertion, the latter becomes the predecessor for the third block, and so forth. Define PredecessorIf you insert new blocks later and want to use a different block as predecessor rather than the block last inserted, select the required block in the chart, right-click and selectPredecessor for Installation Position This block is now the new predecessor. The next new block is then inserted after this block, and becomes the predecessor itself. Each chart has its own predecessor block! Rename BlockSelect the block you want to rename. Right-click and selectObject Properties You can now enter the new name "FIRSTi" in the Name field. Repeat the procedure for the block of type ADD4_P.
  12. Chart OverviewFirst use the following command to switch to the chart "Overview" display: View  Overview This makes it easier to find an available location for the new block. Chart Sheet View Change chart to "sheet view" via View  Sheet View You can now read and select the parameter names. Setting Parameters 5. Enter fixed values for the required function. Select the parameter name (here, for example, "Firsti" block and "TM_LAG" input). Right-click and select Object properties (or double-click). Fill out the input box. Interconnection1. Select source output (here "Firsti" block, output "V") 2. Select the destination input ("Secondi" block, "U2" input) Result: One line connects both parameters. Since V6.1, the selection sequence Output  Input is no longer mandatory. Note:Accustom yourself to using the online help as it provides important information whenever you need it. You can quickly and directly look up information without having to search through manuals. For context-sensitive help select the object or the active window for which you need help and press F1. You can also select "Help" in the menu bar at any time and search for information on a specific topic.
  13. Settings for compile5. Charts must be converted from the graphic form to machine language and downloaded to the AS. To initiate the conversion from a CFC chart, select Chart  Compile  Charts as Program (or click the circled C Compile icon). The entire software is compiled for the CPU which is associated with this CFC chart. A dialog box is displayed for the compilation settings (see slide). Only "Entire Program" is possible under "Scope" the first time you compile. You can select "Changes only" for any subsequent compilations (after changes/additions). Important Option"Generate module drivers" (only meaningful if there is a minimum of one channel driver in the chart). This results in the CFC creating additional charts with the required drivers for data transfer with the I/O modules and diagnostics capability. A chart "@CPU_RT" is created in addition. The "CPU_RT" block inserted there monitors the CPU performance in order to avoid a CPU stop (for details on the block functions, please refer to its online help) DownloadingThe compiled charts must now be downloaded to the CPU. Activate the following menu command to start this process: PLC  Download or click on the Download icon (circled on the slide). The first time the chart is downloaded, it is only possible to download the entire program (in combination with CPU Stop and automatic deletion of the program still residing in the CPU).
  14. Activate the Entire Program option. This ensures all the software from this CPU is downloaded. You can select "Changes only" for any subsequent downloads (after changes/additions). Changes option This means that a consistency check is performed for the accessible AS before download. If feasible (usually), the software changes made since the last download to the AS are delta-loaded without stopping the CPU. All software changes are made for the entire software of the CPU associated with this CFC chart. Download to Test CPUoption (dealt with later) Note 1If you trigger the download directly and have not yet compiled, a CFC dialog box will prompt you whether you want to compile first. The Options screen is opened as a combination box (one screen with two tabs, for compile and download) Check both tabs! Regardless in which screen you select the options - with individual compile/download or with direct download - they are always retained until they are changed. Note 2If the CFC option "Options  Settings  Compile/Download  "Generate image of downloaded program for comparison" has been activated, an XML export of the charts is automatically triggered after each successful download. The result is saved in an internal project directory. During the next download, the "Display changes" button is provided in the displayed download screen. Internal calling of the VXM is started when this is clicked. This provides a display of the changes which would be downloaded to the AS following positive acknowledgment of the download screen (nothing has happened yet!). If undesired changes are displayed, you can exit the download screen using "Cancel". You can subsequently undo the "undesired" changes by changing the configuration, and start a new Compile/Download process. The VXM topic and the evaluation of information associated with it will be treated later.
  15. Test Mode You must activate "test mode" to test the function downloaded to the AS. First activate Debug  Process ModeOr Debug  Laboratory Mode to select/check the appropriate test environment. Use the following command to activate/deactivate test mode: Debug  Test Mode With laboratory operation, monitoring is automatically activated for the parameters specified "for test". During process operation, you must select the required block each time and identify it for monitoring by right-click and selecting Watch On Test 1If the test mode is active and the parameters to be tested have a yellow background (default setting for updated values), you can set parameters for the input parameter. The new value is written to the AS and to the project. Change the value on the "First" block, "U" input. Monitor the result on the "Second" block, "V" output. Test 2Dynamic Display offers an additional test procedure. You can open a display window in CFC: View  Dynamic Display Use "drag and drop" in this window to drag the block parameters you want to monitor (from any of the projects - even from different CPUs). One line in the table is reserved for each parameter. Upon activation of test mode, you can monitor or edit (if permissible) these selected parameters. You can delete several parameters you no longer need by selecting the relevant line, right-clicking and selecting Delete. You can use the New , Rename or Delete buttons in the table window to create, rename or delete new dynamic displays.
  16. ExerciseThe analog value "U4" of the adder "secondi" is to be operated via operator block OP_A_LIM (operation analog limited). Limit values can be set both for the upper and lower limit thus limiting the value that can be entered. ------------------------------------------------------------------------------------------------------- Steps1.Insert and interconnect operator block for analog values OP_A_LIM (Name: Oper_Second_U_i) (i is your group number) 2.Compile and download 3.Operator functions when using OP_A_LIM 4.OP_EN input function 5.Upper and lower operating limits 6.Function of the LINK_U- and LINK_ON input 7.Tracking function (BTRACK) NoteUse the online help for the OP_A_LIM block. If there are parameters you cannot find for the block, right-click and selectProperties  Connections tab to search for them and make them visible.
  17. ExerciseReactor plant A is to be automated. The following blocks and functions are to be used: Plant simulation:REACTOR (Library:COURSEBS60) Actuate valves:VALVE(Library:PCS 7 Library V70) Actuate mixers:MOTOR(Library:PCS 7 Library V70) Temperature controller:CTRL_PID(Library:PCS 7 Library V70) Create a new CFC chart called "Exer_Reaci" in the PH folder "Reactors". As separate steps, insert the above blocks and familiarize yourself with each one (by compiling, downloading and testing). Work through the steps outlined on the following pages where the block types are described. The sequential control is dealt with in the SFC chapter. ------------------------------------------------------------------------------------------------------
  18. Heating ComponentThis section simulates reactor heating through a heating medium by means of the reactor shell. A PT1/VZ1 element simulates the shell temperature. A PT2/V22 element simulates the interior temperature. This section includes the following parameters: Inputs V_HOT_FLFlow in % Fmax for the heating valve in the 2T101 control loop TMP_ENVAmbient temperature in °C TMP_HOTHeating medium temperature when it enters in °C T_LAG_SHPT1 delay time (for the shell temperature) T_LAG_IN PT2 delay time (for the internal temperature) Outputs TMP_SHELShell temperature in °C, process tag 2T101 TMP_INInternal temperature to be controlled in °C, control loop 2T102 General ComponentConverts the time constants and brings the reactor to its initial state Inputs SAMPLE_TSampling time for the REACTOR block (OB-dependent and runtime group-dependent) RS_COOL1= sets the reactor to "empty and cold" state. The input is reset automatically. SET_HOT1= sets the reactor to "full and hot" state. The input is reset automatically.
  19. The above slide shows the block parameters (input/outputs) of the REACTOR block for controlling the valves and mixers and detecting feedback messages.
  20. Subexercise 1In the hierarchy folder "ReactorsUnitAi" of the PRO_AS project, insert a new CFC chart called "Exer_Reaci". Insert the REACTOR block in this chart and call it "ReacAi". Compile, download and test the behavior of the simulation. ------------------------------------------------------------------------------------------------------ Stepsi is your group number 1. Open the multiproject in plant view. 2. Insert the CFC chart and rename it "Exer_Reaci". 3. Open the chart and select overview view (circled icon on the left on slide) 4. Drag the REACTOR block to the sheet. Switch to sheet view (circled icon on the right on slide). 5. Select the block and rename it to "ReacAi" via the Properties. 6. Compile and download the changes to the AS. 7. Switch to test mode and test the behavior of the block by setting parameters at the appropriate inputs. Refer to the parameter description on the preceding pages.
  21. Example of Valve Control via VALVE Block The above example represents a template for a simple valve control (open/close valves) with a control signal (open/close). The VALVE is the central block, block type: VALVE, from the CONTROL family The valve can either be switched via a control logic (AUTO operating mode) or via an operating screen (HAND operating mode). The operating modes can be changed over either by "gating" (parameter AUT_L) or via "operation" (parameter AUT_ON_OP). Input LIOP_SEL can be interconnected and makes this decision. Then VALVE issues a switching command to the valve via QCONTROL.Depending on the command direction (Open/Closed) a timer monitors whether feedback signal FB_OPEN or FB_CLOSE are received from the valve within a configurable time; otherwise monitoring error Q_MON_ERR is issued and the valve remains in the same position. Output QCONTROL and the feedback signals FB_OPEN and FB_CLOSE are connected to special driver blocks which return channel-specific information to output and input signals on the hardwire side.
  22. Subexercise 2Insert a VALVE block in the CFC chart "Exer_Reaci". Connect the block with the parameters of the REACTOR block as shown in the slide above. Compile, download and test the behavior in interaction with the simulation. Take into account the diagram on the previous page. After testing the first VALVE block, add additional VALVE blocks for reactor valves V2 and V3 to the chart. ------------------------------------------------------------------------------------------------------ NoteWe will not use any driver blocks yet for this example. We shall initially collect all blocks from the reactor environment in a common chart. We shall then split this chart into new CFCs, and name these according to their process tag type. We will connect the hardware once we have carried out the entire exercise. Notes on the TestMake the VALVE block parameters framed in red on the slide visible (they can be operated from the OS via picture blocks and are therefore not visible in the default setting). Now include these in the test too. In manual mode (AUT_ON_OP = Manual) you can influence the control output via MAN_OC by selecting Open or Close. The simulated feedback signals FB_V1_OP and FB_V1_CL from the reactor simulator will only switch over after 4 seconds. This results in the VALVE block being terminated and locked against further actuation. Set the TIME_MON parameter higher, reset the lock via the RESET input and try again.
  23. Example of Motor Control System via MOTOR Block The above diagram is an example of a simple motor control system (single direction, single speed). The MOTOR is the central block, block type: MOTOR, from the CONTROL family The drive can either be activated via a control logic (AUTO operating mode) or via an operating screen (HAND operating mode). The operating modes can be changed over either by "gating" (parameter AUT_L) or via "operation" (parameter AUT_ON_OP). Input LIOP_SEL can be interconnected and makes this decision. The drive issues a start command via "QSTART" to a auxiliary contactor that activates the motor's power contactor. A time watchdog is used to monitor whether the feedback signal "FB_ON" from the power contactor arrives within a definable time; if it doesn't, monitoring error "Q_MON_ERR" is output. Output "QSTART" and feedback signal "FB_ON" are connected to special driver blocks that supply channel-specific information for the output and input signals of the hardware connected.
  24. Subexercise 3Insert a MOTOR block in the CFC chart "Exer_Reaci". Connect the block with the parameters of the REACTOR block as shown in the slide above. Compile, download and test the behavior in interaction with the simulation. Take into account the diagram on the previous page. ------------------------------------------------------------------------------------------------------- Notes on the TestThe same notes apply as for the VALVE block. Therefore, take into account the diagram on the previous page here, too.
  25. Operating Modes of the Controller Block CTRL_PID The slide above shows the CTRL_PID block (closed-loop control) in manual operation mode. The MAN_OP manual value that can be operated by the OS is passed through to the LMN controller output. The SP_OP internal setpoint can be operated through the OS, but is not effective. After every CPU restart, the closed-loop controller is set in this operating mode combination (internal setpoint and manual operation). Internal/External SPThe setpoint (SetPoint) is selected by means of the SPEXTSEL_OP switch that can be operated by the OS: "0 = Internal" from SP_OP / "1 = External" from SP_EXT. Manual/AutomaticThe LMN manipulated variable is taken in manual mode from the operable input MAN_OP. During automatic mode, this manipulated variable is calculated by means of the PID algorithm. AUT_ON_OP input operation can be used to select the operating mode ("0 = Manual" / "1 = Automatic"). Operator EnablesThe change of operating mode is possible only if the responsible enable input for the operating mode to be set is at "1" (such as switching to "automatic" through the AUT_ON_OP input only if AUTOP_EN = 1). Removing an operating enable when the closed-loop controller is running does not change the running operating mode. Analog value operation is possible only if the enable input for this value is at "1" (for example, SP_OP can be changed in automatic operation only if SP_OP_ON=1). NoteIf you are working in the CFC chart in the test mode with updated values (yellow background), and there is no enable to operate the input, the value is first entered in the block input after OK. During the next cyclic block processing (by the OB), the input value is replaced by the old value.
  26. Subexercise 4Insert a CTRL_PID block in the CFC chart "Exer_Reaci". Connect the block with the parameters of the REACTOR block as shown in the slide above. Compile, download and test the behavior in interaction with the simulation. Take into account the diagram on the previous page. ----------------------------------------------------------------------------------------------------- Notes on the TestHere too, make the operable inputs visible (framed in the slide). Set the controller to manual mode (AUT_ON_OP = Manual) and set the manual value MAN_OP. Output LMN must pass on the value and the simulated temperature must respond. Set the controller to automatic mode and set the internal setpoint SP_OP. The controller shall kick in to adapt the simulated temperature to the setpoint. RemarkIn a later exercise we shall add driver blocks to this temperature control so that we can test the hardware connection.
  27. Subexercise 5Carry out a complete download of the AS. Pay attention to the displayed consequences. --------------------------------------------------------------------------------------------------- Procedure1. After starting the download process, select download mode "Complete program". 2. Acknowledge the notice that the CPU will be stopped and all blocks deleted. Important3. Select read back before complete download. Operations which have been carried out by the OS (without the "knowledge" of the ES) and only saved in the AS are then initially imported into the project. The result is compiled automatically, and transferred to the AS by the complete download. RemarkReading back is only possible if no block interfaces have been modified in the project. The note following the exclamation mark that downloading of changes would also be possible (third screen) only applies if the read back process has been intentionally started for the purpose of synchronizing the project data with the online data. In our case, triggering of this display was caused by the request for "complete download", i.e. this is also carried out!
  28. Driver ConceptThe recording of process signals is part of the input/process/output principle applicable in data processing. Control engineering additionally includes a statement on the quality of the recorded signal and the associated diagnostics information. Such diagnostics information makes fast elimination of a problem possible. In order to offload such repeated tasks from the planning engineer, PCS 7 provides the driver blocks. The planning engineer must insert the matching signal/channel driver for the process tag in the chart, and connect this to the symbolic signal name. The driver supplies the measured value (in the case of analog signals, the transmitter's measuring range is taken into consideration) as well as the associated quality code. The driver provides a selectable response toward faults (redundant recording of values, substitute value) as well as an automatic I&C system message to the OS. The concept assumes that the S7 CPU supports partial process images (starting end of 1998)! HW ConfigIn addition to the typical channel-related settings (current and voltage), a partial process image (PPI) is assigned to the object properties of each I/O module. A symbolic name (see Signalname_X on the slide above) is also assigned to every channel that is used. This symbolic name is listed in the symbol table of the CPU. In the CPU properties, the PPIs are assigned to the OBs they are to update. User ChartA channel-specific driver is inserted (CH_AI, CH_AO, CH_DI, CH_DO) per signal in the user CFC chart. The driver's "VALUE" parameter is connected by right-clicking and selecting Interconnection to Address -> Browse to the signal's symbolic name (the displayed symbol table is filtered for I/O signal names). This specifies the I/O word or bit in the PPI where the driver reads or writes its raw value. With analog values, the value is converted based on the measuring range (VHRANGE, VLRANGE).
  29. These drivers are not dependent on the type of ET200M I/O module used; therefore, they can be configured in the chart before the HW Config is complete (as long as the process tag name is already known). NoteWith V 5.2 and higher, the above-mentioned drivers are supplemented by the "universal" drivers (CH_U_AI, CH_U_AO, CH_U_DI, CH_U_DO). They can also be used for PA field devices (PA profile 3.0). This allows you to configure as much as possible in a hardware-neutral way. Module DriversAfter all channel drivers have been inserted as needed, you must prompt the CFC to generate the other necessary drivers. When you start the compilation, the screen displayed offers the option "Generate module drivers" (if at least one channel driver was inserted in the chart). Then automatically - before compiling - charts @1, @2 etc. are created with the necessary module and diagnostics drivers. When a delta compile is performed, if the appropriate option is set, the drivers/HW Config are checked and updated if necessary. The @CPU_RT chart is created in addition with a block which monitors the CPU load, displays it on the OS, and permits so-called emergency operation in the event of an overload. Compile and Download The functions Compile and Download seen earlier on are used to trigger the compile and/or download procedure. If the settings for compile and download still show "Entire program", set "Changes only" now. NoteYou can also perform the compile and download procedure in one go. With this function (which we shall look at in the chapter on Multiprojects) you can merge the modified data from various components consistently in one single step (e.g. networks, hardware, blocks, charts, OS servers, OS clients). Previously you had to carry out several different steps in different applications to achieve this merge - now a centrally controlled process ensures these steps are carried out in the correct sequence.
  30. SubexerciseAnalog input 0 of the AI module (4 to 20 mA) is to be read in. A value is to be returned on analog output 0 (4 to 20 mA) of the AO module. Configure and test this function. "Play around" with the driver blocks. ------------------------------------------------------------------------------------------------------- Steps1. In the CFC chart "Exer_Reaci", insert a CH_AI (driver block for analog input) and CH_AO (driver block for analog output) each on a separate free sheet. 2. On the two blocks, interconnect the parameter VALUE with the (symbolic) address of the respective input and output channel. The analog input value is received from IW 512 (input channel 0) . The output value is returned on the analog output QW 512 (output channel 0). 3. Test the interconnection ------------------------------------------------------------------------------------------------------- Procedure1. Select the CH_AI and CH_AO blocks from the DRIVER family in the PCS 7 library and position them on a free sheet of the "Exer_Reaci" chart. .2. Then select the VALUE input on the CH_AI block. By right-clicking and selectingInterconnection to Address you open an extract of the symbol table showing the addresses of the suitable data type. Select the row with the address of channel 0 of the input module (e.g. symbolic name AI_CH0). In the CH_AO block, select the VALUE output and interconnect it in the same way with the symbolic name AO_CH0.
  31. Compile the charts using the option "Generate module drivers". If everything was performed correctly, additional interconnections for your two drivers should be displayed (see slide) and additional charts called @1, @2 etc. should appear in the chart folder of the CPU. If there are any problems, select Options  Logs  Module Drivers tab to check. Download the CPU. 3. As the analog output 0 and analog input 0 are wired together in the hardware in the test installation, the following applies for this test: What you send out via the output driver and output module (4 to 20mA) must come back via the input module and the input driver. You can test this as follows: Set parameter U in the "Analog_Output" block to a value within the limits UHRANGE and ULRANGE. It is digitized (within the limits) and sent to the output module. It is converted to current there (4 to 20mA) and applied via the link connections to input 0 of the input module. The input module then generates the digital value which is converted by the "Analog_Input" block within the VHRANGE and VLRANGE limits and output to parameter V. Also test a wire break (if possible in the training room). How does driver output QBAD react? Activate SUBS_ON, set the parameters for SUBS_V and test the wire break again. What happens with output V? First test a simulation at the input driver then at the output driver (SIM_ON and SIM_V, SIM_ON and SIM_U) For more information on the drivers, please refer to the online help (select the driver and press the F1 function key).
  32. Technical control loop In this control loop, the manipulated value of the closed-loop controller (CTRL_PID.LMN) is passed on to the AO output module by means of the CH_AO output driver. The current/voltage signal affects the control valve for the heating. The AI input module and its relevant CH_AI driver read in the reactor temperature. This temperature is supplied to the closed-loop controller as a process value (CTRL_PID.PV_IN). Simulated control loop In our system, the hardware outputs for the AO output module are wired directly to the hardware inputs for the AI input module. In other words: the current for channel x of the AO flows through the same channel x for AI. The REACTOR block simulates the reactor system. There are similar time characteristics between the block's heating input (REACTOR.V_HOT_FL) and the simulated temperature output (REACTOR.TMP_INT) as for the technical reactor. Inserting the REACTOR block in the loop, between the closed-loop controller and driver on the one side and linking the technical reactor on the other side, the time characteristics of the simulated control loop do not change in comparison to the technical control loop.
  33. SubexerciseThe "simulated control loop" (described on a previous page) is to be configured and the hardware and drivers integrated. The figure above provides a proposed solution. After you have created the chart, compile and download the program. Test the function. ------------------------------------------------------------------------------------------------------- Steps1.Position the blocks belonging to the control on one sheet in the chart. 2.Change the interconnections (see slide) 3.Compile and download chart 4.Test the function ------------------------------------------------------------------------------------------------------- Procedure Position Blocks1.Open the CFC chart "Exer_Reaci", select overview display, lasso the blocks (REACTOR and CTRL_PID) and drag them to the sheet where the drivers are. Switch to sheet view. TipYou can double-click in the CFC in the white space between 2 blocks to switch between overview and sheet view. The block you double-click next to is opened in sheet view in the middle of the monitor.
  34. Changing Interconnections 2.You can easily change interconnections by selecting the end point (parameter) you want to move, keeping the mouse button depressed and dragging it to the new end point (parameter). If origin and destination are not located in the same sheet or chart, open both charts in CFC and arrange the windows side by side. Then drag the end point from one window to the new position in the other window. Exception: An "Interconnection to address" must be called and selected again. Compile Chart and Download Target System 3.From the CFC chart, click the Compile icon (set correct options). In the Options, choose "Changes only" and "Generate block drivers". Download to the AS (download changes only) by clicking the Download icon. Before the Test4.Before the test, check whether you can view all the required parameters of the blocks. If not, select the block, right-click and select Object Properties -> "Connections" tab -> "Invisible" column to change the selection. Set the operable inputs of the CTRL_PID block so they are visible (SP_OP, MAN_OP, SPEXTSEL_OP, AUT_ON_OP) if this has not yet been done. In the "For test" column, preset the parameters. TestActivate/deactivate test mode via Test->(Check Process Mode or Laboratory Mode!) -> Test Mode Set parameters for the inputs and monitor the results. If changes are necessary, turn off the test mode. Change the chart, update the module driver if necessary, compile and download again. Perform a new test.
  35. Message Configuration Messages are configured either in the object properties of the block issuing the message or centrally in the process object view. Here we shall only show the first possibility. After opening the object properties, click the Messages key. A screen appears (see slide) where you can adapt the event texts or assign priorities in the OS display. The main components of a message are the following: Message ClassMessage classes differ with regard to their acknowledgement requirements. Messages with the same acknowledgement requirements can be combined into a single message class. The following message classes are preconfigured in Alarm Logging (on the OS): "Fault", "System messages requiring acknowledgement" and "System messages not requiring acknowledgement". In WinCC you can define up to 16 different message classes. With "prefabricated" PCS 7 blocks (e.g. CTRL_PID) the message classes are preset. PriorityIn this field, select which messages need to be acknowledged with which priority. The higher the value, the higher the priority. In the PCS7 environment, value 16 represents the highest priority. EventHere you can add any text you want to display for the event on the OS. Info TextYou can enter additional information here. The operator can selectively display this information on the OS, if required. NoteAs on the OS the origin (HID) is displayed in the message line and the block comment is displayed in the event, generally there is no need to change the text. Origin, OS Area, Batch Identifier In PCS 7, these are automatically updated with the project data during the OS compilation procedure.
  36. Function BlockA function block (FBy) consists of the program (program code) and a description of the variables used (variable declaration). InsertWhen you insert (instantiate) a function block in CFC, an instance DB (such as DBy1) is automatically created, based on the declaration section. This instance DB forms the I/O bar for setting parameters and connecting. Run PropertiesOne or more invoking OBs are assigned to the block instance via the run properties. This means that for a block the relevant code sections are processed for various events (various OB calls), whereby the required data is located in the same DB. SFC 6 (RD_SINFO) is called in the code. Among other things, SFC 6 specifies the number of the OB number that just called the block. Thus event-specific reactions are possible in the block. ExamplesBlocks with "startup characteristics" are installed not only in the "normal" runtime OB but also in OB100 (cold restart OB), so they can be set in a defined mode when the AS has completed a cold restart. - Driver blocks are also installed in other OBs such that various diagnostics/tests can be executed. - Blocks with time properties (such as PID controller blocks) whose algorithms use parameters, are useful only when running under time interrupt OBs. FunctionsFunctions (FCs) are similar to the FBs, but functions do not have their own data block assigned to them and therefore have no memory. To handle functions in CFC like FBs, CFC provides the parameters with so-called pool DB cells as temporary storage.
  37. Data TransportThe blocks exchange data with one another and with the OS. The time sequence of the data transport plays a role. InterconnectionsFor blocks structured with CFC, data exchange takes place by means of connections (interconnections). The exchange takes place according to the "fetch principle". The interconnections are compiled into transport commands that run in the OB before the block whose input is interconnected, or after the block whose output is further interconnected. This means that the input does not "fetch" (update) the interconnected value until it is invoked in the OB. Operator ActionsThe OS sends operator values (asynchronous to AS block processing) and enters them in the block input. Because time passes between the OS operating procedure and AS processing of the input value, reliability tests are conducted both on the OS and also later on the AS side when the block is invoked. The purpose of these tests is to ensure that operations considered to be okay by the OS, but which are no longer permissible due to time-deferred execution in the AS, can be intercepted. Operating BlocksThese blocks are contained in the PCS 7 library for analog and digital values. These blocks are represented in pairs, by an OS faceplate, displayed as a block representative in the OS, and a corresponding AS function block, which passes on the value the OS handled through interconnection in the AS to blocks that continue processing.
  38. Run SequenceThe information flow a task requires determines the sequence in which the blocks are called up during runtime. The information flow sequence is: “Read in -> Process -> Output" Each block must have all necessary information before processing begins. This means that the blocks providing the information must be processed before that particular block is processed. Generate Runtime Group When a chart is created, a new runtime group is automatically created and integrated in the run sequence in accordance with the built-in pointer. The name of the runtime group corresponds to the chart name. The automatically generated runtime group and chart are relatively interdependent, as long as you have not made any manual changes to the runtime group, e.g.: changed the name and/or later added another block to this runtime group. Optimizing the Run Sequence This function optimizes the run sequence of a program according to the data flow to reduce the dead times in the CPU during execution. Optimization takes place separately for the OBs/execution levels (tasks) and runtime groups (see following pages).
  39. Scan RateTo use the AS computing capacity optimally, each runtime group should be processed only as fast as the time change for the process data requires ("characteristic change speed/process-typical time constants"). There are circumstances where the runtime group does not have to be called up for every cycle of the calling OB. Phase Offset Runtime groups with the same scan rate would all load the AS simultaneously, because they would all be either processed or not processed at the same time. To divide processing equally, you can also specify a phase offset that makes it possible to have a time-deferred startup of the various runtime groups. Activating/Deactivating Runtime Groups You can activate and deactivate runtime groups in the window of the runtime editor by checking/unchecking the "Active" checkbox in the object properties of the associated runtime group (see following pages). Example (see slide) Initial stateIn the above timing diagram, the numbers in the white rectangle. Loading by programs in the respective OBs: OB33 (100 ms), OB32 (300 ms), OB31 (600 ms) and OB1 (400 ms) which have to be repeated corresponding to the runtimes of the OBs and their priority. Modified stateIn the above timing diagram, the numbers in the light gray or dark gray rectangle. This is achieved in that the original OB31 program (600 ms) is deleted there and divided into two runtime groups. These are inserted in the OB32 with down-scaling of "2" and a phase offset of "0" and "1" respectively. One of the runtime groups (light gray) is executed within the first second, and the second group (dark gray) in the second second. Execution of the OB1 program (with the lowest priority) is also distributed over the two seconds. Result: More uniform loading of the CPU.
  40. CPU_RTWhen compiling CFCs, a chart with the name @CPU_RT is created automatically. The CPU_RT block is already present in this chart. The CPU_RT block is installed by the CFC in the OB100, OB1, in all OB3x and OB8x provided these are used by the user program. The CPU_RT determines the runtime of the individual OBs and their contribution to the cycle time (only with FW version 5 and higher of the CPU). It carries out appropriate actions which can be set by the user within certain limits to prevent a stop in the case of a CPU overload (OB 80, cycle time exceeded) and to guarantee continued operation of the AS. It disregards cycles/time interrupts in order to process the remainder of the overload. The blocks are therefore executed less often than planned, but the AS continues to run and the plant can still be operated! This situation is referred to as emergency operation, and is made clearly visible by an I&C system message. (Submission of the message is carried out by the OB_BEGIN block; refer also to the origin information in the message window.) Buffered start events (OB 3x still being processed) are additionally determined and displayed. The loss of start events is signaled as an error. RemarkUsing the CPU_RT block, the configuring engineer can specify which particularly important time interrupts are not to be down-scaled (parameter OB3x_ATTN). The dynamic response changes for the other blocks which continue to run in a down-scaled OB. The realtime response is now slower than the configured realtime response.
  41. Additional exercise (option) Try to recognize the consequences of an OB32 overload. Use the LOAD block from the KURSBS60 library for this purpose (see slide). Supplement the CFC "Attempti" chart as suggested above. ----------------------------------------------------------------------------------------------------- Procedure1. LOAD block: Switch the load on using "ON"=1. Increase the OB32 load by increasing the parameter "CYCL". 2. INT block: With the parameters "TI"=1 and "U"=1, the block will increment the output "ACTUAL" each time OB32 is called. If Test  Test settings  Monitoring cycle = 1 second is set in the CFC, the value of the output will be incremented by 1 every second in test mode. This applies to normal operation. Increase the CYCL input of the LOAD block, and observe the output "V" of the INT block. Also check the diagnostics buffer of your CPU using the CFC menu PLC  Module information  "Diagnostics buffer" tab and the (OB1) cycle time in the tab with this name. 3. Connect the output "V" of the INT block to the input "U" of the MEAS_MON block. In the latter, select "Long-term archiving" in the properties of the input "U" under "Archive". 4. Compile and download the AS 5. Compile the OS. The parameter "U" of the MEAS_MOS is created there in Tag Logging, in the "System archives" archive. 6. Activate the OS, and create an online trend for this variable. Carry out the same increase to the load in the AS, and check the reaction on the OS.
  42. Exercise 1In this exercise you only need to optimize the runtime sequence for runtime group "Exer_Reaci". The runtime group "Attempti" is not to be optimized, and the runtime groups should not to be shifted around in OB32. ----------------------------------------------------------------------------------------------------- ProcedureOpen the runtime sequence in the CFC (circled icon). Select OB32 and open the properties. Set "Runtime groups only" for the optimization. Select the runtime group "Attempt", open the properties and deactivate the optimization. You do not need to do anything for the runtime group "Exer_Reaci" as optimization is active in the default setting. Remember the sequence of the blocks in runtime group "Exer_Reaci" for comparison after optimization. RemarkIf you have another look at the runtime sequence, you will see the symbol "Ø" next to the OB or runtime group symbol (see slide above, top right). This means "no optimization". It can be necessary to deactivate optimization if feedback signals in a block sequence may only be evaluated in the manner you have defined. The optimization procedure attempts to arrange the blocks so that the block whose input is connected is called after the block which returns the value. If blocks are interconnected from different runtime groups, the option "Optimize OB and runtime groups" would also move the sequence of the runtime groups in the OB. Start optimization from the CFC via Options  Optimize Runtime and check the result.
  43. AlternativesIf individual OBs or individual runtime groups are to be optimized, the OB or the runtime group can be selected using the mouse and executed using the context menu by right-clicking and selecting Groups/Optimize Tasks
  44. Interconnecting Runtime Group Statically If you select a runtime group in the runtime sequence and open its properties, the Active option is set. This means that all blocks from this group are taken into account for each OB pass. If you deactivate this option, none of the blocks in the group are taken into account/processed. In the associated CFC chart all blocks display a red exclamation mark in the rectangle showing the execution data. This indicates to the configuring engineer that the block is not active! AlternativeSelect the runtime group in the runtime sequence and execute the process using the context menu by right-clicking and selecting Activate Runtime Groupor right-clicking and selecting Deactivate runtime group
  45. Interconnecting Runtime Group Dynamically To interconnect a block's Boolean output in CFC right-click and selectInterconnection to Runtime Group - it can be interconnected with any selectable runtime group within a selectable OB. All blocks within the runtime group are marked with a question mark in the CFC chart. In the above example, this means: If output QVHL of block "Oper_second_U4" returns 1, the connected runtime group "Exer_Reac" is active. If output QVHL of the same block returns 0, the connected runtime group "Exer_Reac" is not active and the lower-level blocks are not being processed! This means that the "?" indicates blocks in a chart/runtime group which is only conditionally active. Note 1It a block interconnects its own runtime group via an output, it can disable the group! These connected runtime groups are not visibly marked, but they are listed in the chart reference data. You can display them via Options  View  Cross-References Chart Element -> Runtime group. Note 2The connection procedure only affects the interconnected runtime groups. If a block is incorporated in several different OBs, it behaves according to the associated runtime group! The "?" symbol is dynamically updated during runtime.
  46. Chart in ChartPurpose of this technique: To design clear, well-structured charts. Chart sections that are repeatedly used with the same structure can be combined to look like one chart with a predefined sheet bar - and thus like a block with I/O. Procedure1. The lower-level chart is created and given interconnections (this can also be carried out in a (master data) library). 2. The previously created chart is inserted in the higher-level chart. There it its displayed like a block; its sheet bar (I/O) was defined in step 1. 3. If the lower-level chart was created in a library and was dragged into the top chart, it will not be shown in the project's chart folder (as you can only see the top chart there). The associated blocks are inserted in the runtime sequence. You can change their sequence in there if required. Alternative:If you obtain the "New chart" from the Catalog tab "Blocks" and place it as an empty chart in the CFC chart, then you can implement a top-down approach - i.e. reverse the sequence in points 1 and 2 in the above described procedure: 1. In the higher-level chart, first place "only" empty charts as wildcards for specific functions; the function is documented first "only" as name of the respective empty "black box". The result is a function overview chart consisting of the various individual charts. In the second step, the details are added to these individual charts as lower-level charts, i.e. "filled" with block functionality and provided with chart interconnections. 3. Now you can interconnect the individual charts in the higher-level chart.
  47. ExerciseIn the library COLOR_LIB, create a simulation process for a valve actuator. This process shall be controlled via "Start/Stop" and "Open/Close" signals. The Open/Close runtime (entire runtime) shall be configurable. The simulation shall return the position in % as well as supply the end position signals. ----------------------------------------------------------------------------------------------------- Steps1. Create a new chart "Valve_Simui" in the library (i is your group number). 2. Configure a chart as described above. 3. Define the chart interconnections for this chart. 4. Compile the chart without errors. ----------------------------------------------------------------------------------------------------- ProcedureIn the Component view of the multiproject, insert a new "Valve_Simu" chart in the "COLOR_LIB" library by right-clicking and selecting Insert New Object -> CFC. If the S7 program "S7_LIB" does not yet have a chart folder, the folder is automatically created together with the CFC chart it contains. Create the chart as illustrated in the above diagram. Chart InterconnectionsOpen the window for the chart interconnections (via symbol or menu View  Chart Interconnections) and structure the CFC work sheet so that you can see both the chart interconnections and the blocks (see above). In the top left pane, select the symbol for inputs (IN), drag the block inputs that are later going to be the inputs in this lower-level chart to the top and enter unambiguous names for them. You can insert additional lines in the right pane by right-clicking and selecting New Declaration Line....
  48. Repeat the procedure for the outputs (OUT) and if necessary for the input and output parameters (INOUT) too. Compile ChartCompile the chart. If this is completed without errors, the chart is ready for further processing and can be integrated in your project.
  49. ExerciseTest block VAL_MOT from the "PCS 7 Library V70". Use the previously created simulation chart as chart-in-chart. ----------------------------------------------------------------------------------------------------- Steps1. Position/check the pointer for chart insertion on OB 32. 2. Insert a new CFC chart "Valve_Testi" in the "Plant2ReactorsTesti"hierarchy folder. 3.Place the block VAL_MOT and the previously created chart "Valve_Simu" on the new chart. 4. Interconnect the components as illustrated in the above diagram. 5. Optimize runtime sequence. 6. Compile, download and test the example. ----------------------------------------------------------------------------------------------------- ProcedureIn plant view, insert a CFC chart called "Valve_Test" in "Plant2ReactorsTest". To create the new CFC chart in OB32 together with the runtime group, right-click and select Predecessor for Installation Position and position the pointer on OB32. Insert block VAL_MOT in your chart. (You can also enter VAL_, for example, in the search box, click the binoculars symbol, and use the located VAL_MOT block). Set the operable inputs in your block so they are visible, i.e. OPEN_VAL, CLOSE_VAL, STOP_VAL and AUT_ON_OP. Click the library symbol, search for the chart "Valve_Simu" in the COLOR_LIBS7_LibCharts folder and drag it to the working area. Interconnect the components as illustrated in the above diagram.
  50. Optimize the runtime sequence of the blocks (in OB32) in the runtime editor via Options > Optimize run sequence. Compile and download the program (the blocks). Activate test mode. To test the lower-level chart, position the mouse pointer on the "Valve_Simu" chart, then right-click and select Open a chart Now you can check the signals in this chart, too. RemarkWith chart-in-chart (nested charts), if you drag a new lower-level chart from the library and drop it in a higher-level chart on an already existing chart of the same type, you are prompted whether you want to replace the existing chart. This allows you to update changes made to the original individually in the already existing copies. However, when the chart is replaced, the inputs are reset with default values (if they are not interconnected). This means that if you have previously set parameters for individual connections in the copy, you may have to repeat these.
  51. ExerciseModify the "Valve_Simu" chart from the "Color_Lib" library and compile it as block FB 602. The chart interconnections are to be the inputs/outputs of this block. Further conditions: - The interconnection "integrator time" is to be renamed "operating time" and parameterized with the entire runtime of the valve (in seconds), - The SAMPLE_T parameter of the integrator is to be moved to the sheet bar and assigned the attributes "S7_sampletime = true" and "S7_visible = false", - All other inputs/outputs are to be operated and monitored from the OS (attribute "S7_m_c = true") ------------------------------------------------------------------------------------------------------- Steps1. Copy the "Valve" chart to another chart. 2. Make any changes/additions to the chart. 3. Test chart/program. 4. Define chart interconnections. 5. Compile chart as block type. 6. Insert symbol for block in the symbol table. ------------------------------------------------------------------------------------------------------- Procedure Copy Chart- Copy the "Valve" chart within the library under the name "V_SIM_SB" and open the copy. Make the parameter "SAMPLE_T" visible for the INT_P block. Add/Change- Open the window for chart interconnections (via menu View -> Chart Interconnections or symbol). Select the line "StartStop" in the table, right-click and select New Declaration Line
  52. Insert a new parameter line in front of it. Fill out this line. Right-click and select Object Properties to change the attributes (the defaults) for this line's parameter as described. TestBefore testing in the project, the original chart is to be tested as CFC, i.e. by compiling it as a program and downloading it to the test CPU (if you have one). Only generate the block (see description above) and include it in the project if this test worked. Compilation- Activate the menu command Chart -> Compile -> Chart as Block Type to initiate the compilation. Fill out the screens (see above). Click "OK" to start the SCL compiler. If no errors occurred, FB602 is stored in the library's block folder. Symbolic Name- Call the symbol table for your library, e.g. from the CFC, via Options -> Symbol Table Supplement the last line as shown in the above screenshot and save.
  53. Note:It is advantageous to activate the option "Download changes in RUN" for the PCS 7, i.e. if you do not change the sheet bar of the future block, the compiler will try to use local data for the intermediate results. This in turn makes it more likely that the FB can be downloaded later online, as well, after changes were made. Disadvantage: The local data requirements increase (must be determined by block developer and should be below the default values for the CPU - see also Project structure  Local data requirements). Additional ExerciseWhich of the blocks integrated in the FB602 has "Startup characteristics" and how can you tell? Check whether FB602 has also inherited this behavior or needs to be modified to reflect that it too has startup characteristics! ( Index "S7_tasklist")
  54. Multiple Instance The FB602 is structured so that another, already existing FB40 can be called within it. This FB is detected as static variable with the data type FB and allows to achieve nesting of variables and concentration of all instance data in one instance data block (multiple instance). StructureIf you want to look at the structure of your new block, proceed as follows: - In the block folder of your library, select FB40 (INT_P), then right-click and select Open Object. LAD/STL/FBD is opened. - Close the block only via File -> Close (Do not save, if you are prompted to save!) - In this editor open your block FB602 (V_SIM_FB) via right-click and select Object -> Open Now you can see the above structure on your screen. Attributes- Position the mouse pointer in a line (with green marking), then right-click and select Object properties -> Attributes to display the table with attributes (properties) of the parameter. ChangesIf you change/supplement attributes here, and then save the block, it will be given an STL identification. The changes must be made known to the CFC (if the block has already been used). Further consequences arise from the type of modified attributes.
  55. Locate ChangeTo detect possible changes between e.g. already instantiated blocks in the project and the associated library substitute before any further use, you can compare blocks - as shown above: Right-click on selected blocks or blocks to be checked (here FBs from the library --> Compare blocks... --> Specify comparison path/objects (here select block container for the project). Result A:No deviations identified in compared objects Result B:List of objects with deviation + specific description NoteThis is only a "fast comparison" without additional options (where are any differences?). From the PCS 7 viewpoint, the VXM option (Version Cross Manager) offers more efficient information (also for non-programmers). This application will be discussed later. However, the VXM does not evaluate the consequences for the S7 program if the change were carried out. A further possibility is shown on the next pages. This indicates the consequences of a possible synchronization with the option for aborting the commenced synchronization if the change does not appear to be appropriate (e.g. downloading only possible with CPU stop).
  56. Test the EffectIf instances of a block are already "successfully" in use in a project, but changes need to be made to this block, it is advisable to proceed as follows: 1.Do not touch the original library(master data library)! 2. Make a first copy of this library to Test_lib S7_Program_Copy1 and make the changes to the block. By starting the synchronization (commencing with the modified block), display the consequences of synchronization (if necessary, cancel before finishing!). If you are not performing the function test for the modified block on a dedicated test CPU, this method provides protection from the "unwelcome surprises" of how a modification could affect a project. NoteAs each change is immediately validated in the program and there is no UNDO function, if it advisable to make two backup copies of the original library. Save the modified block in the first copy; in the second copy the block may change when being tested.
  57. TestPlace the block in its original form (in this example V1.0 from the original library) in a CFC test chart (chart container of the master data library - see previous page!); also place the modified version there (in this example V1.1 from "modified library" S7-Lib(1)): Procedure1. Select the modified block in the program of the source library (in this example S7-Lib(1), block V_SIM_FB). 2. Menu Options  Charts  Update Block Types 3. Select the program of the target library or target project, and highlight the target block. Highlighting is useful if several blocks have been selected in the source, and if updating is not to be carried out in the target for the "Problem" block on completion. 4. Analyze the consequences. 5. Cancel or finish. The subsequent effect of the reimport is displayed in the "Consequences" column as a decision aid for selection or deselection: All associated instances are adapted (no further consequences!). The OS must be recompiled. All associated instances are adapted. You must subsequently compile the OS. Download the complete program in the STOP state. Following compilation, downloading of changes in the RUN state is no longer possible. All associated instances are adapted. Check the selection, and exclude objects if necessary which you do not wish to update because of the consequences. Therefore:The test takes place on the library level "working with a double safety net" before you decide whether to import the modified block into the project or not.
  58. Once you have determined the possible effects the block change can have on the project, you can synchronize the blocks in the project itself, i.e. definitively replace the version that has been used up till now in the charts with the new one for all instances! - via "Type import" in the project: By clicking the "Finish" button, the selected blocks are transmitted to all selected programs, and imported into the charts. Further processing with the new block versions is then possible there. A log is output following completion of the procedure, and this can also be printed.
  59. ExerciseIn "Test_Lib S7 program_Copy1" change block INT_P (FB40) so that the input TI and the output V become HMI-capable for the OS. Check which consequences this change has on the AS download. Then carry out the block synchronization in the project. -------------------------------------------------------------------------------------------------- Steps1. Open FB 40 (INT_P) in the block folder of the library. 2. Change and save input TI and output V according to the requirements. 3. Import new block version in your own program. 4. Project synchronization ----------------------------------------------------------------------------------------------------- ProcedureBecause the block is not only located in the library but was also already used in the project, it is necessary to synchronize the block in the project after having changed it in the library. Step 1:First carry out the described modification in the master data library. Library ComparisonIn the master data library/block folder select FB40 (INT_P) and open it (acknowledge the message "Block is protected" with OK). The block is opened with the "LAD/STL/FBD" editor.
  60. Click parameter TI then right-click and select Object Properties to open the table with the attributes for this parameter. Enter attribute S7_m_c and the value "true". Repeat the procedure for output V. Click Save. The block now has "STL" as the programming language. The modification on the FB must now also be updated/imported in the charts (of the same program). Open a CFC chart in the library (e.g. "Valve"). Activate the menu command Options  Block types A screen is displayed. In the chart folder pane select block INT_P and click "New version...". The import information window prompts you to confirm the attribute change. You can also click the Help button - the help function will tell you that a delta download is possible but that an AS-OS transfer is necessary. Click Yes to confirm the import prompt. The new version is now imported. The properties are entered in all existing instances. If you then view an instance of INT_P in chart view via "Object Properties", you can then also select the "Operator Control and Monitoring..." option. Activate it and the instance of type INT_P and both parameters can be accessed for OS configuration.
  61. Step 2: Project synchronizationThe block is to be entered with all its changes in the project. Open the project and the library in the SIMATIC Manager. Copy FB40 from the library to the block folder of the AS (CPU). Confirm the "Overwrite" prompt with "Yes". Now the FB in the block folder differs from that in the chart folder. Here too, the import process must be repeated as previously for the library. Compile the charts in the CFC. Download the changes to the AS. Compile the changes to update Tag Management in the OS. The synchronization is completed.
  62. Step 2: Project synchronizationThe block is to be entered with all its changes in the project. In the multiproject you can compare all block types used in the individual projects with the block types of the library and update them. If the library's block folder always contains the most recent versions, an update will result in the following: all or only specific block types in all or selected projects of the multiproject or single project will have the same updated version. When the block types are updated, all associated block instances are also updated in the relevant charts (central type synchronization). Procedure1.Select the FB40 in the library in which it was modified (the master data library), and use the menu Options  Charts  Update Block Types to open the dialog box (see slide). The projects contained in the multiproject are listed here (they are already preselected). After the check is performed, the next screen lists the consequences of the synchronization. A log file is created (remember the path!). Now either click Finish to complete the synchronization or Cancel to cancel the operation. The log is then automatically displayed. You can view the data again later by following the path previously displayed. The log is overwritten next time!
  63. Master Data Library You can define a library in a multiproject as the master data library with the File  Multiproject  Define as Master Data Library menu command. You can use the master data library to store blocks that you want to use consistently for all projects. This function can be useful, for example, for engineering with PCS 7. You can only define one single library as a master data library. The master data library can only contain one S7 program and one OS. Plant Hierarchy When a multiproject is created using the PCS 7 project wizard, the plant hierarchy is automatically created with two hierarchy folders called "Process tag types" and "Models". If they do not yet exist, these folders are also automatically created when using the functions "Create/change process tag types" and "Create/change models". In that case, they are indicated by a specific graphic symbol. You can create any other folders as required. Advantage of the plant view: Plant hierarchy folders containing CFC/SFC charts and pictures in which objects are interconnected are automatically connected again correctly when copied to a project.
  64. Master Data Library Our multiproject consists of one or more projects and a master data library. Process Tag TypesCFC charts form the basis for process tag types. These charts normally include the open-loop or closed-loop control for a process tag, including the associated driver blocks for the inputs and outputs. You use a menu command to create a process tag type from a standard CFC chart (see template). By assigning an import file to the process tag types, you can now automatically generate the CFC charts for the process tags required in the project. Selected information which needs to be adapted on a case-by-case basis is entered in the file itself. ModelsA model is a standard solution for a function that can consist of multiple hierarchy folders and multiple charts and pictures. The I/O that you want to edit further (modify) are selected in these charts. Then, you use a menu command to import offshoot versions from the model into a selected target project.
  65. ExerciseCopy the "Exer_Reaci"chart to the "UnitCi" folder in the PH (i is your group number). Delete all blocks that do not belong to the temperature control system. A process tag type will be created from the remaining chart. This will then be saved in the master data library under "Process tag types". Use an import file to determine which parameters are to be used for which specific process tag. The actual import occurs afterwards. ----------------------------------------------------------------------------------------------------- Steps1. From the copy of the "Exer_Reaci" CFC chart (in the "UnitCi" folder in the PH), create a model chart for the "Closed-loop control" process tag type. Name the chart "Closed-loop control". 2. Create process tag type "Closed-loop control". 3. Create the import file for the process tag import. 4. Delete the copy in the "UnitCi" PH 5. Import the "Closed-loop control" process tag type back to the "UnitCi" folder in the PH ----------------------------------------------------------------------------------------------------- Procedure1. Prepare the model chart by renaming the CFC chart "Exer_Reaci" in the "UnitCi" plant hierarchy to "Closed-loop control". Delete all blocks other than types CH_AI, REACTOR, CTRL_PID and CH_AO. Change the names of the remaining blocks to neutral names that are not specific to a device (e.g. reactor, controller). 2.Start creating the "Closed-loop control" process tag type by selecting the "Closed-loop control" model chart, then right-click and select Process tags  Create/modify process tag types A dialog box opens. The blocks of the model chart are listed along with their parameters in the left pane. Select each parameter that must be changed in the process tags (copies of the process tag type). Use the arrow key (see slide) to move them to the right, and select the type of connection (parameters for value input, signal for interconnection).
  66. In this exercise, you define the VALUE I/O as signals and the measuring range limits (xHRANGE or xLRANGE) as parameters for the drivers. For the controller, you will select the message as an I/O (see slide above, on the left). TipDouble-click an I/O in the left pane to automatically move it to the right pane. Intermediate ResultClick "Finish" in the dialog box to copy the "Closed-loop control" chart from the project to the chart folder of the master data library. The I/O you have selected are marked there. The "Closed-loop control" chart is displayed with the symbol for "Process tag type". At the same time, a PH folder called "Process tag types" is created in the plant view of the master data library. It has its own symbol. The process tag type "Closed-loop control" (and any subsequent process tag types) is managed in this folder.
  67. Assign Import File3.To assign an import file to the process tag types, select the "Process tags" hierarchy folder or process tag type, then right-click and select Process tags  Assign/create import file. Click the "Create File Template..." button to open a menu where you can select different columns that you will need later in your import file (several tabs). In the IEG file, select the required line and duplicate it as many times as required. To do so, right-click and selectDuplicate Row. Fill these new rows with appropriate information, i.e., as you would like to have the copies of the process tags with the modified parameters in your project. Delete the Original4.For our exercise only, delete the chart under "UnitC". Import Process Tag Types 5.If the process tag type(s) to be imported are selected and an import file is assigned, right-click and select Import to initiate the process tag import. If the "Include signal in the symbol table" option is selected, the interconnection descriptions from the import files are not only sent to the assigned I/O but are also written to the symbol table of the resources of the hierarchy folder in question. The log for the process tag import appears on the screen. Textual InterconnectionTextual interconnection is a special type of block interconnection, for which the interconnection partner can also be located in another chart folder. Textual interconnections normally consist of a PH path name incl. block and I/O names and are converted to real interconnections via „Options  Make Textual Interconnections“
  68. ExerciseThe compiled solution for reactor A in the "Exer_Reaci" CFC chart will now be split into subtasks. This does not affect the already completed "SFC_ReacAi" chart as the blocks that are read or written by this chart are merely moved. ----------------------------------------------------------------------------------------------------- Steps1.Expand the plant hierarchy according to the details. 2.Insert new CFC charts. 3.Move blocks (according to their function) from the "Exer_Reaci" chart to each of the new charts. 4. Compile, download and test. ------------------------------------------------------------------------------------------------------ 1.Complete the plant hierarchy for reactor A (UnitAi) by adding suitable lower-level hierarchy folders for the functions (draining, filling, heat control, etc., see slide). 2.Insert an appropriately named CFC chart in each folder. Suggestion: Use the names shown on the right of the slide. If you set up the PH such that it does not contribute to the HID, the chart and the block name remain. This identification would correspond to the name in the P&I scheme. 3.In CFC open the charts between which you would like to move blocks. Arrange the windows containing the respective overview display of the charts. In CFC, verify the setting Options  Settings  Copy/Move… Connections to Addresses  Include
  69. Select the blocks to be moved in the "Exer_Reaci" chart, and use the mouse to drag them into the new chart. Once all blocks have been split, zoom into the individual charts and position the blocks. Then check the SFC_ReacA by opening a step. Access to a block parameter in a configured row must now point to the new path in the new CFC chart. 4Compile and download the changes. Open the "Simulation" CFC chart containing the REACTOR block and the SFC_ReacA. Set both to test mode. Start the sequential control and follow what happens on the parameter of the REACTOR block. It must be executed in exactly the same manner as before the "Exer_Reac" chart was split. RemarkSplitting is used when additions are made to a project. Additions are made over and over to sub-tasks that were initially combined on one easy-to-read chart. To maintain the overview, splitting allows the PH to be fine-tuned and the individual, related sections to be separated. In the final configuration, a chart will then correspond to a process tag. If the name of the PH folder does not contribute to the HID as a result of the PH setting, the CFC/SFC names of the charts and the block names included in them remain. If you use the above-mentioned rule for forming the HID, note that the CFC chart names and the block names must also remain unique in the projects of a multiproject (the OS sees "only" these).
  70. ModelThe model should be viewed as an extension of the process tag type. To define a model, you start with the PH folder for a project (in the slide: Project 1, only within a multiproject). The template includes the selected folder and its subfolders and all the objects contained in them (charts, pictures, additional information) in their joint interaction. Create/ChangeAfter the creation process is initiated, the selected hierarchy is copied to the master data library together with its objects and inserted in the plant hierarchy under "Models". A dialog box is displayed where the I/O for the charts are defined whose data will be combined in an import file. The file can be edited, for example, if you plan to keep copies with information about the offshoots (copies of the model) that are to be created in the projects of the multiproject. RemarkThe original in the project remains there as the "standard" plant hierarchy. ImportDuring the import process, the model is copied to the specified projects of the multiproject according to the information provided by the import file, the charts are renamed and the selected I/O are parameterized/interconnected. RequirementAll objects of a template for the model must be present in the same project (i.e., the charts and pictures must reside in the respective AS and OS of the project that were assigned to the PH folder via the object properties). ConsequencesIn our project, it is only meaningful to create a model without pictures as we have separate AS and OS projects and therefore both types (charts and pictures) cannot reside in any one plant hierarchy.
  71. ExerciseCreate a model from the "UnitAi" PH of the PRO_AS project. Define the VALUE I/O for the two driver blocks as a "Signal". Generate the import file (i is your group number). Open the file, duplicate the row and fill the columns of the new row with meaningful data for a future "UnitDi" within the PRO_AS project. Perform an import and check the result. ---------------------------------------------------------------------------------------------------- Steps1.Create a model template from the PRO_AS project from the "UnitAi" PH. 2.Create the import file and make any additions. 3.Import the model. This will create an offshoot with the PH name "UnitDi", in which both drivers are connected with the proper inputs/outputs of the modules. 4.Compile, download and test the new "UnitDi". ----------------------------------------------------------------------------------------------------- Procedure1.Select the PH folder Plant2ReactorsiUnitAi then right-click and selectModels  Create/modify models to start the process. In screen "2(4)" of the dialog, select the VALUE I/O of the CH_AI and CH_AO drivers as IEA signals. Disregard the messages in screen "3(4)". In screen "4(4)", define the column headings corresponding to "Analog input" and "Analog output". Do not yet click "Finish"!
  72. 2.In screen "4(4)", click Button Create File Template and confirm the path and file name. In the same screen "4(4)" click ButtonOpen File Select the row in the model, then right-click and selectDuplicate Row to copy the row as often as you like. Modify the fields as you like to represent an imagined situation. Save and close the file. You now return to screen "4(4)" of the dialog. 3. Now click ButtonFinish and observe the progress. The displayed log will also display errors. Repeat the process until there are no errors. Check the new plant hierarchy, chart names and interconnections. Note 1You also go through the same dialog if the model already exists. You only need to make the required changes in the individual screens, e.g. change the import file. 4.Compile, download and test the result online. "UnitDi" should have the same functionality as "UnitAi". Note 2If models are also to contain pictures, both components (AS and OS) must be present in one project when the model is generated. In addition, it is only possible to import such models in a project with both target components! Therefore, in this example, "only" the AS section will be duplicated.
  73. AS-to-AS Communication In most industrial plants, several AS systems are used in one plant unit and share the automation tasks. Therefore, these automation systems need to exchange data. The AS systems ("Partner A" and "Partner B" in the above diagram) can be located in the same subproject or in different subprojects in the multiproject. If they are located in different subprojects, these subprojects must first be merged in a multiproject (update projects) - including already configured subnets. ConnectionsYou must configure the connections for the AS-to-AS communication in NetPro. It is the same method as for the OS-to-AS connection. When configuring the connections, a unique local identification is assigned to each connection on each CPU side, i.e., the "Local ID". All you need for assigning parameters to the communications blocks is this local ID. There is a separate connection table for each programmable module that serve as the end point of a connection. Each row in the table represents a connection and is uniquely assigned by means of the local ID. Communication blocks One send block is required each time for the data to be sent, and one receive block for the incoming data. The send block in the local AS and the receive block in the partner AS are assigned to one another via parameter settings (form one block pair).
  74. Communication Blocks In PCS 7 V7.0, two main block pairs are used for communication: SEND_R and REC_R for sending and receiving up to 32 Boolean values and 32 real values. SEND_BO and REC_BO for sending and receiving 128 Boolean values. These communication blocks are stored in the "PCS7 Library V70" family COMM. How do the partner blocks find each other (via which parameter)? The connection table of a CPU can be compared to the track assignment in a railway station. The individual row corresponds to a connection to a partner. The local ID corresponds to the track number at your station. The partner ID corresponds to the track number at the partner station. The ID parameter is the connection number, which is obtained from the connection table. It is only transferred at the first call after restart. It corresponds to the departure track for the sender and the arrival track for the receiver. The R_ID parameter is any number, however, it must be identical for the pair of sending and receiving blocks. The parameter is only transferred at the first call after a restart. For the sender, it corresponds to a packet number that the receiver also has to know in order to retrieve the packet. TipDue to the acquisition method of the ID and R_ID, it is advisable to set this parameter in the block offline before the block is downloaded to the AS. If the block is already downloaded and one of the parameters must be changed, the change only becomes effective after the AS is restarted!
  75. Standard interconnection When a block parameter is interconnected to a block from a different chart, the description of the destination is automatically entered in the margin of the CFC. There is no other special identification of this interconnection. 1. If a parameter is connected to a SIMATIC address (e.g. symbolic "AI_KO"), and this address exists, a small blue triangle is additionally displayed in the margin (Case 1, see above) Textual Interconnection 2. If a CFC chart (with interconnections) is cut from a chart folder and pasted in another folder, interconnections pointing to blocks that do not exist there are indicated in the latter folder by a yellow triangle (Case 2, see above). The syntax can be as follows, as shown in the slide: "<Chart name> <Block name> . <Parameter name>" 3. A textual interconnection can also be inserted manually (Case 3, see above). The text is displayed in the margin, and identified by the yellow triangle. ConsequencesDuring compilation, any detected textual interconnections are displayed as a warning in the log. The program can be downloaded. Parameters connected in this manner (always inputs) are processed using their default values. Editing textual Interconnection This is possible using one of the following menu commands Options  Make Textual Interconnectionor Options  Delete Textual Interconnection
  76. Invisible Interconnections Blocks in which connections have been switched to invisible are identified in the CFC by a colored mark in the top right corner of the block header. In the I/O tab in the block properties, the existing interconnection is displayed in text form in the "Interconnection" column in the row of the invisible parameter. Display of Sampling Time In CFC, select Options  Settings  Layout : Display sampling time to display the effective sampling time of the block (taking into account the settings of its runtime group) in the block header of the CFC instead of the OB (default setting). Independent of this CFC setting, the sampling time is displayed in the process object view (in the "General" tab) for the charts/runtime groups.
  77. Use the VXM to select an object as the "Master" and another object as the "Comparison object". The comparison is automatically started when you open the comparison object. The VXM compares objects (including all lower-level objects) and their attributes, and presents the differences in graphic format. The object trees to be compared are executed in synchronism, each object pair is compared attribute by attribute and a "result tree" is set up in the main memory. The comparison result tree is constructed similarly to two superimposed transparent sheets.
  78. ExerciseCompare the CFC chart "HeatCont" (alias iT101, see step 2) from your PRO_AS project with the identically-named CFC from the master data library that created as the process tag type. See if you can identify the changes between the two charts. ------------------------------------------------------------------------------------------------------- Steps1.Start the VXM via START  SIMATIC  STEP 7  VXM Version Cross Checker 2.Open the master project via File  Open Search for the CFC chart "HeatCont". Refer to the slide above. (If you have renamed the charts according to the P&I scheme, the above-mentioned applies to the chart iT101, where "i" is your group.) 3.Open the object to be compared via File  Compare with Search for the chart with the same name in the master data library.
  79. 4.You can check the settings via Options  Layout and change them if necessary.
  80. 5.Determine the modification.In the above slide, for example, VCM has detected that in the project chart (column A) the actual value of the controller PV_IN was marked as archivable in a "long-term archive" whereas in the process tag type (column B) the same parameter cannot be archived. As a test, you can modify the GAIN factor in the process tag type chart and repeat the comparison procedure. NoteWhen opening the master project, you can select an object type ranging from "S7 project" to "S7 library" up to "Function block". While the first two filters will cause the entire S7 project to be compared (with HW Config, OBs, run sequences, etc.), the last setting is provided for comparing individual blocks. Use File  Print Differences to print the differences or File  Save Differences to save them as a csv file (for later proof)
  81. ExerciseBefore downloading to the AS, inform yourself on what changes are to be downloaded. ----------------------------------------------------------------------------------------------- Sequence1. Make the following setting in the CFC of your PRO_AS project Options  Settings  Compile/Download  Generate Image of Loaded Program The setting is maintained. 2. Compile and download the current version of your program to the AS. Following successful downloading, the VXM creates an image of the downloaded program in the form of an XML file. 3. Now, make any changes you require in a CFC chart (parameters, interconnections, etc.). Compile the program. Start downloading without clicking the OK button! Click the "Display changes" button, and check the VXM information. TipGeneration of the project image takes time regardless of whether or not you display the changes. This setting "Generate image" should only be made following acceptance of the project.