Sample Program 4 "Onechannel - Siemens SIMATIC FM 351 Manual

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

Advertisement

12.10

Sample Program 4 "OneChannel"

Aim:
In this sample, you control a drive with the user program. The user program starts
up the module following a CPU warm restart. Afterwards, it executes a series of
steps that reacts to events.
Using the variable tables, you set the events, monitor the reactions of the module
and evaluate the diagnostic buffer.
In this somewhat more complex sample, you can get to know the following options
available with the blocks:
Specifying several jobs at the same time
Mixing write and read jobs
Reading using a permanent job without waiting for the end of the job
Evaluating the return signals of the block
Evaluating the return signals of an individual job
Resetting the done and error bits for individual or for all jobs
Central ABS_CTRL call at the end of the user program
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) you set the startup flag (Step 0) for the user program in
the corresponding instance DB (USER_DB).
FM 351 Positioning Module
C79000-G7076-C351-02
Samples
12-11

Advertisement

Table of Contents
loading

Table of Contents