Siemens SIMATIC FM 452 Manual page 155

Electronic cam controller installation and parameter assignment
Table of Contents

Advertisement

12.9
Sample Program 3 "OneModule"
Aim:
In this sample, you control a cam controller with a 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 CAM_CTRL call at the end of the user program
Central error evaluation by CAM_DIAG at the end of the user program
Evaluation of the diagnostic buffer in conjunction with DATA_ERR
Requirements:
You have assigned parameters for the cam controller as described in the "Getting
Started" primer.
The address of your module has been entered in the block parameter MOD_ADDR
in the channel DB and diagnostic DB.
The supplied channel DB already contains the DB number (3) of the parameter DB
in the PARADBNO parameter.
The PARADB contained in the sample already has machine and cam data.
Startup:
In the startup OB (OB100) you set the startup flag (Step 0) for the user program in
the corresponding instance DB.
FM 452 Electronic Cam Controller
C79000-G7076-C452-04
Samples
12-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents