Programming the Technological Functions
6-7
FM 353 Stepper Drive Positioning Module
6ES7 353-1AH01-8BG0
6.1.5
Procedure for writing the user program (AWP)
The sample projects “zDt13_02_FM353_EX” included in the configuring package
(for the blocks of the “FMSTSV_L” library) and “zDt13_03_FM353_EX” (for blocks
of the “FM353_354” library) will help you when creating your user program and can
be used as a template.
Suggested procedure:
1. Open your project in the SIMATIC Manager.
2. Select
SIMATIC xxx > CPUxxx > S7 Program
.
3. In the SIMATIC Manager, select
File > Open > Projects
to load the
“zDt13_02_FM353_EX” or the “zDt13_03_FM353_EX” project.
4. Select the “EXAMPLES” directory.
5. Select the “Symbols” file and copy it to your project under
SIMATIC xxx >
CPUxxx > S7 Program
(replacing the existing object).
6. Open the “Sources” directory and copy from all STL sources to your project’s
“Sources” directory.
7. Open the ”Blocks“ directory and copy all blocks from it into the ”Blocks” direc-
tory of your project.
8. Select the “Sources” directory in your project. Start the “LAD/STL/FBD Editor”
by double-clicking on the “OB_EXAMPLE” file.
9.
Modify the appropriate input parameters (see “Block description”,
Sections 6.3 and 6.4) in the POS_INIT call in OB 100 and in the POS_DIAG
call in OB 82
.
10.
You can insert the relevant functions from the sample project
“zDt13_02_FM353_EX” (see Section 6.7) in the “
EXAMPLE
CALLS
” network in
OB 1. The functions can be activated by writing your user program to set/
reset the signals in the DB 100 (user DB for the examples) supplied.
The call for the POS_CTRL must be modified accordingly (input
parameters or appropriate instance DB).
11.The organization blocks (OB 1, OB 82, OB 100) are generated from the STL
source with the menu commands
File > Save
and
File > Compile
(warnings
from the compilation run can be ignored).
12.Close the editor.
13.Set the CPU to “STOP” and switch the CPU on.
14.In the SIMATIC Manager, select
SIMATIC xxx > CPUxxx > S7 Program >
Blocks
.
15.Load all the S7 blocks (including system data) into your CPU (with the CPU at
STOP) with
PLC > Load
.
Summary of Contents for SIMATIC FM 353
Page 22: ...Product Overview 1 12 FM 353 Stepper Drive Positioning Module 6ES7 353 1AH01 8BG0 ...
Page 32: ...Installing and Removing 3 6 FM 353 Stepper Drive Positioning Module 6ES7 353 1AH01 8BG0 ...
Page 282: ...Description of Functions 9 82 FM 353 Stepper Drive Positioning Module 6ES7 353 1AH01 8BG0 ...
Page 354: ...User Data Block AW DB B 16 FM 353 Stepper Drive Positioning Module 6ES7 353 1AH01 8BG0 ...