Sample Program 3 "Allfunctions - Siemens SIMATIC FM 351 Manual

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

Advertisement

12.9

Sample Program 3 "AllFunctions"

Aim:
In this sample you will find all the functions of the FM 351/451:
Modes
Function switches
Write jobs
Read jobs
You can use the sample program as a template to form the basis of your user
program, which you tailor to your needs by modifying and deleting functions. The
data you need to adapt to your application are marked ***. Some functions are
available only for the FM 451.
Reactions to external events and the error evaluation are system-specific and are
therefore not included in the sample.
Requirements:
You have set the parameters for your positioning module as described in "Getting
Started".
The address of your module is entered correctly in the channel DB in the
parameter MOD_ADDR and the channel number in the parameter CH_NO.
The supplied channel DB already contains the DB number (30) of the
corresponding parameter DB for the machine data in the PARADBNO parameter.
The machine data of your system are stored in the data block PARADB_1.
Startup:
In the startup OB (OB100), call FC ABS_INIT to initialize the channel DB. You then
set the trigger bits for all jobs that you require after the module starts.
FM 351 Positioning Module
C79000-G7076-C351-02
Samples
12-9

Advertisement

Table of Contents
loading

Table of Contents