Basics Of Programming An Fm 351 - Siemens SIMATIC FM 351 Manual

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

Advertisement

Programming the FM 351
6.1

Basics of Programming an FM 351

Task
You can assign parameters, control, and commission each channel of the FM 351
module per user program. The following chapters will help you to design a user
program suitable for your application.
Preparations
Open the block library FMx51LIB in the SIMATIC Manager and copy the
required functions (FCs) and block templates (UDTs) to the block folder of your
project. If the block numbers are already being used, assign new numbers. The
block names are entered unchanged in the symbol table of your S7 program.
Name
FC ABS_INIT (FC0)
FC ABS_CTRL (FC1)
FC ABS_DIAG (FC2)
UDT ABS_CHANTYPE
(UDT 1)
UDT ABS_DIAGTYPE
(UDT 2)
UDT ABS_PARATYPE
(UDT 3)
Create data blocks (DBs) using the UDTs in the block folder of your S7
program.
– You require a separate channel DB for each channel.
– If you want to write or read parameters using the user program, you require
a separate parameter DB for each channel.
– If you want your user program to run diagnostic functions, you require a
diagnostic DB for each module.
Enter the module address in the corresponding channel DB and, if required, also in
the corresponding diagnostic DB at the address "MOD_ADDR".
You can also have the address entered automatically by selecting the module in
HW Config and then selecting a data block in the "Properties" dialog with the "Mod
Addr" button.
Enter the channel number and, if required, the number of the parameter DB in the
relevant channel DB.
6-2
This is required to initialize the channel DB following a module
startup.
This is required for data exchange and for controlling the module.
This is required when you process detailed diagnostic information in
the program or want to make this information available to an operator
control and monitoring system.
This is required to generate a channel DB per channel; this is used by
FC ABS_INIT and FC ABS_CTRL.
This is required to create a diagnostic DB for each module; this is
used by FC ABS_DIAG.
This is required to create a parameter DB; this is used by FC
ABS_CTRL to write or read machine data and incremental dimension
tables.
Meaning
FM 351 Positioning Module
C79000-G7076-C351-02

Advertisement

Table of Contents
loading

Table of Contents