Preparing The Samples; Code Of The Samples - Siemens SIMATIC FM 351 Manual

Positioning module
Hide thumbs Also See for SIMATIC FM 351:
Table of Contents

Advertisement

12.3

Preparing the Samples

To be able work through the samples online, make the following preparations:
1. Open the sample project zEn18_01_FMx51___Prog in the folder
...\STEP7\EXAMPLES using the SIMATIC Manager (use the detailed display
so that you can see the symbolic names) and copy it to your project folder
assigning a suitable name (File > Save As).
2. Insert a station in your project to match your hardware configuration.
3. Select a sample program and copy the program to the offline CPU.
4. Configure the hardware completely in HW Config.
5. Set the parameters for the FM 351 or FM 451 based on "Getting Started".
Export the parameters you have adapted to your system to the parameter DBs
of all samples except for the sample "Getting Started" using File > Export.
6. Select the FM 351 or FM 451 in the hardware configuration and display the
object properties (Edit > Object Properties).
In the "Mod Adr " dialog, enter the current module address in all offline
channel DBs (CHAN_1, CHAN_2) and diagnostic DBs (DIAG) that exist in the
sample program. The module address must not be entered in your parameter
DBs (PARADB_1, PARADB_2) because these would then be incorrectly
overwritten. Open the dialog separately for each block.
You can also enter the module address with the LAD/STL/FBD editor in the
MOD_ADDR block parameter.
7. Save the hardware configuration and download it to the CPU.
8. Select a sample program and download its block folder to the online CPU.
9. If you want to try out the next sample, go to step 8.
12.4

Code of the Samples

The samples are written in STL. You can view them directly in the LAD/STL/FBD
editor.
Select the view with "Symbolic Representation", "Symbol Selection" and
"Comment". If you have sufficient space on the monitor, you can also display the
"Symbol Information".
FM 351 Positioning Module
C79000-G7076-C351-02
Samples
12-3

Advertisement

Table of Contents
loading

Table of Contents