Learning units
3.12 12. Step: Controlling the axis with the STEP 7 user program
3.12
3.12
12. Step: Controlling the axis with the STEP 7 user program
Procedure
Sequence
Activity
Result
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, outputs and flags 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 DB1 to
DB4! 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.
The sample program is copied to the project.
2
You can edit the sample program in the LAD/STL/FBD
Editor. To do so, click FB 100, then right-click to select
"Open object".
The LAD/STL/FBD editor opens.
3
Select these settings:
•
View > LAD,
•
View > Overviews, and
•
View > Details.
You have now opened an extended and
clear view for editing the STEP 7 user
program.
4
In SIMATIC Manager, load the entire user program to the
CPU with
PLC > Download user program to memory
card
.
5
Confirm the message box with "Yes".
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.
CPU 317T-2 DP: Controlling a SINAMICS S120
Getting Started, 12/2005, A5E00480391-01
3-71