Programming the FM 452
6-2
FM 452 Electronic Cam Controller
C79000-G7076-C452-04
6.1
Basics of Programming an FM 452
Task
You can assign parameters, control and start up the FM 452 module in a user
program. To exchange data between the user program and module, you use the
functions (FCs) and data blocks (DBs) described below.
Preparations
•
Open the block library FMx52LIB in the SIMATIC Manager and copy the
required functions (FCs) and block templates (UDTs) to the block folder of your
project. If the block numbers are already being used, assign new numbers. The
block names are entered unchanged in the symbol table of your S7 program.
– CAM_INIT (FC 0):
This is required to initialize the channel DB following a module startup.
– CAM_CTRL (FC 1):
This is required for data exchange with the module.
– CAM_DIAG (FC 2):
This is required when you process detailed diagnostic information in the
program or want to make this information available to an operator control
and monitoring system.
– CAM_MSRM (FC 3):
This is required when you want to read out the results of a length
measurement or edge detection immediately following a hardware interrupt.
– CAM_CHANTYPE (UDT1):
This is required to generate a channel DB; this is used by FC CAM_INIT,
CAM_CTRL and CAM_MSRM.
– CAM_DIAGTYPE (UDT2):
This is required to generate a diagnostic DB; this is used by FC CAM_DIAG.
– CAM_P016TYPE (UDT3):
This is required to generate a parameter DB with machine data and data for
16 cams; this is used by FC CAM_CTRL to write or read machine or cam
data.
– CAM_P032TYPE (UDT4):
Same as CAM_P016TYPE, however for 32 cams.
– CAM_P064TYPE (UDT5):
Same as CAM_P016TYPE, however for 64 cams.
– CAM_P128TYPE (UDT6):
Same as CAM_P016TYPE, however for 128 cams.
Summary of Contents for SIMATIC FM 452
Page 8: ...Contents viii FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 14: ...Product Overview 1 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 28: ...Installing and Removing the FM 452 3 2 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 38: ...Installing the Software 5 2 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 62: ...Programming the FM 452 6 24 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 68: ...Putting the FM 452 into Operation 7 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 130: ...Settings 9 32 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 140: ...Encoders 10 10 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 146: ...Diagnostics 11 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 162: ...Samples 12 16 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 168: ...Technical Specifications A 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 174: ...Connection Diagrams B 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 200: ...Data Blocks Error Lists C 26 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...