Samples
12-11
FM 452 Electronic Cam Controller
C79000-G7076-C452-04
User Program (FB PROG):
The user program accesses the data in the module-specific data blocks with the
form <blockname>.<symbolic name>. This means that the user program can
operate exactly one module. The DB numbers specified when the user program is
called are simply passed on to supply FC CAM_CTRL and FC CAM_DIAG. With
this type of programming, you can access data in the data blocks using symbolic
names. Indirect addressing of more than one module is part of the sample program
5 “MultiModules”.
The user program executes a sequence of steps made up as follows:
Step 0: The cam controller is initialized. The jobs with the corresponding data are
set that will be executed when the module is started up. The restart of the module
can, for example, be triggered by a CPU warm restart or the return of a rack after a
rack failure.
Step 1: The program waits until the set jobs have been executed.
Step 2: The program reads the cam flag bits continuously and waits until cam 4 is
set.
Step 3: Cams 0 and 1 are assigned new parameter values. To allow you to see the
change, the cam data are read out before and after the change and displayed in
VAT1.
Step 4: The program waits until the set jobs have been executed.
Step 5: Here, the program waits for the “external” event “switch on”
(CAM.SWITCH = 1) that you can set with the VAT.
Step 6: When the event is recognized, cams 0 and 1 are set back to the value that
was read out in the initialization step.
Step 7: The program waits for the execution of the set jobs.
At the end of the step sequence, FC CAM_CTRL and FC CAM_DIAG are called. If
the diagnostics has detected a message about incorrect cam data, the output
CAM_ERR is set.
Содержание 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 ...