Documente Academic
Documente Profesional
Documente Cultură
STEP7
Libraries
CFC
SCL
GRAPH
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_1e.1
HiGraph
S7 SCL
S7 GRAPH
LAD
SIMATIC
S7
Siemens AG 2001. All rights reserved.
STEP7
CFC
DOCPRO
Date:
File:
16.8.01
CFC_1e.2
STL
S7 HiGraph
FBD
SIMATIC Manager
SCL
CFC
Libraries
STEP7
GRAPH
Common database
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_1e.3
HiGraph
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_1e.4
1. Add blocks
6. Ready
SIMATIC
S7
Siemens AG 2001. All rights reserved.
5. Test
M7 only
Date:
File:
16.8.01
CFC_1e.5
3. Adapt run-time
properties
4. Compile /load
Customer Advantages
Saving engineering costs
Pre-defined blocks used
Development times shorter
High quality through error-free blocks
Graphic configuration
Simple to use without knowledge of Internas
Development times shorter
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_1e.6
STEP7
Libraries
CFC
SCL
GRAPH
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_2e.1
HiGraph
CFC Installation
SW minimum requirements
Operating system
WINDOWS 95, 98, NT
WINDOWS 2000, Me (Basic and SCL V5.1 + SP1,2)
SIMATIC S7 basic package
STEP7 V5.x with authorization
Authorization for CFC
HW minimum requirements
Programming device (PG) or PC
Pentium processor
With more than 128 Mbyte RAM
CFC requires approximately 52 MByte hard disk space
and approximately 200 Mbyte for the swap file
MPI connection
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_2e.2
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_2e.3
Chart partion
overview
Page 4
Page 5
Page 3
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Page 6
Date:
File:
16.8.01
CFC_2e.4
Chart partition A - Z
Sheet bar
Sheet bar
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_2e.5
Basic operations
S7 program
block containers
Blocks
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_2e.6
STEP 7 library
Libraries
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_2e.7
Chart in Chart
CFC1 chart (higher-level chart)
Contains additional (lower-level) charts
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_2e.8
Inserting Blocks
Inserting with
drag & drop
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_2e.9
Block Representations
Block header
Block name
Block type
Run properties
Comment
Block
body
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_2e.10
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_2e.11
Interconnecting Inputs/Outputs
Multiple connection
Inverted signal
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_2e.12
Selection from
symbol table
Operand input
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_2e.13
STEP7
Libraries
CFC
SCL
GRAPH
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_3e.1
HiGraph
Instance DB of the FB
Installation in
other OBs
Block attributes
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_3e.2
Block I/Os
Parameter
name
Data type
Parameter type
Default value
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_3e.3
Runtime Properties
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_3e.4
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_3e.5
Symbolic and
absolute address,
commentary
(from the symbol table)
The left sheet bar is the destination for a signal.
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_3e.6
Signal Tracking
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_3e.7
Compilation Settings
DB numbers the CFC cannot use
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_3e.8
Compiling Charts
Chart 1/C...
Chart 2/C...
Chart1/B
Chart 2/B
Chart 1/A
Chart 2/A
Chart 3/C...
Chart 3/B
Chart 3/A
S7 code
OBs, FCs, FBs, and
DBs
SAMPLE_T is
automatically
adapted
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_3e.9
Mixed Programming
Programmed in LAD,
FBD, STL, and SCL
OB1
FC78
FB9
FC92
According to the
compiler message, this
must be expanded in
LAD, FBD, STL, or SCL!
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Call FC92
Date:
File:
16.8.01
CFC_3e.10
Dont make
any changes
here!
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_3e.11
Monitor and
modifying variables
Dynamic display
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_3e.12
Test mode
Test mode
on/off
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Monitor
on
Monitor
off
Date:
File:
16.8.01
CFC_3e.13
Add to watch
list I/O
Remove from
watch list I/O
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16.8.01
CFC_3e.14
Reading Back
Chart
Block container
Compile
Load
SIMATIC
S7
Siemens AG 2001. All rights reserved.
PLC
Date:
File:
16.8.01
CFC_3e.15
CFC
STEP7
SCL
Libraries
GRAPH
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16. 8.01
CFC_4e.1
HiGraph
Change to
the run
sequence
Run-time group
Properties of a
run-time group
Blocks in a
run-time group
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16. 8.01
CFC_4e.2
Task
cycle
19
11
t
Run time
Scan rate
Phase offset
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16. 8.01
CFC_4e.3
Explicit
import
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16. 8.01
CFC_4e.4
Deleting Blocks
Remove from the chart.
+
Remove from block
container offline.
Delete a
block
completely
+
Remove from the
symbol table.
+
Remove from
the CFC database.
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16. 8.01
CFC_4e.5
Charts
Programs
Block(s)
If you want to,
you can also
transfer
connections.
Page to page
Chart to chart
CPU to CPU
Project to project
SIMATIC
S7
Siemens AG 2001. All rights reserved.
CPU to CPU
Project to project
Date:
File:
16. 8.01
CFC_4e.6
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16. 8.01
CFC_4e.7
Chart in Chart
CFC1 chart (higher-level chart)
contains additional (lower-level) charts
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16. 8.01
CFC_4e.8
Attributes
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16. 8.01
CFC_4e.9
Attributes (Examples)
System attributes for configuring instrumentation and control
S7_blockview
S7_m_c
S7_read_back
S7_tasklist
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16. 8.01
CFC_4e.10
Documenting Charts
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
File:
16. 8.01
CFC_4e.11
Documenting Charts
Run
Sequence
CrossReference
of
Operands
SIMATIC
S7
Siemens AG 2001. All rights reserved.
CrossReference
of
Run-Time
Groups
Date:
File:
16. 8.01
CFC_4e.12
CrossReference
of
Block
Types
S7Resource
Allocation
CFC
STEP7
SCL
Libraries
CFC Exercises
GRAPH
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
16.8.01
File No.: CFC_5e.1
HiGraph
c
a
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
16.8.01
File No.: CFC_5e.2
c
a
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
16.8.01
File No.: CFC_5e.3
Cyclic buffer
for a
(FC)
(FB)
Calculate length
and
a
DB1
sort
b
Random
generator
for b
Cyclic buffer
for b
(FB)
DB2
(FC)
SIMATIC
S7
Siemens AG 2001. All rights reserved.
(FCs)
Date:
16.8.01
File No.: CFC_5e.4
Trigger
identification
I0.0 or
M7.7
DB2
Enable
Run-time group
Calculating
areas
Areas
DB3
Mean
c
Calculating
the mean
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
16.8.01
File No.: CFC_5e.5
Exercise 4: Chart as an FB
c
a
b
FB created from the chart
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
16.8.01
File No.: CFC_5e.6
Cyclic buffer
for a
Calculate length
and
DB1
b
Generator
for b
sort
Cyclic buffer
for b
DB2
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
16.8.01
File No.: CFC_5e.7
c
a
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
16.8.01
File No.: CFC_5e.8
Exercise 7: SAMPLE_T
Extended pulse
Mode 1
10 seconds
Latching ON delay
Mode 3
7 seconds
SIMATIC
S7
Siemens AG 2001. All rights reserved.
Date:
16.8.01
File No.: CFC_5e.9
Run
sequence
Crossreferences:
SIMATIC
S7
Siemens AG 2001. All rights reserved.
operands
Crossreferences:
Cross
references:
Run-time
groups
Block
types
Date:
16.8.01
File No.: CFC_5e.10
S7resource
assignment