Download Print this page

Siemens SIMATIC Manual page 33

Automation system
Hide thumbs Also See for SIMATIC:

Advertisement

4th step: Implementation in the user program
Step
Action
1
In SIMATIC Manager, open the project
"ZEn26_03_TF_____31xC_Pos" in the catalog
\Siemens\STEP7\Examples via
File > Open... > Sample projects .
2
Double-click the S7 program
"Analog 1 First steps".
3
Double-click on the "Function blocks" container.
4
Select all function blocks and copy them to your project under
SIMATIC 300 Station > CPU3xx > S7 Program > Function blocks.
Function block Name
OB1:
OB100:
FC1:
SFB44:
DB6:
VAT_GETST_A: VAT_GETST_A:
Note: In the COMPLETE RESTART (OB 100) function block, optimize the values for
speed, acceleration, deceleration and changeover/cut–off difference.
5
In SIMATIC Manager, select
SIMATIC 300 Station > CPU3xx > S7 Program >
Function blocks .
6
Download all S7 function blocks contained to your
CPU via PLC > Download to CPU (CPU in STOP
state).
5th step: Test run
Step
Action
1
In your project directory "Function blocks", double–
click on the VAT "VAT_GETST_A".
2
Go Online via
PLC > Connect to > Configured CPU.
3
Switch to monitoring mode via
Variable > Monitoring.
Caution
In the next two steps of the test you are going to start up the drive.
You can stop the drive again by:
S
Resetting the direction control value to 0 and enabling it
S
Resetting the drive enable value to 0 and enabling it
S
Switch the CPU to STOP
Automation System S7-300, Getting Started – Analog
A5E00105537-01
(in the symbol bar)
CYCLE_EXC
COMPLETE RESTART Restart: Resetting the control signals
GETST_A
ANALOG
DI_ANALOG
Result
A split window opens, showing in the
header your project name.
The right window shows the "Sour-
ces", "Function blocks" and "Sym-
bols" folders.
You are shown all function blocks of
the S7 program.
Description
Cyclic program
Sample 1: ANALOG, first steps
SFB ANALOG
Instance DB to ANALOG
Variables table
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.
The "Status value" column displays
the actual values of the operands.
7

Advertisement

loading

This manual is also suitable for:

S7-300