Putting the FM 351 into Operation
7-3
FM 351 Positioning Module
C79000-G7076-C351-02
Preparations for Programming
Create the blocks you require in your project if you want to access the module from
the user program.
Step What needs to be done?
1 Select the library FMX51LIB in the SIMATIC Manager (File > Open > Libraries).
2 From the library, copy the functions FC0, FC1, and the channel DB template UDT 1 to
the blocks folder.
3 Create a channel DB for each channel based on the UDT 1 template and enter the
channel number.
4 If you want to program diagnostic evaluation, copy FC 2 and UDT 2 and create a
diagnostic DB for each module.
5 If you want to write or read machine data and incremental dimension tables in the user
program, you require UDT 3 to create a parameter DB for each channel.
Parameter Assignment using the Configuration Software
When you first put the module into operation, assign the parameters to it using the
parameter assignment dialogs of the configuration software.
Step What needs to be done?
1 Select the tier in the rack containing the FM 351 module.
2 Now double-click to start the parameter assignment dialogs for the FM 351.
3 Using the menu command File > Properties, you can modify the following settings:
• General
You can modify the name and enter a comment.
• Addresses
If you change the base address, you must also modify the end address. Note down
the module address displayed.
The module address must be entered in the MOD_ADDR parameter in the channel
DB and, if required, also in the diagnostic DB.
You can have the address entered automatically by clicking the MOD_Adr button
and then select the channel DB and, if required, the diagnostic DB.
• Basic Parameters
You can set the type of interrupt.
4 Set the appropriate parameters in the dialogs Drive, Axis, Encoder and Incremental
Dimensions.
5 With Edit > Create Channel, you can create your channels.
6 Save the parameter settings with the menu command File > Save.
7 Close the parameter dialogs with File > Exit.
8 Save the hardware configuration in HW Config with Station > Save and Compile.
9 Set up an online connection to the CPU and download the hardware configuration to the
CPU. The parameter data are transferred to the FM 351.