Samples
12-9
FM 452 Electronic Cam Controller
C79000-G7076-C452-04
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.
Содержание SIMATIC FM 452
Страница 8: ...Contents viii FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 14: ...Product Overview 1 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 28: ...Installing and Removing the FM 452 3 2 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 36: ...Wiring the FM 452 Electronic Cam Controller 4 8 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 38: ...Installing the Software 5 2 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 62: ...Programming the FM 452 6 24 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 68: ...Putting the FM 452 into Operation 7 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 130: ...Settings 9 32 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 140: ...Encoders 10 10 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 146: ...Diagnostics 11 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 162: ...Samples 12 16 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 168: ...Technical Specifications A 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 174: ...Connection Diagrams B 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 200: ...Data Blocks Error Lists C 26 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...