Step: Controlling The Axis With The Step 7 User Program - Siemens SIMATIC S7-300 Getting Started

Automation systems, controlling a physical axis
Hide thumbs Also See for SIMATIC S7-300:
Table of Contents
3.11

10. Step: Controlling the axis with the STEP 7 user program

Procedure
Step
Activity
1
In SIMATIC Manager, open the sample project
"\Examples\PROJECT-CPU317T". Copy the blocks listed
below to your project:
OB1
FB 100 (SimplePositioning)
FB401 (MC_Power)
FB402 (MC_Power)
FB405 (MC_Halt)
FB410 (MC_MoveAbsolute)
DB 100 (IDB_SimplePositioning)
AxisData (variable table for axis control)
Confirm the message "The object 'OB1' already exists. Do
you want to overwrite it?" with "Yes".
Also copy the inputs (I), outputs (O) and flags (F) from the
example symbol table to the project, so that the symbols are
displayed completely in the variable table.
Important: The sample program does not contain DB 1 to
DB 4! Create these technology DBs in STEP 7 (see the step
"Creating the technology DBs"), in order to maintain
consistency between the user program and the technology
objects.
2
Double-click the FB 100 if you want to edit the program
example.
3
Select these settings:
View > LAD,
View > Overviews, and
View > Details.
4
Load the entire user program to the CPU selecting Target
system > Download user program to memory card in the
SIMATIC Manager.
5
Confirm the message box with "Yes".
CPU 317T-2 DP: Controlling a physical axis
Getting Started, 03/2008, A5E00251786-05
3.11 10. Step: Controlling the axis with the STEP 7 user program
Result
The sample program is copied to the project.
The LAD/STL/FBD editor opens.
You have now opened an extended and
clear view for editing the STEP 7 user
program.
The STEP 7 user program is now stored in
the CPU. This download of your SDBs may
take longer (up to a few minutes), because
of their larger data volume.
Learning units
29
Table of Contents
loading

This manual is also suitable for:

Cpu 317t-2 dp

Table of Contents