Download Print this page

Siemens SIMATIC Manual page 55

Automation system
Hide thumbs Also See for SIMATIC:

Advertisement

3rd step: Implementation in the user program
Step
Action
1
In SIMATIC Manager, open the project
"ZEn26_01_TF_____31xC_PtP" in the catalog
\Siemens\STEP7\Examples via
File > Open... > Sample projects .
2
Double–click on the station "CPU 31xC ASCII".
3
Open the S7 program for the station CPU and
double–click on the "Function blocks" container.
4
With the exception of system data, select all function blocks and copy them to your project
under SIMATIC 300 Station > CPU3xx > S7 Program > Function blocks.
Function block Name
OB1:
OB100:
DB21:
DB22:
DB40:
DB41:
DB42:
DB43:
SFB60:
SFB61:
FB21:
FB22:
VAT1:
5
In SIMATIC Manager, select
SIMATIC 300 Station > CPU3xx > S7 Pro-
gram > Function blocks .
6
Download all S7 function blocks contained to
your CPU with PLC > Download to CPU (CPU
in STOP state).
4th step: Test run
Step
Action
1
In your project directory "Function blocks",
double–click on the table of variables "VAT1".
2
Go Online via PLC > Connect to > Configu-
red CPU.
Automation System S7-300, Getting Started – PtP
A5E00105535-01
(in the symbol bar)
CYCLE
RESTART
SEND IDB
RCV IDB
SEND WORK DB
RCV WORK DB
SEND SRC DB
RCV DST DB
SEND_PTP
RCV_PTP
SEND
RECEIVE
-
Result
A split window opens, showing your pro-
ject name in the header.
Your station is opened.
You are shown all function blocks of the
S7 program.
Description
Cyclic program processing
Startup processing Restart
Instance DB to SFB SEND_PTP
Instance DB to SFB RCV_PTP
Work DB for SFB SEND_PTP
Work DB for SFB RCV_PTP
Send DB
Receive DB
Send SFB for data
Receive SFB for data
Send data
Receive data
VAT1
You are shown all function blocks of the
S7 program.
The program and configuration are
downloaded from the PG to the CPU.
Result
You are shown the table of variables for
monitoring and controlling.
The "STOP" status of the CPU pops up
at the lower right.
5

Advertisement

loading

This manual is also suitable for:

S7-300